dmiller
ef8213a36c
Reintegrate Nmap 7.90 release branch
2020-10-05 23:00:30 +00:00
dmiller
697a22fd63
Move some flag defines from services.h to scan_lists.h where they make more sense.
2019-12-30 04:48:50 +00:00
dmiller
f6ab7a898a
Clear up a name that conflicts with global 'ports' struct
2019-11-22 17:51:53 +00:00
dmiller
d639a53088
Bump copyright date in license headers
2019-05-28 21:36:04 +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
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
vincent
32efc8b28c
Use FQDN_LEN instead of MAXHOSTNAMELEN for DNS name buffers
...
This closes #140 (issue #140 ), namely "Use correct lengths
for FQDN, not MAXHOSTNAMELEN"
2016-07-26 14:06:22 +00:00
dmiller
67fd101b01
Enable Nmap, Nping to use Npcap over Winpcap if available.
2016-06-14 14:16:46 +00:00
dmiller
6e33d6ac3c
Bump date in copyright headers
2016-04-04 15:38:44 +00:00
dmiller
0f371d701a
Consolidate TCP options for SYN into nmap.h
2015-07-14 03:08:17 +00:00
dmiller
5e47450bdc
Use forward-declaration of class FingerPrintResults in Target.h
2015-06-30 04:04:51 +00:00
dmiller
84d0e45641
Remove some unneeded includes of utils.h
2015-06-23 15:52:55 +00:00
dmiller
68409b2226
Update copyright date to 2015
2015-06-03 13:01:29 +00:00
dmiller
814bf97a8f
Correctly null-terminate some strings in idle_scan
...
Reported by Gisle Vanem: http://seclists.org/nmap-dev/2014/q4/82
2014-10-22 12:56:32 +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
9fe9545d49
Some more whitespace fixes.
2014-06-26 15:14:04 +00:00
d33tah
a80c90608c
sed -i 's/if ( /if (/g' *.cc *.h; sed -i 's/for ( /for (/g' *.cc *.h; sed -i 's/( /(/g' nmap_amigaos.h tcpip.h service_scan.cc
...
There's still quite a lot of code like this, nse_openssl.cc being most
messy IMHO. Also, I left out "if( something )" syntax.
2014-06-25 15:40:54 +00:00
d33tah
421176fc00
Get rid of double newline at the EOF I accidentally introduced in the
...
last commit.
2014-06-18 11:30:02 +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
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
45179297f5
Use u32 instead of int for all ipids
...
IP ID is an unsigned value. Explicit wrapping checks were needed to
support using a signed int, and a few users were reporting compile
errors because of a large constant:
http://seclists.org/nmap-dev/2013/q4/247
2013-12-04 12:51:59 +00:00
david
b5ea4f8066
Add list of IPv6 fragment sequence generation algorithms.
...
http://seclists.org/nmap-dev/2013/q3/369
2013-10-27 06:33:56 +00:00
david
76c323671d
Kill Id change.
2013-10-27 06:33:53 +00:00
david
36bea16af7
IPv6 idle scan patch by Mathias Morbitzer.
...
http://seclists.org/nmap-dev/2013/q3/549
2013-10-27 06:33:49 +00:00
david
d5f61304c0
Use 32-bit IP IDs in idle scan code.
...
Part of Mathias Morbitzer's patch from
http://seclists.org/nmap-dev/2013/q3/135 .
2013-10-27 06:33:47 +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
david
af8c57a1b8
Don't use htons to unconditionally swap bytes.
...
htons is a no-op on big-endian architectures. This affected idle scan IP
ID computations.
http://seclists.org/nmap-dev/2013/q2/529
2013-06-30 02:22:13 +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
7b18ea1bc0
Move win32_fatal_raw_sockets out of nmap_raw_socket.
...
For the same reason and with the same exception (nse_dnet.cc) as in
r30159.
2012-10-31 17:00:55 +00:00
david
03946ba2f5
Return -1 instead of calling pfatal in nmap_raw_socket.
...
There was one case where we previously didn't fatal, in nse_dnet.cc.
Move the fatal calls out of nmap_raw_socket and into the calling scope,
with the exception of the one in nse_dnet.cc.
The problem was reported by Rob Nicholls.
http://seclists.org/nmap-dev/2012/q4/186
2012-10-31 16:09:47 +00:00
david
a53e00afa1
Factor out an nmap_raw_socket function.
...
This does the common setup of a raw socket that we use everywhere.
2012-10-03 15:43:21 +00:00
david
40eb708922
Show gai_strerror in some error messages.
2012-09-15 17:56:14 +00:00
david
113e0b975f
Break out resolve and resolve_numeric.
...
Besides the confusingness of the nodns argument being negatively
phrased, it had the value 0 in every existing call. Split out the nodns
special case into a separate function resolve_numeric.
This also has the side effect of changing the number of parameters to
the resolve function, which will cause a compile error for any calls I
might have missed changing when I changed the return code meaning in the
previous commit.
Ncat has its own copy of resolve, which obeys the global o.nodns rather
than a parameter. I'm leaving that alone for now. But give it the same
resolve_internal function, and make resolve call it with different flags
depending on the value of o.nodns.
2012-09-15 17:56:11 +00:00
david
0e738370ee
Make resolve return a getaddrinfo error code.
...
The only error we can have apart from a getaddrinfo error is a list of
zero addresses; return EAI_NONAME in that case.
This unfortunately inverts the truth value of the return code of
resolve; 0 now means success.
2012-09-15 17:56:08 +00:00
david
c601f71fc5
More style in idle_scan.cc.
2012-08-28 08:20:31 +00:00
david
d32d538a33
Remove some dead commented code.
2012-08-28 07:50:30 +00:00
david
7baef46e3c
Style in idle_scan.{cc,h}.
...
astyle -a -p -H -s2 -m2 idle_scan.cc idle_scan.h
with manual fixup.
2012-08-28 07:50:09 +00:00
david
fd9260276c
Don't set max parallelism when only --min-paralellism is given.
...
Setting --min-parallelism without also setting --max-parallelism would
force the max parallelism to the same value. So, for example,
--min-parallelism=1 would also limit the max parallelism to 1. This
patch, based on one by Chris Woodbury, allows the max parallelism to
rise above this minimum, up to the maximum defined by each scan phase.
2012-04-07 08:07:38 +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