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