dmiller
1375f44416
Reduce sockaddr comparisons in raw scans
2022-11-02 02:12:38 +00:00
dmiller
4eee4f2e1f
Reduce work spent checking outstanding probes in raw scans
2022-11-02 02:12:37 +00:00
dmiller
b5dd2956dd
Check for sd > FD_SETSIZE before it is unrecoverable. Fixes #1857
2022-09-29 00:13:10 +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
e93109ef88
Make base_port a member of UltraScanInfo.
2021-08-06 02:47:58 +00:00
dmiller
180c716ca5
Combine tryno and pingseq
...
UltraProbe's tryno and pingseq attributes were mutually exclusive,
encoded in the same places in packets, and did not need more than 7 bits
to store. This change combines them into a bitfield. This simplifies
some logic, since they do not need to be distinguished from each other.
Additionally, in cases where the tryno is encoded in the source port
number, no further checks or decoding need to happen beyond comparing
the destination port of the response to the source port of the probe.
2021-08-06 02:47:57 +00:00
dmiller
1fd272f8dd
const all the things!
2021-04-23 20:37:41 +00:00
dmiller
28fde911fe
Remove an unused state variable from HostScanStats
2021-04-23 20:37:39 +00:00
dmiller
15726a0be1
Minor optimization of freshPortsLeft
...
The actual number only matters for certain debug output, so replaced
this frequently-called function with one that short-circuits to return a
boolean. Mostly only matters for host discovery scans, since all others
were only a few instructions already.
2020-10-26 16:59:06 +00:00
dmiller
ef8213a36c
Reintegrate Nmap 7.90 release branch
2020-10-05 23:00:30 +00:00
dmiller
ae10c8a19d
Abstract some things to move #includes out of headers.
2020-01-11 16:03:29 +00:00
dmiller
6d624f9ed7
Correct function prototypes from earlier change
2019-12-26 16:46:18 +00:00
dmiller
d639a53088
Bump copyright date in license headers
2019-05-28 21:36:04 +00:00
dmiller
aaf5075c67
Move probespec to its own header to reduce includes of scan_engine.h
2018-07-13 18:18:28 +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
9c7ea727a7
Update license terms for 2017
2017-06-07 12:32:38 +00:00
dmiller
ab5e247cee
Include netutil.h for IPPROTO_SCTP constant where necessary. Fixes #868
2017-04-26 18:55:16 +00:00
dmiller
339283d4b0
Remove some unused/overused includes
2017-04-19 14:53:24 +00:00
dmiller
891c3be3b9
remove tcpip.h from other headers' includes
2017-04-19 13:53:57 +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
tudor
0a7a7e395b
Scan iterator fix for compilation under Visual Studio 2010
2016-10-18 15:56:40 +00:00
tudor
9c8a435bbf
Fixed scanning the same IP multiple times with a type of scan that is now raw, incompleteHosts and completedHosts are now multisets instead of sets
2016-10-15 22:26:43 +00:00
dmiller
923f1de3e4
Increase const-ness of HssPredicate::operator() to avoid warnings.
2016-08-19 12:38:29 +00:00
tudor
074f99b291
UltraScanInfo::findHost is now faster
2016-08-10 15:39:19 +00:00
tudor
7c0280382e
incompleteHosts and completedHosts are now sets, matching a packet to a target is done faster
2016-08-09 06:07:22 +00:00
dmiller
6e33d6ac3c
Bump date in copyright headers
2016-04-04 15:38:44 +00:00
dmiller
e9bdcd811a
Strip tcpip.h of some unnecessary includes
2015-06-30 18:34:28 +00:00
dmiller
618cd6cfb2
Move some structs from global_structures.h to timing.h
2015-06-23 15:52:52 +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
d33tah
b9fb766a4f
Move a lot of raw/connect scanning routines.
2014-09-03 14:27:11 +00:00
d33tah
b6b92f6564
Move most (if not all) data structure declarations from scan_engine.cc
...
to scan_engine.h. Some method definitions remain in the header files and
should be moved to .cc later.
2014-09-03 14:27:04 +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
ddcfa8cc90
Spellcheck: common misspellings in the entire source tree
2014-02-21 21:10:51 +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
d33tah
4816358475
Replace all tab characters at the beginnings of lines with 8 spaces.
...
Mixed indentation annoyed my vim.
2014-01-05 19:14:26 +00:00
dmiller
26665465c6
Refactor ftp bounce scan into nmap_ftp.{h,cc}
...
By factoring this code out, we make it easier to convert to NSE.
http://seclists.org/nmap-dev/2013/q4/255
2013-12-11 02:23:58 +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
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
kroosec
9247295bfb
Removing pos_scan from scan engine as it is not used anymore.
2012-08-17 18:33:07 +00:00