mirror of
https://github.com/nmap/nmap.git
synced 2025-12-07 05:01:29 +00:00
Apply new license templates, bump copyright date
This commit is contained in:
106
FPEngine.cc
106
FPEngine.cc
@@ -5,60 +5,58 @@
|
|||||||
* https://nmap.org/osdetect/ *
|
* https://nmap.org/osdetect/ *
|
||||||
* *
|
* *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|||||||
106
FPEngine.h
106
FPEngine.h
@@ -5,60 +5,58 @@
|
|||||||
* http://insecure.org/osdetect/ *
|
* http://insecure.org/osdetect/ *
|
||||||
* *
|
* *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|||||||
@@ -4,60 +4,58 @@
|
|||||||
* fingerprint matching against a certain host. *
|
* fingerprint matching against a certain host. *
|
||||||
* *
|
* *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|||||||
@@ -4,60 +4,58 @@
|
|||||||
* fingerprint matching against a certain host. *
|
* fingerprint matching against a certain host. *
|
||||||
* *
|
* *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|||||||
106
MACLookup.cc
106
MACLookup.cc
@@ -5,60 +5,58 @@
|
|||||||
* database. *
|
* database. *
|
||||||
* *
|
* *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|||||||
106
MACLookup.h
106
MACLookup.h
@@ -5,60 +5,58 @@
|
|||||||
* database. *
|
* database. *
|
||||||
* *
|
* *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|||||||
106
NewTargets.cc
106
NewTargets.cc
@@ -2,60 +2,58 @@
|
|||||||
* NewTargets.h -- The "NewTargets" class allows NSE scripts to add new *
|
* NewTargets.h -- The "NewTargets" class allows NSE scripts to add new *
|
||||||
* targets to the scan queue. *
|
* targets to the scan queue. *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|||||||
106
NewTargets.h
106
NewTargets.h
@@ -2,60 +2,58 @@
|
|||||||
* NewTargets.h -- The "NewTargets" class allows NSE scripts to add new *
|
* NewTargets.h -- The "NewTargets" class allows NSE scripts to add new *
|
||||||
* targets to the scan queue. *
|
* targets to the scan queue. *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|||||||
106
NmapOps.cc
106
NmapOps.cc
@@ -4,60 +4,58 @@
|
|||||||
* on user-provided command-line settings. *
|
* on user-provided command-line settings. *
|
||||||
* *
|
* *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|||||||
106
NmapOps.h
106
NmapOps.h
@@ -4,60 +4,58 @@
|
|||||||
* user-provided command-line settings. *
|
* user-provided command-line settings. *
|
||||||
* *
|
* *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|||||||
@@ -4,60 +4,58 @@
|
|||||||
* output into an orderly table for display to the user. *
|
* output into an orderly table for display to the user. *
|
||||||
* *
|
* *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|||||||
@@ -4,60 +4,58 @@
|
|||||||
* output into an orderly table for display to the user. *
|
* output into an orderly table for display to the user. *
|
||||||
* *
|
* *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|||||||
106
Target.cc
106
Target.cc
@@ -5,60 +5,58 @@
|
|||||||
* this class as they are determined. *
|
* this class as they are determined. *
|
||||||
* *
|
* *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|||||||
106
Target.h
106
Target.h
@@ -5,60 +5,58 @@
|
|||||||
* this class as they are determined. *
|
* this class as they are determined. *
|
||||||
* *
|
* *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|||||||
106
TargetGroup.cc
106
TargetGroup.cc
@@ -6,60 +6,58 @@
|
|||||||
* expressions that go into TargetGroup classes. *
|
* expressions that go into TargetGroup classes. *
|
||||||
* *
|
* *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|||||||
106
TargetGroup.h
106
TargetGroup.h
@@ -6,60 +6,58 @@
|
|||||||
* go into TargetGroup classes. *
|
* go into TargetGroup classes. *
|
||||||
* *
|
* *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|||||||
106
charpool.cc
106
charpool.cc
@@ -4,60 +4,58 @@
|
|||||||
* system. *
|
* system. *
|
||||||
* *
|
* *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|||||||
106
charpool.h
106
charpool.h
@@ -4,60 +4,58 @@
|
|||||||
* system. *
|
* system. *
|
||||||
* *
|
* *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|||||||
106
idle_scan.cc
106
idle_scan.cc
@@ -8,60 +8,58 @@
|
|||||||
* experienced Nmap users. *
|
* experienced Nmap users. *
|
||||||
* *
|
* *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|||||||
106
idle_scan.h
106
idle_scan.h
@@ -8,60 +8,58 @@
|
|||||||
* experienced Nmap users. *
|
* experienced Nmap users. *
|
||||||
* *
|
* *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|||||||
@@ -1,64 +1,61 @@
|
|||||||
|
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* ARPHeader.cc -- The ARPHeader Class represents an ARP packet. It *
|
* ARPHeader.cc -- The ARPHeader Class represents an ARP packet. It *
|
||||||
* contains methods to set any header field. In general, these methods do *
|
* contains methods to set any header field. In general, these methods do *
|
||||||
* error checkings and byte order conversion. *
|
* error checkings and byte order conversion. *
|
||||||
* *
|
* *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
/* This code was originally part of the Nping tool. */
|
/* This code was originally part of the Nping tool. */
|
||||||
|
|
||||||
|
|||||||
@@ -1,64 +1,61 @@
|
|||||||
|
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* ARPHeader.h -- The ARPHeader Class represents an ARP packet. It *
|
* ARPHeader.h -- The ARPHeader Class represents an ARP packet. It *
|
||||||
* contains methods to set any header field. In general, these methods do *
|
* contains methods to set any header field. In general, these methods do *
|
||||||
* error checkings and byte order conversion. *
|
* error checkings and byte order conversion. *
|
||||||
* *
|
* *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
/* This code was originally part of the Nping tool. */
|
/* This code was originally part of the Nping tool. */
|
||||||
|
|
||||||
|
|||||||
@@ -1,64 +1,61 @@
|
|||||||
|
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* ApplicationLayerElement.h -- Class ApplicationLayerElement is a *
|
* ApplicationLayerElement.h -- Class ApplicationLayerElement is a *
|
||||||
* generic class that represents an application layer protocol header or *
|
* generic class that represents an application layer protocol header or *
|
||||||
* any kind of payload or buffer. Classes like RawData inherit from it. *
|
* any kind of payload or buffer. Classes like RawData inherit from it. *
|
||||||
* *
|
* *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
/* This code was originally part of the Nping tool. */
|
/* This code was originally part of the Nping tool. */
|
||||||
|
|
||||||
|
|||||||
@@ -1,64 +1,61 @@
|
|||||||
|
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* DataLinkLayerElement.h -- Class DataLinkLayerElement is a generic *
|
* DataLinkLayerElement.h -- Class DataLinkLayerElement is a generic *
|
||||||
* class that represents a data link layer protocol header (and maybe a *
|
* class that represents a data link layer protocol header (and maybe a *
|
||||||
* footer) Classes like EthernetHeader inherit from it. *
|
* footer) Classes like EthernetHeader inherit from it. *
|
||||||
* *
|
* *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
/* This code was originally part of the Nping tool. */
|
/* This code was originally part of the Nping tool. */
|
||||||
|
|
||||||
|
|||||||
@@ -1,62 +1,59 @@
|
|||||||
|
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* DestOptsHeader.cc -- The DestOptsHeader Class represents an IPv6 *
|
* DestOptsHeader.cc -- The DestOptsHeader Class represents an IPv6 *
|
||||||
* Destination Options extension header. *
|
* Destination Options extension header. *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
/* This code was originally part of the Nping tool. */
|
/* This code was originally part of the Nping tool. */
|
||||||
|
|
||||||
|
|||||||
@@ -1,62 +1,59 @@
|
|||||||
|
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* DestOptsHeader.h -- The DestOptsHeader Class represents an IPv6 *
|
* DestOptsHeader.h -- The DestOptsHeader Class represents an IPv6 *
|
||||||
* Destination Options extension header. *
|
* Destination Options extension header. *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
/* This code was originally part of the Nping tool. */
|
/* This code was originally part of the Nping tool. */
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* EthernetHeader.cc -- The EthernetHeader Class represents an Ethernet *
|
* EthernetHeader.cc -- The EthernetHeader Class represents an Ethernet *
|
||||||
* header and footer. It contains methods to set the different header *
|
* header and footer. It contains methods to set the different header *
|
||||||
@@ -6,60 +5,58 @@
|
|||||||
* byte order conversions. *
|
* byte order conversions. *
|
||||||
* *
|
* *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
/* This code was originally part of the Nping tool. */
|
/* This code was originally part of the Nping tool. */
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* EthernetHeader.h -- The EthernetHeader Class represents an Ethernet *
|
* EthernetHeader.h -- The EthernetHeader Class represents an Ethernet *
|
||||||
* header and footer. It contains methods to set the different header *
|
* header and footer. It contains methods to set the different header *
|
||||||
@@ -6,60 +5,58 @@
|
|||||||
* byte order conversions. *
|
* byte order conversions. *
|
||||||
* *
|
* *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
/* This code was originally part of the Nping tool. */
|
/* This code was originally part of the Nping tool. */
|
||||||
|
|
||||||
|
|||||||
@@ -1,62 +1,59 @@
|
|||||||
|
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* FragmentHeader.cc -- The FragmentHeader Class represents an IPv6 *
|
* FragmentHeader.cc -- The FragmentHeader Class represents an IPv6 *
|
||||||
* Hop-by-Hop extension header. *
|
* Hop-by-Hop extension header. *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
/* This code was originally part of the Nping tool. */
|
/* This code was originally part of the Nping tool. */
|
||||||
|
|
||||||
|
|||||||
@@ -1,62 +1,59 @@
|
|||||||
|
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* FragmentHeader.h -- The FragmentHeader Class represents an IPv6 *
|
* FragmentHeader.h -- The FragmentHeader Class represents an IPv6 *
|
||||||
* Hop-by-Hop extension header. *
|
* Hop-by-Hop extension header. *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
/* This code was originally part of the Nping tool. */
|
/* This code was originally part of the Nping tool. */
|
||||||
|
|
||||||
|
|||||||
@@ -1,62 +1,59 @@
|
|||||||
|
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* HopByHopHeader.cc -- The HopByHopHeader Class represents an IPv6 *
|
* HopByHopHeader.cc -- The HopByHopHeader Class represents an IPv6 *
|
||||||
* Hop-by-Hop extension header. *
|
* Hop-by-Hop extension header. *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
/* This code was originally part of the Nping tool. */
|
/* This code was originally part of the Nping tool. */
|
||||||
|
|
||||||
|
|||||||
@@ -1,62 +1,59 @@
|
|||||||
|
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* HopByHopHeader.h -- The HopByHopHeader Class represents an IPv6 *
|
* HopByHopHeader.h -- The HopByHopHeader Class represents an IPv6 *
|
||||||
* Hop-by-Hop extension header. *
|
* Hop-by-Hop extension header. *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
/* This code was originally part of the Nping tool. */
|
/* This code was originally part of the Nping tool. */
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* ICMPHeader.h -- Class ICMPHeader is a generic class for the ICMP *
|
* ICMPHeader.h -- Class ICMPHeader is a generic class for the ICMP *
|
||||||
* protocol. Its aim is to provide a little bit of abstraction from the *
|
* protocol. Its aim is to provide a little bit of abstraction from the *
|
||||||
@@ -6,60 +5,58 @@
|
|||||||
* inherit from it. *
|
* inherit from it. *
|
||||||
* *
|
* *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
/* This code was originally part of the Nping tool. */
|
/* This code was originally part of the Nping tool. */
|
||||||
|
|
||||||
|
|||||||
@@ -1,64 +1,61 @@
|
|||||||
|
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* ICMPv4Header.cc -- The ICMPv4Header Class represents an ICMP version 4 *
|
* ICMPv4Header.cc -- The ICMPv4Header Class represents an ICMP version 4 *
|
||||||
* packet. It contains methods to set any header field. In general, these *
|
* packet. It contains methods to set any header field. In general, these *
|
||||||
* methods do error checkings and byte order conversion. *
|
* methods do error checkings and byte order conversion. *
|
||||||
* *
|
* *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
/* This code was originally part of the Nping tool. */
|
/* This code was originally part of the Nping tool. */
|
||||||
|
|
||||||
|
|||||||
@@ -1,64 +1,61 @@
|
|||||||
|
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* ICMPv4Header.h -- The ICMPv4Header Class represents an ICMP version 4 *
|
* ICMPv4Header.h -- The ICMPv4Header Class represents an ICMP version 4 *
|
||||||
* packet. It contains methods to set any header field. In general, these *
|
* packet. It contains methods to set any header field. In general, these *
|
||||||
* methods do error checkings and byte order conversion. *
|
* methods do error checkings and byte order conversion. *
|
||||||
* *
|
* *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
/* This code was originally part of the Nping tool. */
|
/* This code was originally part of the Nping tool. */
|
||||||
|
|
||||||
|
|||||||
@@ -1,64 +1,61 @@
|
|||||||
|
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* ICMPv6Header.cc -- The ICMPv6Header Class represents an ICMP version 6 *
|
* ICMPv6Header.cc -- The ICMPv6Header Class represents an ICMP version 6 *
|
||||||
* packet. It contains methods to set any header field. In general, these *
|
* packet. It contains methods to set any header field. In general, these *
|
||||||
* methods do error checkings and byte order conversion. *
|
* methods do error checkings and byte order conversion. *
|
||||||
* *
|
* *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
/* This code was originally part of the Nping tool. */
|
/* This code was originally part of the Nping tool. */
|
||||||
|
|
||||||
|
|||||||
@@ -1,64 +1,61 @@
|
|||||||
|
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* ICMPv6Header.h -- The ICMPv6Header Class represents an ICMP version 6 *
|
* ICMPv6Header.h -- The ICMPv6Header Class represents an ICMP version 6 *
|
||||||
* packet. It contains methods to set any header field. In general, these *
|
* packet. It contains methods to set any header field. In general, these *
|
||||||
* methods do error checkings and byte order conversion. *
|
* methods do error checkings and byte order conversion. *
|
||||||
* *
|
* *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
/* This code was originally part of the Nping tool. */
|
/* This code was originally part of the Nping tool. */
|
||||||
|
|
||||||
|
|||||||
@@ -1,64 +1,61 @@
|
|||||||
|
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* ICMPv6Option.cc -- The ICMPv6Option Class represents an ICMP version 6 *
|
* ICMPv6Option.cc -- The ICMPv6Option Class represents an ICMP version 6 *
|
||||||
* option. It contains methods to set any header field. In general, these *
|
* option. It contains methods to set any header field. In general, these *
|
||||||
* methods do error checkings and byte order conversion. *
|
* methods do error checkings and byte order conversion. *
|
||||||
* *
|
* *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
/* This code was originally part of the Nping tool. */
|
/* This code was originally part of the Nping tool. */
|
||||||
|
|
||||||
|
|||||||
@@ -1,64 +1,61 @@
|
|||||||
|
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* ICMPv6Option.h -- The ICMPv6Option Class represents an ICMP version 6 *
|
* ICMPv6Option.h -- The ICMPv6Option Class represents an ICMP version 6 *
|
||||||
* option. It contains methods to set any header field. In general, these *
|
* option. It contains methods to set any header field. In general, these *
|
||||||
* methods do error checkings and byte order conversion. *
|
* methods do error checkings and byte order conversion. *
|
||||||
* *
|
* *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
/* This code was originally part of the Nping tool. */
|
/* This code was originally part of the Nping tool. */
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* ICMPv6RRBody.h -- The ICMPv6RRBody Class represents an ICMP version 6 *
|
* ICMPv6RRBody.h -- The ICMPv6RRBody Class represents an ICMP version 6 *
|
||||||
* Router Renumbering message body. It contains methods to set any header *
|
* Router Renumbering message body. It contains methods to set any header *
|
||||||
@@ -6,60 +5,58 @@
|
|||||||
* conversions. *
|
* conversions. *
|
||||||
* *
|
* *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
/* This code was originally part of the Nping tool. */
|
/* This code was originally part of the Nping tool. */
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* ICMPv6RRBody.cc -- The ICMPv6RRBody Class represents an ICMP version 6 *
|
* ICMPv6RRBody.cc -- The ICMPv6RRBody Class represents an ICMP version 6 *
|
||||||
* Router Renumbering message body. It contains methods to set any header *
|
* Router Renumbering message body. It contains methods to set any header *
|
||||||
@@ -6,60 +5,58 @@
|
|||||||
* conversions. *
|
* conversions. *
|
||||||
* *
|
* *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
/* This code was originally part of the Nping tool. */
|
/* This code was originally part of the Nping tool. */
|
||||||
|
|
||||||
|
|||||||
@@ -1,64 +1,61 @@
|
|||||||
|
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* IPv4Header.cc -- The IPv4Header Class represents an IPv4 datagram. It *
|
* IPv4Header.cc -- The IPv4Header Class represents an IPv4 datagram. It *
|
||||||
* contains methods to set any header field. In general, these methods do *
|
* contains methods to set any header field. In general, these methods do *
|
||||||
* error checkings and byte order conversion. *
|
* error checkings and byte order conversion. *
|
||||||
* *
|
* *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
/* This code was originally part of the Nping tool. */
|
/* This code was originally part of the Nping tool. */
|
||||||
|
|
||||||
|
|||||||
@@ -1,64 +1,61 @@
|
|||||||
|
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* IPv4Header.h -- The IPv4Header Class represents an IPv4 datagram. It *
|
* IPv4Header.h -- The IPv4Header Class represents an IPv4 datagram. It *
|
||||||
* contains methods to set any header field. In general, these methods do *
|
* contains methods to set any header field. In general, these methods do *
|
||||||
* error checkings and byte order conversion. *
|
* error checkings and byte order conversion. *
|
||||||
* *
|
* *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
/* This code was originally part of the Nping tool. */
|
/* This code was originally part of the Nping tool. */
|
||||||
|
|
||||||
|
|||||||
@@ -1,63 +1,60 @@
|
|||||||
|
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* IPv6ExtensionHeader.h -- The IPv6ExtensionHeader class represents *
|
* IPv6ExtensionHeader.h -- The IPv6ExtensionHeader class represents *
|
||||||
* a generic class for IPv6 extension headers. Specific headers (like *
|
* a generic class for IPv6 extension headers. Specific headers (like *
|
||||||
* Hop-by-Hop or Routing) inherit from this class. *
|
* Hop-by-Hop or Routing) inherit from this class. *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
/* This code was originally part of the Nping tool. */
|
/* This code was originally part of the Nping tool. */
|
||||||
|
|
||||||
|
|||||||
@@ -1,64 +1,61 @@
|
|||||||
|
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* IPv6Header.cc -- The IPv6Header Class represents an IPv4 datagram. It *
|
* IPv6Header.cc -- The IPv6Header Class represents an IPv4 datagram. It *
|
||||||
* contains methods to set any header field. In general, these methods do *
|
* contains methods to set any header field. In general, these methods do *
|
||||||
* error checkings and byte order conversion. *
|
* error checkings and byte order conversion. *
|
||||||
* *
|
* *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
/* This code was originally part of the Nping tool. */
|
/* This code was originally part of the Nping tool. */
|
||||||
|
|
||||||
|
|||||||
@@ -1,64 +1,61 @@
|
|||||||
|
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* IPv6Header.h -- The IPv6Header Class represents an IPv6 datagram. It *
|
* IPv6Header.h -- The IPv6Header Class represents an IPv6 datagram. It *
|
||||||
* contains methods to set any header field. In general, these methods do *
|
* contains methods to set any header field. In general, these methods do *
|
||||||
* error checkings and byte order conversion. *
|
* error checkings and byte order conversion. *
|
||||||
* *
|
* *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
/* This code was originally part of the Nping tool. */
|
/* This code was originally part of the Nping tool. */
|
||||||
|
|
||||||
|
|||||||
@@ -1,64 +1,61 @@
|
|||||||
|
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* NetworkLayerElement.cc -- Class NetworkLayerElement is a generic class *
|
* NetworkLayerElement.cc -- Class NetworkLayerElement is a generic class *
|
||||||
* that represents a network layer protocol header. Classes like IPv4Header*
|
* that represents a network layer protocol header. Classes like IPv4Header*
|
||||||
* or IPv6Header inherit from it. *
|
* or IPv6Header inherit from it. *
|
||||||
* *
|
* *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
/* This code was originally part of the Nping tool. */
|
/* This code was originally part of the Nping tool. */
|
||||||
|
|
||||||
|
|||||||
@@ -1,64 +1,61 @@
|
|||||||
|
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* NetworkLayerElement.h -- Class NetworkLayerElement is a generic class *
|
* NetworkLayerElement.h -- Class NetworkLayerElement is a generic class *
|
||||||
* that represents a network layer protocol header. Classes like IPv4Header*
|
* that represents a network layer protocol header. Classes like IPv4Header*
|
||||||
* or IPv6Header inherit from it. *
|
* or IPv6Header inherit from it. *
|
||||||
* *
|
* *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
/* This code was originally part of the Nping tool. */
|
/* This code was originally part of the Nping tool. */
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* PacketElement.cc -- The PacketElement Class is a generic class that *
|
* PacketElement.cc -- The PacketElement Class is a generic class that *
|
||||||
* represents a protocol header or a part of a network packet. Many other *
|
* represents a protocol header or a part of a network packet. Many other *
|
||||||
@@ -6,60 +5,58 @@
|
|||||||
* etc). *
|
* etc). *
|
||||||
* *
|
* *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
/* This code was originally part of the Nping tool. */
|
/* This code was originally part of the Nping tool. */
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* PacketElement.h -- The PacketElement Class is a generic class that *
|
* PacketElement.h -- The PacketElement Class is a generic class that *
|
||||||
* represents a protocol header or a part of a network packet. Many other *
|
* represents a protocol header or a part of a network packet. Many other *
|
||||||
@@ -6,60 +5,58 @@
|
|||||||
* etc). *
|
* etc). *
|
||||||
* *
|
* *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
/* This code was originally part of the Nping tool. */
|
/* This code was originally part of the Nping tool. */
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* PacketParser.cc -- The PacketParser Class offers methods to parse *
|
* PacketParser.cc -- The PacketParser Class offers methods to parse *
|
||||||
* received network packets. Its main purpose is to facilitate the *
|
* received network packets. Its main purpose is to facilitate the *
|
||||||
@@ -6,60 +5,58 @@
|
|||||||
* PacketElement family. *
|
* PacketElement family. *
|
||||||
* *
|
* *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
/* This code was originally part of the Nping tool. */
|
/* This code was originally part of the Nping tool. */
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* PacketParser.h -- The PacketParser Class offers methods to parse *
|
* PacketParser.h -- The PacketParser Class offers methods to parse *
|
||||||
* received network packets. Its main purpose is to facilitate the *
|
* received network packets. Its main purpose is to facilitate the *
|
||||||
@@ -6,60 +5,58 @@
|
|||||||
* PacketElement family. *
|
* PacketElement family. *
|
||||||
* *
|
* *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
/* This code was originally part of the Nping tool. */
|
/* This code was originally part of the Nping tool. */
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* RawData.cc -- The RawData Class represents a network packet payload. It *
|
* RawData.cc -- The RawData Class represents a network packet payload. It *
|
||||||
* is essentially a single buffer that may contain either random data or *
|
* is essentially a single buffer that may contain either random data or *
|
||||||
@@ -6,60 +5,58 @@
|
|||||||
* to a UDP datagram. *
|
* to a UDP datagram. *
|
||||||
* *
|
* *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
/* This code was originally part of the Nping tool. */
|
/* This code was originally part of the Nping tool. */
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* RawData.h -- The RawData Class represents a network packet payload. It *
|
* RawData.h -- The RawData Class represents a network packet payload. It *
|
||||||
* is essentially a single buffer that may contain either random data or *
|
* is essentially a single buffer that may contain either random data or *
|
||||||
@@ -6,60 +5,58 @@
|
|||||||
* to a UDP datagram. *
|
* to a UDP datagram. *
|
||||||
* *
|
* *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
/* This code was originally part of the Nping tool. */
|
/* This code was originally part of the Nping tool. */
|
||||||
|
|
||||||
|
|||||||
@@ -1,62 +1,59 @@
|
|||||||
|
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* RoutingHeader.cc -- The RoutingHeader Class represents an IPv6 Routing *
|
* RoutingHeader.cc -- The RoutingHeader Class represents an IPv6 Routing *
|
||||||
* extension header. *
|
* extension header. *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
/* This code was originally part of the Nping tool. */
|
/* This code was originally part of the Nping tool. */
|
||||||
|
|
||||||
|
|||||||
@@ -1,62 +1,59 @@
|
|||||||
|
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* RoutingHeader.h -- The RoutingHeader Class represents an IPv6 Routing *
|
* RoutingHeader.h -- The RoutingHeader Class represents an IPv6 Routing *
|
||||||
* extension header. *
|
* extension header. *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
/* This code was originally part of the Nping tool. */
|
/* This code was originally part of the Nping tool. */
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* TCPHeader.cc -- The TCPHeader Class represents a TCP packet. It *
|
* TCPHeader.cc -- The TCPHeader Class represents a TCP packet. It *
|
||||||
* contains methods to set the different header fields. These methods *
|
* contains methods to set the different header fields. These methods *
|
||||||
@@ -6,60 +5,58 @@
|
|||||||
* conversions. *
|
* conversions. *
|
||||||
* *
|
* *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
/* This code was originally part of the Nping tool. */
|
/* This code was originally part of the Nping tool. */
|
||||||
|
|
||||||
|
|||||||
@@ -1,64 +1,61 @@
|
|||||||
|
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* TCPHeader.h -- The TCPHeader Class represents a TCP packet. It contains *
|
* TCPHeader.h -- The TCPHeader Class represents a TCP packet. It contains *
|
||||||
* methods to set the different header fields. These methods tipically *
|
* methods to set the different header fields. These methods tipically *
|
||||||
* perform the necessary error checks and byte order conversions. *
|
* perform the necessary error checks and byte order conversions. *
|
||||||
* *
|
* *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
/* This code was originally part of the Nping tool. */
|
/* This code was originally part of the Nping tool. */
|
||||||
|
|
||||||
|
|||||||
@@ -4,60 +4,58 @@
|
|||||||
* TCPHeader or UDPHeader inherit from it. *
|
* TCPHeader or UDPHeader inherit from it. *
|
||||||
* *
|
* *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
/* This code was originally part of the Nping tool. */
|
/* This code was originally part of the Nping tool. */
|
||||||
|
|
||||||
|
|||||||
@@ -4,60 +4,58 @@
|
|||||||
* TCPHeader or UDPHeader inherit from it. *
|
* TCPHeader or UDPHeader inherit from it. *
|
||||||
* *
|
* *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
/* This code was originally part of the Nping tool. */
|
/* This code was originally part of the Nping tool. */
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* UDPHeader.cc -- The UDPHeader Class represents a UDP packet. It *
|
* UDPHeader.cc -- The UDPHeader Class represents a UDP packet. It *
|
||||||
* contains methods to set the different header fields. These methods *
|
* contains methods to set the different header fields. These methods *
|
||||||
@@ -6,60 +5,58 @@
|
|||||||
* conversions. *
|
* conversions. *
|
||||||
* *
|
* *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
/* This code was originally part of the Nping tool. */
|
/* This code was originally part of the Nping tool. */
|
||||||
|
|
||||||
|
|||||||
@@ -1,64 +1,61 @@
|
|||||||
|
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* UDPHeader.h -- The UDPHeader Class represents a UDP packet. It contains *
|
* UDPHeader.h -- The UDPHeader Class represents a UDP packet. It contains *
|
||||||
* methods to set the different header fields. These methods tipically *
|
* methods to set the different header fields. These methods tipically *
|
||||||
* perform the necessary error checks and byte order conversions. *
|
* perform the necessary error checks and byte order conversions. *
|
||||||
* *
|
* *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
/* This code was originally part of the Nping tool. */
|
/* This code was originally part of the Nping tool. */
|
||||||
|
|
||||||
|
|||||||
@@ -1,62 +1,59 @@
|
|||||||
|
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* netutil.cc *
|
* netutil.cc *
|
||||||
* *
|
* *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
/* Since OS X 10.7, we must declare whether we expect RFC 2292 or RFC 3542
|
/* Since OS X 10.7, we must declare whether we expect RFC 2292 or RFC 3542
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* netutil.h -- The main include file exposing the external API for *
|
* netutil.h -- The main include file exposing the external API for *
|
||||||
* libnetutil, a library that provides network-related functions or *
|
* libnetutil, a library that provides network-related functions or *
|
||||||
@@ -7,60 +6,58 @@
|
|||||||
* written for use in the Nmap Security Scanner ( https://nmap.org ). *
|
* written for use in the Nmap Security Scanner ( https://nmap.org ). *
|
||||||
* *
|
* *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
/* $Id: netutil.h 18098 2010-06-14 11:50:12Z luis $ */
|
/* $Id: netutil.h 18098 2010-06-14 11:50:12Z luis $ */
|
||||||
|
|||||||
@@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* netutil.h -- The main include file exposing the external API for *
|
* netutil.h -- The main include file exposing the external API for *
|
||||||
* libnetutil, a library that provides network-related functions or *
|
* libnetutil, a library that provides network-related functions or *
|
||||||
@@ -7,60 +6,58 @@
|
|||||||
* written for use in the Nmap Security Scanner ( https://nmap.org ). *
|
* written for use in the Nmap Security Scanner ( https://nmap.org ). *
|
||||||
* *
|
* *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
/* $Id: npacket.h 18098 2010-06-14 11:50:12Z luis $ */
|
/* $Id: npacket.h 18098 2010-06-14 11:50:12Z luis $ */
|
||||||
|
|||||||
106
main.cc
106
main.cc
@@ -4,60 +4,58 @@
|
|||||||
* does very little except for calling nmap_main() (which is in nmap.cc) *
|
* does very little except for calling nmap_main() (which is in nmap.cc) *
|
||||||
* *
|
* *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|||||||
@@ -5,60 +5,58 @@
|
|||||||
* be shared. *
|
* be shared. *
|
||||||
* *
|
* *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
/* $Id: */
|
/* $Id: */
|
||||||
|
|||||||
@@ -5,60 +5,58 @@
|
|||||||
* port numbers. *
|
* port numbers. *
|
||||||
* *
|
* *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|||||||
@@ -5,60 +5,58 @@
|
|||||||
* port numbers. *
|
* port numbers. *
|
||||||
* *
|
* *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|||||||
106
nbase/nbase.h
106
nbase/nbase.h
@@ -8,60 +8,58 @@
|
|||||||
* use in the Nmap Security Scanner ( https://nmap.org ). *
|
* use in the Nmap Security Scanner ( https://nmap.org ). *
|
||||||
* *
|
* *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|||||||
@@ -1,60 +1,58 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* nbase_addrset.c -- Address set (addrset) management. *
|
* nbase_addrset.c -- Address set (addrset) management. *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|||||||
@@ -6,60 +6,58 @@
|
|||||||
* understand system particulars. *
|
* understand system particulars. *
|
||||||
* *
|
* *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|||||||
@@ -3,60 +3,58 @@
|
|||||||
* nbase_crc32ct.h -- CRC-32C (Castagnoli) table definitions. *
|
* nbase_crc32ct.h -- CRC-32C (Castagnoli) table definitions. *
|
||||||
* *
|
* *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|||||||
@@ -4,60 +4,58 @@
|
|||||||
* written by fyodor@nmap.org . *
|
* written by fyodor@nmap.org . *
|
||||||
* *
|
* *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|||||||
@@ -7,60 +7,58 @@
|
|||||||
* fyodor@nmap.org . *
|
* fyodor@nmap.org . *
|
||||||
* *
|
* *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|||||||
@@ -4,60 +4,58 @@
|
|||||||
* functions. *
|
* functions. *
|
||||||
* *
|
* *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|||||||
@@ -10,60 +10,58 @@
|
|||||||
* Copyright (c) 1996 David Mazieres <dm@lcs.mit.edu> *
|
* Copyright (c) 1996 David Mazieres <dm@lcs.mit.edu> *
|
||||||
* *
|
* *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|||||||
@@ -4,60 +4,58 @@
|
|||||||
* were written by fyodor@nmap.org . *
|
* were written by fyodor@nmap.org . *
|
||||||
* *
|
* *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|||||||
@@ -4,60 +4,58 @@
|
|||||||
* functions. *
|
* functions. *
|
||||||
* *
|
* *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|||||||
@@ -5,60 +5,58 @@
|
|||||||
* for nbase_config.h *
|
* for nbase_config.h *
|
||||||
* *
|
* *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|||||||
@@ -3,60 +3,58 @@
|
|||||||
* stdin on Windows without blocking. *
|
* stdin on Windows without blocking. *
|
||||||
* *
|
* *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|||||||
@@ -3,60 +3,58 @@
|
|||||||
* reproduce UNIX-centric concepts on Windows. *
|
* reproduce UNIX-centric concepts on Windows. *
|
||||||
* *
|
* *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|||||||
@@ -4,60 +4,58 @@
|
|||||||
* which do not already have them. *
|
* which do not already have them. *
|
||||||
* *
|
* *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|||||||
106
ncat/base64.c
106
ncat/base64.c
@@ -1,60 +1,58 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* base64.c -- Base64 encoding. *
|
* base64.c -- Base64 encoding. *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|||||||
106
ncat/base64.h
106
ncat/base64.h
@@ -1,60 +1,58 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* base64.h *
|
* base64.h *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|||||||
@@ -1,60 +1,58 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* config_win.h *
|
* config_win.h *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
/* $Id: ncat.h 16595 2010-01-27 02:51:16Z fyodor $ */
|
/* $Id: ncat.h 16595 2010-01-27 02:51:16Z fyodor $ */
|
||||||
|
|||||||
106
ncat/http.c
106
ncat/http.c
@@ -1,60 +1,58 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* http.c -- HTTP network interaction, parsing, and construction. *
|
* http.c -- HTTP network interaction, parsing, and construction. *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|||||||
106
ncat/http.h
106
ncat/http.h
@@ -1,60 +1,58 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* http.h *
|
* http.h *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|||||||
@@ -1,60 +1,58 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* ncat_digest.c -- HTTP Digest authentication handling. *
|
* ncat_digest.c -- HTTP Digest authentication handling. *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|||||||
106
ncat/ncat.h
106
ncat/ncat.h
@@ -1,60 +1,58 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* ncat.h *
|
* ncat.h *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|||||||
@@ -1,60 +1,58 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* ncat_config.h *
|
* ncat_config.h *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
#ifndef NCAT_CONFIG_H
|
#ifndef NCAT_CONFIG_H
|
||||||
|
|||||||
@@ -1,60 +1,58 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* ncat_connect.c -- Ncat connect mode. *
|
* ncat_connect.c -- Ncat connect mode. *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|||||||
@@ -1,60 +1,58 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* ncat_connect.h *
|
* ncat_connect.h *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|||||||
106
ncat/ncat_core.c
106
ncat/ncat_core.c
@@ -1,60 +1,58 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* ncat_core.c -- Contains option definitions and miscellaneous functions. *
|
* ncat_core.c -- Contains option definitions and miscellaneous functions. *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|||||||
106
ncat/ncat_core.h
106
ncat/ncat_core.h
@@ -1,60 +1,58 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* ncat_core.h *
|
* ncat_core.h *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|||||||
106
ncat/ncat_exec.h
106
ncat/ncat_exec.h
@@ -1,60 +1,58 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* ncat_exec.h *
|
* ncat_exec.h *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|||||||
@@ -1,60 +1,58 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* ncat_exec_win.c -- Windows-specific subprocess execution. *
|
* ncat_exec_win.c -- Windows-specific subprocess execution. *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|||||||
@@ -1,60 +1,58 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* ncat_listen.c -- --listen mode. *
|
* ncat_listen.c -- --listen mode. *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|||||||
@@ -1,60 +1,58 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* ncat_listen.h *
|
* ncat_listen.h *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|||||||
106
ncat/ncat_lua.c
106
ncat/ncat_lua.c
@@ -1,60 +1,58 @@
|
|||||||
/***************************************************************************
|
/***************************************************************************
|
||||||
* ncat_lua.c -- ncat lua facilities *
|
* ncat_lua.c -- ncat lua facilities *
|
||||||
***********************IMPORTANT NMAP LICENSE TERMS************************
|
***********************IMPORTANT NMAP LICENSE TERMS************************
|
||||||
* *
|
*
|
||||||
* The Nmap Security Scanner is (C) 1996-2022 Nmap Software LLC ("The Nmap *
|
* The Nmap Security Scanner is (C) 1996-2023 Nmap Software LLC ("The Nmap
|
||||||
* Project"). Nmap is also a registered trademark of the Nmap Project. *
|
* Project"). Nmap is also a registered trademark of the Nmap Project.
|
||||||
* *
|
*
|
||||||
* This program is distributed under the terms of the Nmap Public Source *
|
* This program is distributed under the terms of the Nmap Public Source
|
||||||
* License (NPSL). The exact license text applying to a particular Nmap *
|
* License (NPSL). The exact license text applying to a particular Nmap
|
||||||
* release or source code control revision is contained in the LICENSE *
|
* release or source code control revision is contained in the LICENSE
|
||||||
* file distributed with that version of Nmap or source code control *
|
* file distributed with that version of Nmap or source code control
|
||||||
* revision. More Nmap copyright/legal information is available from *
|
* revision. More Nmap copyright/legal information is available from
|
||||||
* https://nmap.org/book/man-legal.html, and further information on the *
|
* https://nmap.org/book/man-legal.html, and further information on the
|
||||||
* NPSL license itself can be found at https://nmap.org/npsl/ . This *
|
* NPSL license itself can be found at https://nmap.org/npsl/ . This
|
||||||
* header summarizes some key points from the Nmap license, but is no *
|
* header summarizes some key points from the Nmap license, but is no
|
||||||
* substitute for the actual license text. *
|
* substitute for the actual license text.
|
||||||
* *
|
*
|
||||||
* Nmap is generally free for end users to download and use themselves, *
|
* Nmap is generally free for end users to download and use themselves,
|
||||||
* including commercial use. It is available from https://nmap.org. *
|
* including commercial use. It is available from https://nmap.org.
|
||||||
* *
|
*
|
||||||
* The Nmap license generally prohibits companies from using and *
|
* The Nmap license generally prohibits companies from using and
|
||||||
* redistributing Nmap in commercial products, but we sell a special Nmap *
|
* redistributing Nmap in commercial products, but we sell a special Nmap
|
||||||
* OEM Edition with a more permissive license and special features for *
|
* OEM Edition with a more permissive license and special features for
|
||||||
* this purpose. See https://nmap.org/oem/ *
|
* this purpose. See https://nmap.org/oem/
|
||||||
* *
|
*
|
||||||
* If you have received a written Nmap license agreement or contract *
|
* If you have received a written Nmap license agreement or contract
|
||||||
* stating terms other than these (such as an Nmap OEM license), you may *
|
* stating terms other than these (such as an Nmap OEM license), you may
|
||||||
* choose to use and redistribute Nmap under those terms instead. *
|
* choose to use and redistribute Nmap under those terms instead.
|
||||||
* *
|
*
|
||||||
* The official Nmap Windows builds include the Npcap software *
|
* The official Nmap Windows builds include the Npcap software
|
||||||
* (https://npcap.com) for packet capture and transmission. It is under *
|
* (https://npcap.com) for packet capture and transmission. It is under
|
||||||
* separate license terms which forbid redistribution without special *
|
* separate license terms which forbid redistribution without special
|
||||||
* permission. So the official Nmap Windows builds may not be *
|
* permission. So the official Nmap Windows builds may not be redistributed
|
||||||
* redistributed without special permission (such as an Nmap OEM *
|
* without special permission (such as an Nmap OEM license).
|
||||||
* license). *
|
*
|
||||||
* *
|
* Source is provided to this software because we believe users have a
|
||||||
* Source is provided to this software because we believe users have a *
|
* right to know exactly what a program is going to do before they run it.
|
||||||
* right to know exactly what a program is going to do before they run it. *
|
* This also allows you to audit the software for security holes.
|
||||||
* This also allows you to audit the software for security holes. *
|
*
|
||||||
* *
|
* Source code also allows you to port Nmap to new platforms, fix bugs, and add
|
||||||
* Source code also allows you to port Nmap to new platforms, fix bugs, *
|
* new features. You are highly encouraged to submit your changes as a Github PR
|
||||||
* and add new features. You are highly encouraged to submit your *
|
* or by email to the dev@nmap.org mailing list for possible incorporation into
|
||||||
* changes as a Github PR or by email to the dev@nmap.org mailing list *
|
* the main distribution. Unless you specify otherwise, it is understood that
|
||||||
* for possible incorporation into the main distribution. Unless you *
|
* you are offering us very broad rights to use your submissions as described in
|
||||||
* specify otherwise, it is understood that you are offering us very *
|
* the Nmap Public Source License Contributor Agreement. This is important
|
||||||
* broad rights to use your submissions as described in the Nmap Public *
|
* because we fund the project by selling licenses with various terms, and also
|
||||||
* Source License Contributor Agreement. This is important because we *
|
* because the inability to relicense code has caused devastating problems for
|
||||||
* fund the project by selling licenses with various terms, and also *
|
* other Free Software projects (such as KDE and NASM).
|
||||||
* because the inability to relicense code has caused devastating *
|
*
|
||||||
* problems for other Free Software projects (such as KDE and NASM). *
|
* The free version of Nmap is distributed in the hope that it will be
|
||||||
* *
|
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||||
* The free version of Nmap is distributed in the hope that it will be *
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties,
|
||||||
* useful, but WITHOUT ANY WARRANTY; without even the implied warranty of *
|
* indemnification and commercial support are all available through the
|
||||||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. Warranties, *
|
* Npcap OEM program--see https://nmap.org/oem/
|
||||||
* indemnification and commercial support are all available through the *
|
*
|
||||||
* Npcap OEM program--see https://nmap.org/oem/ *
|
|
||||||
* *
|
|
||||||
***************************************************************************/
|
***************************************************************************/
|
||||||
|
|
||||||
/* $Id$ */
|
/* $Id$ */
|
||||||
|
|||||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user