Commit Graph

184 Commits

Author SHA1 Message Date
dmiller 2450dee71e Extend libnetutil's isipprivate function to check for 169.254/16 2015-12-19 20:44:55 +00:00
dmiller 47ac4e421e Clean up some windows build errors due to misapplication of a patch 2015-11-12 19:38:47 +00:00
dmiller 37d517b32e Use XP compatibility SDK, because users are complaining 2015-11-10 16:47:35 +00:00
dmiller f4619edece Update http urls for nmap.org to https 2015-11-05 20:41:05 +00:00
dmiller e73053c457 Fix FreeBSD version check for raw socket byte order. Fixes #217. See #196, #50 2015-10-28 03:21:15 +00:00
dmiller 3d9e348832 Use a mutex on Windows to avoid a hang when accessing WinPCAP driver
Reported by multiple users on Windows 8.1 and Windows Server 2012 R2.
Seems to hang when the WinPCAP driver is accessed via OpenServiceA by
multiple processes at once. Users report that this change, which uses a
mutex to avoid concurrent access, fixes the hang.
2015-09-20 19:06:11 +00:00
dmiller 9ab82ecedf Fix raw packet sending on FreeBSD 10.0 and later.
See https://svnweb.freebsd.org/base?view=revision&revision=241913 for
the change. Closes #196. Fixes #50.
2015-08-06 21:10:36 +00:00
dmiller 2e602435f5 Move osscan-related structs to osscan.h from global_structures.h 2015-06-23 15:53:02 +00:00
dmiller 68409b2226 Update copyright date to 2015 2015-06-03 13:01:29 +00:00
dmiller 5d6fe15fec Cache dnet names not found in addition to found names. http://seclists.org/nmap-dev/2015/q1/251 2015-06-01 03:51:31 +00:00
dmiller 0952bed032 Merge final changes to support VS2013 build
Changes:

* Fix a collision of the name PS_NONE with a different constant in shlobj.h
* Update solution and project files for VS2013
* Update the NSIS installer to reference the VC 2013 redistributable
2015-01-17 04:35:01 +00:00
dmiller fc99bed706 Don't use unnecessary parens with __declspec
Reported by nnposter, this broke on VS2010. Pretty sure this was just a
simple mistake in the first place. Fixes #33
2015-01-01 13:39:47 +00:00
dmiller 85bb2d388d Define a NORETURN macro 2014-11-17 13:25:32 +00:00
dmiller a067bc25bc Let MSVC know about noreturn attribute to help with code analysis 2014-11-12 13:29:40 +00:00
dmiller 98b1467a48 Avoid null pointer deref when getting IPv4 header options 2014-11-12 13:29:37 +00:00
dmiller 111fbe4b41 Modify some offensive terminology in comments. 2014-11-05 15:02:09 +00:00
dmiller c7e5ad67b5 Do optimization of pcap filters via set_pcap_filter
Optimizing reduces BPF instructions from 45 to 10 for large-scan case.

Also use PCAP_NETMASK_UNKNOWN instead of 0 since we don't provide a
netmask.
2014-10-29 05:31:08 +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
claude 319b6b560e Fixed a small error in the comments, probably a copy/paste error. 2014-06-05 19:51:50 +00:00
d33tah bf291fdc34 chmod -x some of the files which probably shouldn't be executable. To see what's left there, call "find -executable -type f" - svn propdel 'svn:executable' file will make it non-executable. 2014-03-01 13:46:19 +00:00
dmiller ddcfa8cc90 Spellcheck: common misspellings in the entire source tree 2014-02-21 21:10:51 +00:00
dmiller 795ca1b64f Fix assert fail on FreeBSD in libdnet 2013-11-07 19:32:33 +00:00
dmiller 77f1429a56 Fix UDP checksum generation (0 -> 0xffff)
See changelog and http://seclists.org/nmap-dev/2013/q4/122
2013-11-06 02:46:20 +00:00
david 5df0e13ee2 Use 32-bit values, not 16, for IP ID values.
IP ID fields are overloaded to include the flow label of IPv6 packets.
In particular, abstract_ip_hdr is no longer limited to 16 bits.
2013-10-27 06:33:45 +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
david 1f372aa911 Make format string specifiers better match types.
Suggested by Gisle Vanem.
http://seclists.org/nmap-dev/2013/q3/269
2013-08-15 08:07:26 +00:00
david 4961ebf047 8-byte display for SCTP checksum. 2013-08-15 08:07:24 +00:00
david ed237e8e19 Use %lu instead of %ul.
Discovered by Gisle Vanem.
http://seclists.org/nmap-dev/2013/q3/269
2013-08-15 08:07:21 +00:00
david 784b1ef4e8 Swap SCTP vtag and csum in HIGH_DETAIL output.
Discovered by Gisle Vanem.
http://seclists.org/nmap-dev/2013/q3/269
2013-08-15 08:07:14 +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 9ac1bffad2 Ignore down interfaces at route_dst time, not when building routing table.
The previous code to ignore down interfaces didn't account for implicit
routes that come from interface addresses and netmasks. You can force
the use of a route using a down interface with -e.
2013-07-01 02:06:09 +00:00
david b415564df9 Sort routes first by netmask, then by metric.
Metric is used to break ties between routes with the same size netmask.
2013-06-30 17:38:15 +00:00
henri 4f36ba9798 Stop parsing TCP options after reaching EOL in libnetutil. Bug reported
by Gustavo Moreira.
2013-06-17 18:19:24 +00:00
david 9ea60a9f1f Consider IPPROTO_NONE (59) an upper-layer protocol for IPv6.
"Upper-layer" here simply means that there are no extension headers
following, which is the case here.
2013-06-06 14:50:09 +00:00
david ce98c0ad1e Don't consider NOARP devices as Ethernet devices.
NStorm reported a failure of ARP ping scan on OpenVZ venet devices,
which don't have a MAC address and can't do ARP. We don't keep interface
flags such as NOARP at the target level, so check whether the interfaces
returned by libdnet are both INTF_TYPE_ETH and don't have
INTF_FLAG_NOARP set; otherwise call them "other" interfaces.

http://seclists.org/nmap-dev/2013/q1/349
http://openvz.org/Virtual_network_device
2013-05-13 05:38:33 +00:00
david 436d222fff Fix bug: unset bits properly 2013-05-03 05:59:54 +00:00
luis 49e06da86f Merge r30175-176 from nmap-npingchanges: Add support for Node Information queries in print(). Also, add the ability to pass u64 to setNonce() 2013-03-29 18:19:09 +00:00
luis d8017b1a95 Merge r30080 from nmap-npingchanges: 2013-03-29 18:05:57 +00:00
luis 67a211e298 Merge r30072 from nmap-npingchanges: Print ICMPv6 destination unreachable, time exceeded and parameter problem 2013-03-29 18:02:36 +00:00
luis 7a221508bf Merge r30071 from nmap-npingchanges: Add the const specified to all relevant methods 2013-03-29 18:01:08 +00:00
luis 347badd7f3 Merge r28016 from nmap-npingchanges: Add method to set IP options from a binary buffer than can be inserted right away into the IP header. 2013-03-29 16:48:53 +00:00
luis 8a023e0c06 Merge r27958 from nmap-npingchanges: Simplify print() in RawData:: 2013-03-29 16:34:53 +00:00
luis 30d25e7e1e Merge r27956 from nmap-npingchanges: Improve code description. 2013-03-29 16:32:44 +00:00
luis 642c62e833 Merge r27995 from nmap-npingchanges: Add two missing codes. Also, re-write description so it says the same thing as Wireshark. 2013-03-29 16:30:32 +00:00
luis afc00e36f2 Merge r27953 from nmap-npingchanges: Add support for ARP Request/Reply packet matching 2013-03-29 16:27:01 +00:00
luis d5fe922084 Merged r27646 from nmap-npingchages: Add function to determine the tranport layer protocol in a chain of PacketElements 2013-03-29 13:46:14 +00:00