Commit Graph

91 Commits

Author SHA1 Message Date
dmiller 58facd5fbf Remove obsolete AC_HEADER_TIME 2026-08-14 17:16:15 +00:00
dmiller 95d380b836 Bump copyright date to 2026 [skip ci] 2026-02-16 22:33:40 +00:00
dmiller 67a796844f Consolidate raw socket acquisition. 2025-06-30 19:24:32 +00:00
dmiller 6db5c9cb85 Bump copyright date 2025-02-26 17:44:43 +00:00
dmiller 5829b53691 Move log_bogus_target() to output.cc 2024-05-01 22:19:31 +00:00
dmiller f999182d0f Bump date and reapply header templates 2024-02-28 18:46:45 +00:00
dmiller 6f6b2de214 Apply new license templates, bump copyright date 2023-04-14 17:11:46 +00:00
dmiller dd690b3e0b Bump copyright date and update some links [ci skip] 2022-02-18 17:38:46 +00:00
fyodor 3aec3f3a07 Update to latest copyright templates. Main change is that Insecure.Com LLC is now Nmap Software LLC 2021-11-23 16:04:37 +00:00
dmiller 74e066d356 Another round of const 2021-04-27 19:22:12 +00:00
dmiller ef8213a36c Reintegrate Nmap 7.90 release branch 2020-10-05 23:00:30 +00:00
dmiller 92f99bd0a4 Nbase is needed for __attribute__ on Windows 2020-08-31 15:20:50 +00:00
dmiller a2c75e0ef4 Abstract nsock logging function to avoid nsock.h inclusion in output.h 2020-01-11 16:03:28 +00:00
dmiller 6ed754b438 Add "hosthint" element to XML.
This feature allows programs consuming XML output to know when a target
has been found to be "up" before all scan phases are completed. This is
helpful for allocating storage, communicating scan progress, or
estimating total scan duration. Closes #1858.
2020-01-11 07:05:01 +00:00
dmiller d639a53088 Bump copyright date in license headers 2019-05-28 21:36:04 +00:00
dmiller ab79382f93 Additional header includes for time_t, gettimeofday, timeval, etc. See #1317, #1363 2019-05-22 15:27:13 +00:00
fyodor ff62300249 Bump copyright dates to 2018 and slightly improve wording (doesn't change meaning) of Nmap license header text 2018-01-28 21:18:17 +00:00
dmiller 2a1f81d42d Use bool not int for boolean options 2017-12-07 18:20:07 +00:00
dmiller 9c7ea727a7 Update license terms for 2017 2017-06-07 12:32:38 +00:00
dmiller 87991d57a2 Revert an incorrect change from r36730 2017-04-21 13:10:23 +00:00
dmiller e813de759a Reduce use of utils.h for error functions 2017-04-20 22:39:08 +00:00
dmiller 24f6cec25a Move scan lists structs and functions to scan_lists files. 2017-04-19 04:14:43 +00:00
fyodor 4bd67aa2fb Update the Nmap license/header text to reflect latest updates to docs/legal-notices.xml 2016-12-14 00:12:23 +00:00
dmiller 6e33d6ac3c Bump date in copyright headers 2016-04-04 15:38:44 +00:00
dmiller fcae4fa15d Fix build failures under --without-liblua 2015-10-26 16:16:02 +00:00
dmiller ffad433b43 Reduce more inclusions of .h files by forward-declaring classes 2015-07-02 04:14:51 +00:00
henri b55ff2d68f Don't associate nsock logging info to a nspool.
Make current loglevel and current log callback global
to the library. Attaching them to the nsock pool doesn't
bring any benefit and prevents from logging activity in
code sections that don't have access to a pool (such as
proxy chain specification parsing).

Updated external calls and nsock tests accordingly.
2015-06-27 08:21:53 +00:00
dmiller 66aeba6650 Move includes of stdarg.h closer to their use. 2015-06-23 15:52:57 +00:00
dmiller dfa969f3a2 Remove unneeded nmap.h and global_structures.h includes in .h files 2015-06-23 00:09:05 +00:00
dmiller 68409b2226 Update copyright date to 2015 2015-06-03 13:01:29 +00:00
dmiller 5adfb3b1de Update copyright notice to 2014 2014-08-16 01:52:33 +00:00
jay 8d5ec9e310 Reapply r33420, r33421. Fix a missing right parenthesis. https://xkcd.com/859/ 2014-08-15 12:09:22 +00:00
fyodor f6f59a7cd7 Auto regeneration with latest template files, etc. 2014-08-13 22:57:43 +00:00
jay d4cf544df6 Fix a missing bracket at the end of the IMPORTANT NMAP LICENSE TERMS part in each file 2014-08-02 19:29:50 +00:00
d33tah e3d1c178e3 Add newlines at the EOF in conformance to Daniel's coding standards
proposal. This only affects Nmap's root directory. We might also need to
modify the code which autogenerates Nmap's source code files such as IPv6
fingerprinting code.
2014-06-18 10:18:58 +00:00
dmiller 3f0d0c16f9 Spellcheck on Nmap, Nsock, Nbase source files 2014-02-20 18:44:12 +00:00
dmiller c9714990c7 Remove trailing whitespace from C/C++ files
https://secwiki.org/w/Nmap/Code_Standards
2014-02-12 20:25:51 +00:00
dmiller 866db7eea3 Revert r32528, was not tested on Windows 2013-11-27 13:32:05 +00:00
dmiller 9c36367eea header file cleanup
see http://seclists.org/nmap-dev/2013/q4/168

Move some includes out of nmap.h: nmap.h gets included lots of places,
and unconditionally included math.h, ctype.h, errno.h, stdio.h,
sys/stat.h, fcntl.h, sys/types.h, and stdarg.h. This commit moves those
includes into the .cc files where they are necessary and out of nmap.h

Remove redundant include global_structures.h, included from nmap.h

Removed redundant code included from nmap.h

Removing #include nbase.h when nmap.h is included (redundant)

Remove duplicate #include lines

Add ifndef guards to a few .h files
2013-11-26 20:55:29 +00:00
d33tah ccd0c02a4c Add a lacking space in the license comment. The command I used to do this is:
for file in `grep "* including the terms and conditions of this license text as well.       \*" * -r --files-with-match `; do sed "s/\* including the terms and conditions of this license text as well.       \*/* including the terms and conditions of this license text as well.        */g" -i $file; done
2013-09-11 19:06:20 +00:00
fyodor 6e01ecd452 Update an email address, fix a typo, and slightly reword a sentence. 2013-07-30 00:02:00 +00:00
fyodor 83fb10ec56 Update the Nmap copyright/license files. This isn't the new Nmap Public Source License we've been discussing on the list, but rather just a 'quick patch' to hopefully prevent some of the abuse we've been seeing from companies lately. More details on the changes will be posted to the dev list. Also, the copyright year was updated to 2013 (which is the only change to Nsock license statements). 2013-07-28 22:05:05 +00:00
henri 809f1eda68 Merged nsock-logging from nmap-exp/henri/nsock-logging/
Reworked the logging infrastructure to make it more flexible
and consistent.

Updated nmap, nping and ncat accordingly.  Nsock log level can
now be adjusted at runtime by pressing d/D in nmap.
2012-12-15 10:59:30 +00:00
fyodor 6a42ef47c0 Update the Nmap and Nsock source code headers to note new Nmap dev mailing list email address and a better URL for Nmap license. 2012-12-06 01:21:42 +00:00
david 5eb62f3169 Give comparescriptids static scope. 2012-12-04 03:06:18 +00:00
david 0c3e0fcc4d Structured script output.
Scripts may now return a key–value table, or such a table in addition to
a string. The table will be automatically formatted for normal output
and will appear as a hierarchy of elements in XML output.

Some history and discussion of this development can be found at
https://secwiki.org/w/Nmap/Structured_Script_Output.

This is a merge of r29484:29569 from /nmap-exp/david/xml-output.
2012-08-14 16:36:25 +00:00
sean bfeecd1895 Output for script results is now sortedi alphabetically. 2012-06-23 04:17:24 +00:00
fyodor 684f42c4ad One more adjustment to the license text. Notes that Zenmap, Ncat, and Nping use this license. Note that contributions made directly in the src repository are treated the same as those in the mailing list. 2012-03-01 06:53:35 +00:00
fyodor e96a7b7b24 Update the headers for each code file. This updates code copyright dates to 2012, notes the awesome NSE in the list of technology, and slightly rewords the derivative works clarification 2012-03-01 06:32:23 +00:00
david 87d9c4ba69 Remove some unused function parameters. 2011-06-14 02:29:39 +00:00