1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-21 15:09:02 +00:00
Commit Graph

9911 Commits

Author SHA1 Message Date
dmiller
0c47c7655b Add match for NSD dns server
Also reorder some lines to put a more generic match later.
http://seclists.org/nmap-dev/2013/q4/251
2013-12-05 17:19:27 +00:00
batrick
6dd45eda84 Update TODO. 2013-12-05 03:59:31 +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
dmiller
89db1ca27c Don't fail nsock/tests/run_tests if ncat can't be found 2013-12-03 23:03:10 +00:00
dmiller
46eb0fed75 Be more compatible with SysV sh
Although $((arithmetic expansion)) is POSIX-specified, some systems have
non-POSIX System V shell, which can't handle it. This patch replaces
$((something)) with $(expr something) to fix compatibility. This
actually slows things down considerably, since a subshell must be
launched for each increment operation, but the tests aren't that
critical. Bug report: http://seclists.org/nmap-dev/2013/q4/198
2013-12-03 19:11:12 +00:00
dmiller
e74d61829a Install .luadoc files along with .lua NSE libs 2013-12-03 18:16:28 +00:00
dmiller
6d79c7646b Remove duplicate check for -ldl in ncat/configure 2013-12-03 18:04:38 +00:00
david
aa15467a3f Fix the off-by-one in ssl-enum-ciphers that I reintroduced. 2013-12-03 17:12:15 +00:00
dmiller
cf1cd27255 rm zenmap/INSTALLED_FILES upon make distclean 2013-12-03 03:45:49 +00:00
fyodor
98d798dc4d Note an improvement we should make in SecWiki SSL certificate handling 2013-12-02 23:50:57 +00:00
david
126d424dec Simplify the chunk calculation. 2013-12-02 22:47:20 +00:00
david
6832c98454 Try only 64 ciphers at a time in ssl-enum-ciphers.
An off-by-one error meant that we tried 65 at a time. The number 64 came
up in a discussion of limitations of running against IIS.
http://seclists.org/nmap-dev/2012/q3/167
2013-12-02 22:47:09 +00:00
dmiller
5821c53627 Clean up completely from zenmap (setup.py includes zenmapCore) 2013-12-02 22:06:36 +00:00
dmiller
52eb566b15 Actually use ndiff's clean/distclean targets 2013-12-02 21:36:43 +00:00
dmiller
26b471c923 Also clean the tests dir when doing make clean (nsock) 2013-12-02 21:36:41 +00:00
dmiller
ed250a8ff0 Fix linking errors in nsock/tests 2013-12-02 21:23:24 +00:00
dmiller
80510e96d6 Properly remove nsock_config.h on make distclean 2013-12-02 21:15:25 +00:00
dmiller
655e2283f8 Use new[] and delete[] instead of safe_zalloc for C++ objects
Discussion: http://seclists.org/nmap-dev/2013/q4/221
2013-12-02 12:40:18 +00:00
fyodor
0dafd86d22 Add AllSeeingEye (a protocol for querying status of certain games) script and service probe 2013-12-01 22:09:16 +00:00
dmiller
e4ce527a38 Avoid null pointer dereference to implement container_of
Using offsetof instead of actually dereferencing a 0 pointer is still
standards compliant (works under gcc -ansi, clang -ansi), and is more in
line with how Linux kernel defines this macro (kernel.h). Can't exactly
lift the kernel implementation because it uses gnu-extension typeof.

Not really a necessary change, but it was causing clang's address
sanitizer to complain.
2013-11-30 01:32:58 +00:00
dmiller
a5ce7f6083 Cast literal to appropriate type
On 64-bit, the literal 1 is a 32-bit integer, and can't be shifted
by the appropriate amount (61 bits).
2013-11-29 01:42:42 +00:00
dmiller
39cdd05864 Use @param luadoc for stdnse.pretty_printer, not @args 2013-11-28 23:26:11 +00:00
jah
66efa2840a Update zenmap/setup.py WINDOWS_SETUP_ARGS with the recently changed (in r32435)
path to ndiff/scripts/ndiff.
2013-11-27 23:17:30 +00:00
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