1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-08 07:29:03 +00:00
Commit Graph

8738 Commits

Author SHA1 Message Date
dmiller
866db7eea3 Revert r32528, was not tested on Windows 2013-11-27 13:32:05 +00:00
david
8ab92b3214 Tabs to spaces in ssl-enum-ciphers. 2013-11-27 04:59:48 +00:00
dmiller
0f5e87c8be Add DOCTYPE declaration to Nmap XML 2013-11-26 21:06:02 +00:00
dmiller
fc00179731 New match line for Perl Dancer development HTTP server 2013-11-26 21:01:29 +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
jah
d0a95fe03e determineScanGroupSize could cause a higher number of randomly generated hosts
to be scanned than was requested with -iR N (for 0 < N < 16) because it didn't
account for max_ips_to_scan.
2013-11-26 00:11:09 +00:00
dmiller
c47c0e2567 Remove unused member OSScan::ip_ver 2013-11-25 22:09:40 +00:00
dmiller
1ef698cb7e Adjust ipaddr length by 1 byte (null already accounted for) 2013-11-25 21:11:49 +00:00
dmiller
acbf533dcb Fix buffer overflow in parse_resolvconf()
String ipaddr was allocated without allowing space for the null
terminator, resulting in a 1-byte overflow. Caught with clang
-fsanitize=address

Also, fmt was being initialized with sizeof(ipaddr), which happened to
be correct, but should not necessarily be so. We don't care about the
size of the structure, but rather the length of an address in string
notation.
2013-11-25 18:35:49 +00:00
dmiller
ff7a0ea10d Avoid runtime undefinedness due to integer overflow
Using TIMEVAL_MSEC_SUBTRACT can lead to integer overflow when the times
are far apart (such as epoch (0) or uninitialized timeval and "now").
Instead, calculate the "deadline" and use TIMEVAL_AFTER to test.
2013-11-25 18:35:48 +00:00
patrik
9e075b8140 change incorrect parameter http-put.file to http-url.file based on bug report 2013-11-23 22:26:33 +00:00
dmiller
c1c659568e Fix divide-by-zero in scan_engine.cc 2013-11-21 23:30:03 +00:00
fyodor
611dbcb2d3 Update nmap-mac-prefixes with latest IEEE data 2013-11-21 19:51:21 +00:00
fyodor
e6a0762764 o [NSE] Add freelancer-info to gather information about the Freelancer
game server. Also added a related version detection probe and UDP
  protocol payload for detecting the service. [Marin Maržić]
2013-11-20 04:31:31 +00:00
fyodor
e1932c2916 Regenerate script.db 2013-11-20 04:04:59 +00:00
dmiller
83e0ee1e70 Add ChaCha20-Poly1305 TLS cipher suites to ssl-ciphers 2013-11-14 20:41:09 +00:00
patrik
4152af8eb1 Fix nil value reference 2013-11-14 02:50:47 +00:00
dmiller
58d44f8437 Add .skip script-arg for http-server-header
Because http-server-header grabs the server header and sets the service
version hardmatched, Nmap won't print a service fingerprint. This means
people might not submit as many fingerprints in the future, but we would
rather they did (speeds up scans by short-circuiting version probes).

Now http-server-header will print a messages suggesting the use of
--script-args http-server-header.skip for the purposes of submitting a
fingerprint. If this script-arg is set, the script will not run,
preserving Nmap's previous behavior.
2013-11-12 18:35:17 +00:00
david
f0bef0aa16 Target Mac OS X 10.6 in the Mac bundles. 2013-11-12 04:59:07 +00:00
david
58e5885f17 Remove libxml2.2.dylib from the OS X application bundle.
This file is automatically copied into the bundle by py2app. It is
already present as a system library on OS X 10.6 and later. Shipping our
own caused a compatibility problem on OS X 10.9:

Could not import the zenmapGUI.App module: 'dlopen(/Applications/Zenmap.app/Contents/Resources/lib/python2.6/lib-dynload/glib/_glib.so, 2): Symbol not found: _xmlBufContent\n  Referenced from: /usr/lib/libxslt.1.dylib\n  Expected in: /Applications/Zenmap.app/Contents/Frameworks/libxml2.2.dylib\n in /usr/lib/libxslt.1.dylib'.

http://seclists.org/nmap-dev/2013/q4/85
2013-11-12 04:04:45 +00:00
david
e89ea0180e Ignore *.o in nmap-update. 2013-11-12 03:30:55 +00:00
fyodor
65309b5c20 Fixed compilation when --without-liblua is specified 2013-11-10 02:04:17 +00:00
dmiller
fbf03995e0 Allow http-server-header to set http service even without Server header 2013-11-08 21:33:57 +00:00
dmiller
3e54536dab Add http-server-header as a last-ditch means to get httpd version
See http://seclists.org/nmap-dev/2013/q3/599 for justification.
2013-11-08 21:19:36 +00:00
dmiller
847354e266 Add CHANGELOG entries for a couple new scripts 2013-11-08 19:12:02 +00:00
dmiller
a02dd889d7 Add xmloutput for ssh2-enum-algos 2013-11-08 17:46:07 +00:00
dmiller
795ca1b64f Fix assert fail on FreeBSD in libdnet 2013-11-07 19:32:33 +00:00
henri
ba239a8610 Get rid of a level of indentation 2013-11-06 18:52:06 +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
jah
bce4bcf7f9 Add missing local reference to print() to stdnse; print() is used when
stdnse.pretty_print is called without supplying it with a printer.
2013-11-05 21:56:36 +00:00
jah
25be882377 Make a CHANGELOG entry less vague. 2013-11-03 23:31:48 +00:00
jah
b1cd867212 Remove a fixed value (28428) which was being set for the Request ID in
snmpWalk; a value based on nmap.clock_ms will now be set instead.
2013-11-03 23:27:38 +00:00
jah
eaf171e7bd Add missing argument 'HEAD' to the example pipeline_add call in the library
documentation.  Change to uppercase method names in the documentation for
pipeline_add.
2013-11-03 22:56:04 +00:00
jah
78dc01d0e0 Remove some trailing whitespace. 2013-11-03 22:47:28 +00:00
jah
1237013fb0 Make a few minor whitespace changes. 2013-11-03 22:22:23 +00:00
dmiller
86c8703486 Let dns-brute read candidate SRV records from dns-srv-names instead of hard-coded list 2013-11-01 22:10:37 +00:00
dmiller
4332ade1d6 New data file: dns-srv-names, common DNS SRV records 2013-11-01 22:10:35 +00:00
dmiller
40e9fe4746 Refactor dns-brute for readability 2013-11-01 21:48:54 +00:00
dmiller
85a86ecf8e Let dns-brute read candidates from vhosts-default.lst instead of hard-coded list 2013-11-01 21:48:53 +00:00
dmiller
bb77ad2abc Added hostnames from dns-brute to vhosts-default.lst 2013-11-01 21:48:51 +00:00
dmiller
9f1d2c472d Replace print() calls with stdnse.print_debug()
NSE scripts should not send data to stdout with print(). One exception
was not altered: url-snarf states in its documentation that urls are
sent to stdout by default, with a script-arg option to save to a file
instead.
2013-11-01 17:01:18 +00:00
dmiller
84c944fb71 Add xmloutput for dns-brute 2013-11-01 17:01:16 +00:00
dmiller
920f07d843 Normalize author fields, changing "and" to comma-sep 2013-11-01 15:56:37 +00:00
paulino
127679d055 Fixes false positive. 2013-10-31 17:37:22 +00:00
sophron
f57b58d095 [NSE] Updated Robtex scripts to make them work again. Primarily, changed the addresses to https and corrected some wrong patterns. 2013-10-31 17:15:52 +00:00
dmiller
901e414927 Author field should be a string, not table 2013-10-31 14:46:45 +00:00
paulino
6a655cdc10 Adds http-iis-short-name-brute.nse. The script detects Microsoft IIS servers vulnerable to a filename disclosure and denial of service vulnerability. 2013-10-31 04:06:00 +00:00
paulino
3340ac27ef Adds http-iis-short-name-brute.nse. The script detects Microsoft IIS servers vulnerable to a filename disclosure and denial of service vulnerability. 2013-10-31 04:04:45 +00:00
dmiller
af8874d66f New script weblogic-t3-info
http://seclists.org/nmap-dev/2013/q4/74
2013-10-30 15:10:00 +00:00
dmiller
7e820465a5 One more minor os-db fix 2013-10-30 14:59:56 +00:00