1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-29 02:49:01 +00:00
Commit Graph

8783 Commits

Author SHA1 Message Date
dmiller
b5d9c1107f checklibs.sh: newest didn't work when newest version was first in list 2013-12-24 19:23:33 +00:00
dmiller
08a12f3921 Added a script to check for newer versions of included libs
Just run "sh checklibs.sh". Currently checks liblua, libpcre, libpcap,
and prints the latest version of liblinear (no version info is in the
copy we have). Requires perl, curl, and a C compiler (cc).
2013-12-24 16:57:36 +00:00
david
ee701dc116 Add a new Windows 8 fingerprint. 2013-12-24 00:12:08 +00:00
dmiller
338dcb115c [Ndiff] Fix DeprecationWarning under python -3
Classes that inherit __hash__ and comparison functions like __eq__ (e.g.
from object) but only override one of them will break under Python 3.
This is because a class shouldn't use one criterion for equality and a
different one for hashing. Explicitly discarding the inherited __hash__
method disables this warning and makes the class unhashable (not a
problem in this case).
2013-12-23 20:12:40 +00:00
dmiller
57135c89c1 A couple more todo items. Enough for now. 2013-12-23 17:54:26 +00:00
dmiller
038f56df22 Genericize OpenBSD fingerprint with bad # character
d33tah noticed that the # in "Fingerprint OpenBSD 5.0 GENERIC#43 i386"
was being interpreted as a comment, resulting in matches for "OpenBSD
5.0 GENERIC". Looking at this, it appears that no other OS fingerprints
put the build number in the Fingerprint line, and this fingerprint
closely matches another OpenBSD 5.0 fingerprint. Changed to drop
everything after GENERIC.
2013-12-23 16:49:11 +00:00
sophron
55e066c0e6 [NSE] Added a feature that integrates Nikto's large db to our http-fingerprint file on runtime. http://seclists.org/nmap-dev/2013/q4/292 2013-12-23 15:50:19 +00:00
dmiller
df4c69306b New todo file for me. 2013-12-23 13:31:19 +00:00
dmiller
dc0f5b592e Fix incorrect invocation of NmapParser in NetworkInventory.open_from_file 2013-12-20 22:13:28 +00:00
sophron
0645d18764 [NSE] Renamed and fixed the script that detects Zimbra LFI. Patch by Ron Bowes. 2013-12-19 20:45:49 +00:00
dmiller
771a6a0793 Fix more Lua patterns with '-', see r32566 2013-12-19 20:34:46 +00:00
dmiller
45cd8091a4 Fix Lua patterns that contain -
"-" in a Lua pattern means "ungreedy zero-or-more" and must be escaped
to match a literal "-". http://www.lua.org/manual/5.2/manual.html#6.4.1
2013-12-19 20:05:09 +00:00
sophron
c52c5476de [NSE] Added a script that detects Zimbra zero-day LFI. Script written by Paul Amar. 2013-12-18 22:42:15 +00:00
dmiller
228f0bec77 Fix ICMPv6 assertion failure: http://seclists.org/nmap-dev/2013/q4/290 2013-12-17 14:10:49 +00:00
fyodor
ebfe8e32dd Add a note about upgrading our included libpcap (a recent email from Daniel Miller reminded me that 1.5.2 is now available while we are still shipping 1.2.1) 2013-12-15 02:21:36 +00:00
fyodor
7b5ec8d43d o Added version detection signatures and probes for a bunch of Android
remote mouse/keyboard servers, including AndroMouse, AirHID,
  Wifi-mouse, and RemoteMouse. [Paul Hemberger]
2013-12-14 22:23:29 +00:00
dmiller
2506269bcc Let nsock's configure take the same --with-libpcap as Nmap does 2013-12-11 23:17:50 +00:00
dmiller
44e251306e Re-autoconf the configure scripts (using 2.69) 2013-12-11 23:17:47 +00:00
dmiller
a379a8ba2b Use CPPFLAGS for -I, not CFLAGS or CXXFLAGS
CPPFLAGS is for the C Pre-Processor, and should be used for -I flags. In
a couple cases (nping, nmap) this was resulting in duplicate -Ilibpcap
arguments.
2013-12-11 23:17:42 +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
sophron
f280a93538 [NSE] Added a detection method and the option to execute a payload. Patch by Paul Amar. 2013-12-09 15:54:43 +00:00
david
98bbff8b69 Remove unused local. 2013-12-05 23:41:21 +00:00
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