Debian Codegraph @

COPYING

raw
1
2 /***************************************************************************
3 * COPYING -- Describes the terms under which Nmap is distributed. *
4 * *
5 ***********************IMPORTANT NMAP LICENSE TERMS************************
6 * *
7 * The Nmap Security Scanner is (C) 1996-2019 Insecure.Com LLC ("The Nmap *
8 * Project"). Nmap is also a registered trademark of the Nmap Project. *
9 * This program is free software; you may redistribute and/or modify it *
10 * under the terms of the GNU General Public License as published by the *
11 * Free Software Foundation; Version 2 ("GPL"), BUT ONLY WITH ALL OF THE *
12 * CLARIFICATIONS AND EXCEPTIONS DESCRIBED HEREIN. This guarantees your *
13 * right to use, modify, and redistribute this software under certain *
14 * conditions. If you wish to embed Nmap technology into proprietary *
15 * software, we sell alternative licenses (contact [email protected]). *
16 * Dozens of software vendors already license Nmap technology such as *
17 * host discovery, port scanning, OS detection, version detection, and *
18 * the Nmap Scripting Engine. *
19 * *
20 * Note that the GPL places important restrictions on "derivative works", *
21 * yet it does not provide a detailed definition of that term. To avoid *
22 * misunderstandings, we interpret that term as broadly as copyright law *
23 * allows. For example, we consider an application to constitute a *
24 * derivative work for the purpose of this license if it does any of the *
25 * following with any software or content covered by this license *
26 * ("Covered Software"): *
27 * *
28 * o Integrates source code from Covered Software. *
29 * *
30 * o Reads or includes copyrighted data files, such as Nmap's nmap-os-db *
31 * or nmap-service-probes. *
32 * *
33 * o Is designed specifically to execute Covered Software and parse the *
34 * results (as opposed to typical shell or execution-menu apps, which will *
35 * execute anything you tell them to). *
36 * *
37 * o Includes Covered Software in a proprietary executable installer. The *
38 * installers produced by InstallShield are an example of this. Including *
39 * Nmap with other software in compressed or archival form does not *
40 * trigger this provision, provided appropriate open source decompression *
41 * or de-archiving software is widely available for no charge. For the *
42 * purposes of this license, an installer is considered to include Covered *
43 * Software even if it actually retrieves a copy of Covered Software from *
44 * another source during runtime (such as by downloading it from the *
45 * Internet). *
46 * *
47 * o Links (statically or dynamically) to a library which does any of the *
48 * above. *
49 * *
50 * o Executes a helper program, module, or script to do any of the above. *
51 * *
52 * This list is not exclusive, but is meant to clarify our interpretation *
53 * of derived works with some common examples. Other people may interpret *
54 * the plain GPL differently, so we consider this a special exception to *
55 * the GPL that we apply to Covered Software. Works which meet any of *
56 * these conditions must conform to all of the terms of this license, *
57 * particularly including the GPL Section 3 requirements of providing *
58 * source code and allowing free redistribution of the work as a whole. *
59 * *
60 * As another special exception to the GPL terms, the Nmap Project grants *
61 * permission to link the code of this program with any version of the *
62 * OpenSSL library which is distributed under a license identical to that *
63 * listed in the included docs/licenses/OpenSSL.txt file, and distribute *
64 * linked combinations including the two. *
65 * *
66 * The Nmap Project has permission to redistribute Npcap, a packet *
67 * capturing driver and library for the Microsoft Windows platform. *
68 * Npcap is a separate work with it's own license rather than this Nmap *
69 * license. Since the Npcap license does not permit redistribution *
70 * without special permission, our Nmap Windows binary packages which *
71 * contain Npcap may not be redistributed without special permission. *
72 * *
73 * Any redistribution of Covered Software, including any derived works, *
74 * must obey and carry forward all of the terms of this license, including *
75 * obeying all GPL rules and restrictions. For example, source code of *
76 * the whole work must be provided and free redistribution must be *
77 * allowed. All GPL references to "this License", are to be treated as *
78 * including the terms and conditions of this license text as well. *
79 * *
80 * Because this license imposes special exceptions to the GPL, Covered *
81 * Work may not be combined (even as part of a larger work) with plain GPL *
82 * software. The terms, conditions, and exceptions of this license must *
83 * be included as well. This license is incompatible with some other open *
84 * source licenses as well. In some cases we can relicense portions of *
85 * Nmap or grant special permissions to use it in other open source *
86 * software. Please contact [email protected] with any such requests. *
87 * Similarly, we don't incorporate incompatible open source software into *
88 * Covered Software without special permission from the copyright holders. *
89 * *
90 * If you have any questions about the licensing restrictions on using *
91 * Nmap in other works, we are happy to help. As mentioned above, we also *
92 * offer an alternative license to integrate Nmap into proprietary *
93 * applications and appliances. These contracts have been sold to dozens *
94 * of software vendors, and generally include a perpetual license as well *
95 * as providing support and updates. They also fund the continued *
96 * development of Nmap. Please email [email protected] for further *
97 * information. *
98 * *
99 * If you have received a written license agreement or contract for *
100 * Covered Software stating terms other than these, you may choose to use *
101 * and redistribute Covered Software under those terms instead of these. *
102 * *
103 * Source is provided to this software because we believe users have a *
104 * right to know exactly what a program is going to do before they run it. *
105 * This also allows you to audit the software for security holes. *
106 * *
107 * Source code also allows you to port Nmap to new platforms, fix bugs, *
108 * and add new features. You are highly encouraged to send your changes *
109 * to the [email protected] mailing list for possible incorporation into the *
110 * main distribution. By sending these changes to Fyodor or one of the *
111 * Insecure.Org development mailing lists, or checking them into the Nmap *
112 * source code repository, it is understood (unless you specify *
113 * otherwise) that you are offering the Nmap Project the unlimited, *
114 * non-exclusive right to reuse, modify, and relicense the code. Nmap *
115 * will always be available Open Source, but this is important because *
116 * the inability to relicense code has caused devastating problems for *
117 * other Free Software projects (such as KDE and NASM). We also *
118 * occasionally relicense the code to third parties as discussed above. *
119 * If you wish to specify special license conditions of your *
120 * contributions, just say so when you send them. *
121 * *
122 * This program is distributed in the hope that it will be useful, but *
123 * WITHOUT ANY WARRANTY; without even the implied warranty of *
124 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the Nmap *
125 * license file for more details (it's in a COPYING file included with *
126 * Nmap, and also available from https://svn.nmap.org/nmap/COPYING) *
127 * *
128 ***************************************************************************/
129
130 GNU General Public License
131
132 ----------------------------------------------------------------------------
133
134 Table of Contents
135
136 * GNU GENERAL PUBLIC LICENSE
137 o Preamble
138 o TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
139 o How to Apply These Terms to Your New Programs
140
141 ----------------------------------------------------------------------------
142
143 GNU GENERAL PUBLIC LICENSE
144
145 Version 2, June 1991
146
147 Copyright (C) 1989, 1991 Free Software Foundation, Inc.
148 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA
149
150 Everyone is permitted to copy and distribute verbatim copies
151 of this license document, but changing it is not allowed.
152
153 Preamble
154
155 The licenses for most software are designed to take away your freedom to
156 share and change it. By contrast, the GNU General Public License is intended
157 to guarantee your freedom to share and change free software--to make sure
158 the software is free for all its users. This General Public License applies
159 to most of the Free Software Foundation's software and to any other program
160 whose authors commit to using it. (Some other Free Software Foundation
161 software is covered by the GNU Library General Public License instead.) You
162 can apply it to your programs, too.
163
164 When we speak of free software, we are referring to freedom, not price. Our
165 General Public Licenses are designed to make sure that you have the freedom
166 to distribute copies of free software (and charge for this service if you
167 wish), that you receive source code or can get it if you want it, that you
168 can change the software or use pieces of it in new free programs; and that
169 you know you can do these things.
170
171 To protect your rights, we need to make restrictions that forbid anyone to
172 deny you these rights or to ask you to surrender the rights. These
173 restrictions translate to certain responsibilities for you if you distribute
174 copies of the software, or if you modify it.
175
176 For example, if you distribute copies of such a program, whether gratis or
177 for a fee, you must give the recipients all the rights that you have. You
178 must make sure that they, too, receive or can get the source code. And you
179 must show them these terms so they know their rights.
180
181 We protect your rights with two steps: (1) copyright the software, and (2)
182 offer you this license which gives you legal permission to copy, distribute
183 and/or modify the software.
184
185 Also, for each author's protection and ours, we want to make certain that
186 everyone understands that there is no warranty for this free software. If
187 the software is modified by someone else and passed on, we want its
188 recipients to know that what they have is not the original, so that any
189 problems introduced by others will not reflect on the original authors'
190 reputations.
191
192 Finally, any free program is threatened constantly by software patents. We
193 wish to avoid the danger that redistributors of a free program will
194 individually obtain patent licenses, in effect making the program
195 proprietary. To prevent this, we have made it clear that any patent must be
196 licensed for everyone's free use or not licensed at all.
197
198 The precise terms and conditions for copying, distribution and modification
199 follow.
200
201 TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
202
203 0. This License applies to any program or other work which contains a notice
204 placed by the copyright holder saying it may be distributed under the terms
205 of this General Public License. The "Program", below, refers to any such
206 program or work, and a "work based on the Program" means either the Program
207 or any derivative work under copyright law: that is to say, a work
208 containing the Program or a portion of it, either verbatim or with
209 modifications and/or translated into another language. (Hereinafter,
210 translation is included without limitation in the term "modification".) Each
211 licensee is addressed as "you".
212
213 Activities other than copying, distribution and modification are not covered
214 by this License; they are outside its scope. The act of running the Program
215 is not restricted, and the output from the Program is covered only if its
216 contents constitute a work based on the Program (independent of having been
217 made by running the Program). Whether that is true depends on what the
218 Program does.
219
220 1. You may copy and distribute verbatim copies of the Program's source code
221 as you receive it, in any medium, provided that you conspicuously and
222 appropriately publish on each copy an appropriate copyright notice and
223 disclaimer of warranty; keep intact all the notices that refer to this
224 License and to the absence of any warranty; and give any other recipients of
225 the Program a copy of this License along with the Program.
226
227 You may charge a fee for the physical act of transferring a copy, and you
228 may at your option offer warranty protection in exchange for a fee.
229
230 2. You may modify your copy or copies of the Program or any portion of it,
231 thus forming a work based on the Program, and copy and distribute such
232 modifications or work under the terms of Section 1 above, provided that you
233 also meet all of these conditions:
234
235 * a) You must cause the modified files to carry prominent notices stating
236 that you changed the files and the date of any change.
237
238 * b) You must cause any work that you distribute or publish, that in
239 whole or in part contains or is derived from the Program or any part
240 thereof, to be licensed as a whole at no charge to all third parties
241 under the terms of this License.
242
243 * c) If the modified program normally reads commands interactively when
244 run, you must cause it, when started running for such interactive use
245 in the most ordinary way, to print or display an announcement including
246 an appropriate copyright notice and a notice that there is no warranty
247 (or else, saying that you provide a warranty) and that users may
248 redistribute the program under these conditions, and telling the user
249 how to view a copy of this License. (Exception: if the Program itself
250 is interactive but does not normally print such an announcement, your
251 work based on the Program is not required to print an announcement.)
252
253 These requirements apply to the modified work as a whole. If identifiable
254 sections of that work are not derived from the Program, and can be
255 reasonably considered independent and separate works in themselves, then
256 this License, and its terms, do not apply to those sections when you
257 distribute them as separate works. But when you distribute the same sections
258 as part of a whole which is a work based on the Program, the distribution of
259 the whole must be on the terms of this License, whose permissions for other
260 licensees extend to the entire whole, and thus to each and every part
261 regardless of who wrote it.
262
263 Thus, it is not the intent of this section to claim rights or contest your
264 rights to work written entirely by you; rather, the intent is to exercise
265 the right to control the distribution of derivative or collective works
266 based on the Program.
267
268 In addition, mere aggregation of another work not based on the Program with
269 the Program (or with a work based on the Program) on a volume of a storage
270 or distribution medium does not bring the other work under the scope of this
271 License.
272
273 3. You may copy and distribute the Program (or a work based on it, under
274 Section 2) in object code or executable form under the terms of Sections 1
275 and 2 above provided that you also do one of the following:
276
277 * a) Accompany it with the complete corresponding machine-readable source
278 code, which must be distributed under the terms of Sections 1 and 2
279 above on a medium customarily used for software interchange; or,
280
281 * b) Accompany it with a written offer, valid for at least three years,
282 to give any third party, for a charge no more than your cost of
283 physically performing source distribution, a complete machine-readable
284 copy of the corresponding source code, to be distributed under the
285 terms of Sections 1 and 2 above on a medium customarily used for
286 software interchange; or,
287
288 * c) Accompany it with the information you received as to the offer to
289 distribute corresponding source code. (This alternative is allowed only
290 for noncommercial distribution and only if you received the program in
291 object code or executable form with such an offer, in accord with
292 Subsection b above.)
293
294 The source code for a work means the preferred form of the work for making
295 modifications to it. For an executable work, complete source code means all
296 the source code for all modules it contains, plus any associated interface
297 definition files, plus the scripts used to control compilation and
298 installation of the executable. However, as a special exception, the source
299 code distributed need not include anything that is normally distributed (in
300 either source or binary form) with the major components (compiler, kernel,
301 and so on) of the operating system on which the executable runs, unless that
302 component itself accompanies the executable.
303
304 If distribution of executable or object code is made by offering access to
305 copy from a designated place, then offering equivalent access to copy the
306 source code from the same place counts as distribution of the source code,
307 even though third parties are not compelled to copy the source along with
308 the object code.
309
310 4. You may not copy, modify, sublicense, or distribute the Program except as
311 expressly provided under this License. Any attempt otherwise to copy,
312 modify, sublicense or distribute the Program is void, and will automatically
313 terminate your rights under this License. However, parties who have received
314 copies, or rights, from you under this License will not have their licenses
315 terminated so long as such parties remain in full compliance.
316
317 5. You are not required to accept this License, since you have not signed
318 it. However, nothing else grants you permission to modify or distribute the
319 Program or its derivative works. These actions are prohibited by law if you
320 do not accept this License. Therefore, by modifying or distributing the
321 Program (or any work based on the Program), you indicate your acceptance of
322 this License to do so, and all its terms and conditions for copying,
323 distributing or modifying the Program or works based on it.
324
325 6. Each time you redistribute the Program (or any work based on the
326 Program), the recipient automatically receives a license from the original
327 licensor to copy, distribute or modify the Program subject to these terms
328 and conditions. You may not impose any further restrictions on the
329 recipients' exercise of the rights granted herein. You are not responsible
330 for enforcing compliance by third parties to this License.
331
332 7. If, as a consequence of a court judgment or allegation of patent
333 infringement or for any other reason (not limited to patent issues),
334 conditions are imposed on you (whether by court order, agreement or
335 otherwise) that contradict the conditions of this License, they do not
336 excuse you from the conditions of this License. If you cannot distribute so
337 as to satisfy simultaneously your obligations under this License and any
338 other pertinent obligations, then as a consequence you may not distribute
339 the Program at all. For example, if a patent license would not permit
340 royalty-free redistribution of the Program by all those who receive copies
341 directly or indirectly through you, then the only way you could satisfy both
342 it and this License would be to refrain entirely from distribution of the
343 Program.
344
345 If any portion of this section is held invalid or unenforceable under any
346 particular circumstance, the balance of the section is intended to apply and
347 the section as a whole is intended to apply in other circumstances.
348
349 It is not the purpose of this section to induce you to infringe any patents
350 or other property right claims or to contest validity of any such claims;
351 this section has the sole purpose of protecting the integrity of the free
352 software distribution system, which is implemented by public license
353 practices. Many people have made generous contributions to the wide range of
354 software distributed through that system in reliance on consistent
355 application of that system; it is up to the author/donor to decide if he or
356 she is willing to distribute software through any other system and a
357 licensee cannot impose that choice.
358
359 This section is intended to make thoroughly clear what is believed to be a
360 consequence of the rest of this License.
361
362 8. If the distribution and/or use of the Program is restricted in certain
363 countries either by patents or by copyrighted interfaces, the original
364 copyright holder who places the Program under this License may add an
365 explicit geographical distribution limitation excluding those countries, so
366 that distribution is permitted only in or among countries not thus excluded.
367 In such case, this License incorporates the limitation as if written in the
368 body of this License.
369
370 9. The Free Software Foundation may publish revised and/or new versions of
371 the General Public License from time to time. Such new versions will be
372 similar in spirit to the present version, but may differ in detail to
373 address new problems or concerns.
374
375 Each version is given a distinguishing version number. If the Program
376 specifies a version number of this License which applies to it and "any
377 later version", you have the option of following the terms and conditions
378 either of that version or of any later version published by the Free
379 Software Foundation. If the Program does not specify a version number of
380 this License, you may choose any version ever published by the Free Software
381 Foundation.
382
383 10. If you wish to incorporate parts of the Program into other free programs
384 whose distribution conditions are different, write to the author to ask for
385 permission. For software which is copyrighted by the Free Software
386 Foundation, write to the Free Software Foundation; we sometimes make
387 exceptions for this. Our decision will be guided by the two goals of
388 preserving the free status of all derivatives of our free software and of
389 promoting the sharing and reuse of software generally.
390
391 NO WARRANTY
392
393 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR
394 THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN
395 OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES
396 PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED
397 OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
398 MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO
399 THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM
400 PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR
401 CORRECTION.
402
403 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
404 WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR
405 REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES,
406 INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING
407 OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO
408 LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR
409 THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER
410 PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE
411 POSSIBILITY OF SUCH DAMAGES.
412
413 END OF TERMS AND CONDITIONS
414
415 How to Apply These Terms to Your New Programs
416
417 If you develop a new program, and you want it to be of the greatest possible
418 use to the public, the best way to achieve this is to make it free software
419 which everyone can redistribute and change under these terms.
420
421 To do so, attach the following notices to the program. It is safest to
422 attach them to the start of each source file to most effectively convey the
423 exclusion of warranty; and each file should have at least the "copyright"
424 line and a pointer to where the full notice is found.
425
426 one line to give the program's name and an idea of what it does.
427 Copyright (C) 19yy name of author
428
429 This program is free software; you can redistribute it and/or
430 modify it under the terms of the GNU General Public License
431 as published by the Free Software Foundation; either version 2
432 of the License, or (at your option) any later version.
433
434 This program is distributed in the hope that it will be useful,
435 but WITHOUT ANY WARRANTY; without even the implied warranty of
436 MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
437 GNU General Public License for more details.
438
439 You should have received a copy of the GNU General Public License
440 along with this program; if not, write to the Free Software
441 Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
442
443 Also add information on how to contact you by electronic and paper mail.
444
445 If the program is interactive, make it output a short notice like this when
446 it starts in an interactive mode:
447
448 Gnomovision version 69, Copyright (C) 19yy name of author
449 Gnomovision comes with ABSOLUTELY NO WARRANTY; for details
450 type `show w'. This is free software, and you are welcome
451 to redistribute it under certain conditions; type `show c'
452 for details.
453
454 The hypothetical commands `show w' and `show c' should show the appropriate
455 parts of the General Public License. Of course, the commands you use may be
456 called something other than `show w' and `show c'; they could even be
457 mouse-clicks or menu items--whatever suits your program.
458
459 You should also get your employer (if you work as a programmer) or your
460 school, if any, to sign a "copyright disclaimer" for the program, if
461 necessary. Here is a sample; alter the names:
462
463 Yoyodyne, Inc., hereby disclaims all copyright
464 interest in the program `Gnomovision'
465 (which makes passes at compilers) written
466 by James Hacker.
467
468 signature of Ty Coon, 1 April 1989
469 Ty Coon, President of Vice
470
471 This General Public License does not permit incorporating your program into
472 proprietary programs. If your program is a subroutine library, you may
473 consider it more useful to permit linking proprietary applications with the
474 library. If this is what you want to do, use the GNU Library General Public
475 License instead of this License.