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

8796 Commits

Author SHA1 Message Date
dmiller
c70a7be88f Remove stupid hacks that are unneeded because of select() magic 2014-01-03 23:02:02 +00:00
dmiller
739fee324b Fix some requires in unittest.lua 2014-01-03 21:16:38 +00:00
dmiller
d95cbeb2b9 Add some unit tests to ipOps. Far from complete coverage! 2014-01-03 21:10:03 +00:00
dmiller
dc617c42f3 New unittest library and driver script for NSE testing
Please read the documentation. This is a way to add unit testing to NSE
libraries (not scripts, yet). Please add tests to your libraries!
Examples to come in further commits.
2014-01-03 21:10:01 +00:00
dmiller
54cea8be4f Let nsedebug.tostr support other datatypes with tostring
Instead of erroring, just use tostring to handle functions, userdata,
etc. This works for booleans and numbers, too, so no need for special
handling there.

Also switched from a string-concatenation model to a table-building one,
with a final concatenation. This could prevent catastrophic slowness
with representing large tables due to continuous reallocation of
strings.
2014-01-03 21:09:59 +00:00
dmiller
395a91b026 Fix @output nsedoc for targets-asn 2014-01-03 21:09:57 +00:00
d33tah
7d5879d4d1 Fix an assertion that always evaluated to true. Reported by David
Binderman here: http://seclists.org/nmap-dev/2014/q1/6
2014-01-02 17:18:32 +00:00
dmiller
4842def2f6 Update bundled liblua from 5.2.2 to 5.2.3 2014-01-02 15:33:55 +00:00
d33tah
36fc84ab31 Fix coding style - only run begin_sniffer in case of a raw scan. 2013-12-30 18:56:43 +00:00
henri
0ba3dc0be7 Include stddef only if required 2013-12-30 14:35:50 +00:00
d33tah
c7927c5449 Add missing stddef.h import. 2013-12-30 13:58:46 +00:00
fyodor
8418f18274 Minor updates to comments. For example, wanted to clarify that the Nikto http-enum integration was done with cooperation/encouragement from Nikto folks 2013-12-27 03:45:53 +00:00
fyodor
5d0eb7aaec Add some ports/descriptions sent in by James Cole 2013-12-26 00:36:45 +00:00
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