1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-28 09:09:02 +00:00
Commit Graph

8927 Commits

Author SHA1 Message Date
david
d98bbcc8ab Add an ncat_assert macro.
This is an assert that will remain even if NDEBUG is defined.
2012-12-22 06:02:25 +00:00
henri
a90bafc9f4 Fixed indentation & style.
indent -nut -i2 -kr -br -brs -brf -l0 -bad -npcs -nprs -ncs nbase_str.c
+ manual adjustements.
2012-12-20 18:15:59 +00:00
henri
f2757be055 Proper error reporting during socket creation and initialization. 2012-12-20 18:10:54 +00:00
david
93b978fba8 Merge 30432:30436 from /nmap-exp/david/ipv6-ranges.
This is simple IPv6 unicast ranges. For example,
nmap -6 en.wikipedia.org/120 -sn

The other, more complicated part of this overall change is automatic
multicast scanning of large local subnets. That part isn't done yet.
2012-12-19 01:10:39 +00:00
david
f5de2d9419 Restore UTF-8 in author field of murmur-version.
There's a bug in NSEDoc that we should fix that causes
	Marin Maržić
to appear as
	Marin Maržić
in HTML output. It is wrongly assuming a one-byte encoding.

http://seclists.org/nmap-dev/2012/q4/477
2012-12-18 04:36:09 +00:00
patrik
0587b3e0c4 nse_check_globals cleanup 2012-12-18 02:46:01 +00:00
dmiller
b3b3fa70e8 Fix broadcast-dropbox-listener not giving output
The check for output using maxn was changed to use the # operator in
r23147, but the table was not an "array"-style table. Changed it to test
for next(ids) instead, which works.
2012-12-17 23:34:35 +00:00
david
3afb4c9992 Remove TargetGroup::skip_range.
This was left over from when TargetGroup was used for exclude.
2012-12-17 23:18:58 +00:00
david
55e210d589 Formatting in TargetGroup.{cc,h}.
astyle -a -p -H -s2 -m2 TargetGroup.cc TargetGroup.h
2012-12-17 22:41:13 +00:00
david
bfead6f4b7 hostexp[i] is a nicer way to write *(hostexp + i). 2012-12-17 22:39:23 +00:00
aca
d8dc00e0ed Merged mysql-enum from my dev branch 2012-12-17 15:59:35 +00:00
patrik
16d50c48da Squashed commit of the following:
commit fb1fa9373592e81ee004b99cf813e07bf253fbe1
Author: Patrik Karlsson <patrik@cqure.net>
Date:   Sun Dec 16 11:49:36 2012 -0500

    Fix bug where brute library failed to report error on invalid iterators
2012-12-16 16:51:47 +00:00
batrick
5edca6f97b Undo previous commits as http-slowloris-check.nse doesn't do a DOS attack like http-slowloris.nse.
See http://seclists.org/nmap-dev/2012/q4/465
2012-12-16 01:58:59 +00:00
batrick
e8caacae85 Read large chunks instead of lines. 2012-12-16 00:24:37 +00:00
batrick
02369ec7d9 update script.db for r30412 2012-12-16 00:23:22 +00:00
batrick
8b8e4e307e This script never ends and seeks to crash the web server... why was this categorized as safe?? 2012-12-16 00:18:13 +00:00
batrick
76239f73b9 Escape backslashes which may appear in Windows filenames. 2012-12-16 00:02:08 +00:00
henri
b0fe74e355 More log message cleanup. Use __func__ when referring to the current function's name. 2012-12-15 18:21:09 +00:00
henri
3206c48aab Normalized log messages. No idea why I initially put underscores instead of spaces there. 2012-12-15 18:16:59 +00:00
henri
809f1eda68 Merged nsock-logging from nmap-exp/henri/nsock-logging/
Reworked the logging infrastructure to make it more flexible
and consistent.

Updated nmap, nping and ncat accordingly.  Nsock log level can
now be adjusted at runtime by pressing d/D in nmap.
2012-12-15 10:59:30 +00:00
david
26816736b5 Revert part of r29016.
nsock_check_udata needs this parameter indicating whether to set up an
unconnected UDP socket or not. r29016 wrongly made this setup
unconditional and moved the check for connectedness into the calling
function. What went wrong is that the unconnected UDP socket could be
set up prematurely--before calling bind, for example. This broke scripts
using unconnected UDP sockets.

This was reported by Dhiru Kholia.
http://seclists.org/nmap-dev/2012/q4/422
2012-12-15 07:55:31 +00:00
david
43f28b8f4a Add structured output to http-get.nse.
This patch is by Alex Weber.
http://seclists.org/nmap-dev/2012/q4/434
2012-12-13 04:16:01 +00:00
david
a8ed9f57f8 Add UDP payload for Murmur server.
http://seclists.org/nmap-dev/2012/q4/438
2012-12-12 23:39:46 +00:00
fyodor
21f2f2e10d Add David's exlcude list binary decision diagram idea to the todo 2012-12-12 07:20:05 +00:00
fyodor
8ee702f190 Add some npings issues to todo file 2012-12-11 20:16:08 +00:00
david
9083da3e53 Add link to Mumble protocol documentation. 2012-12-11 05:34:03 +00:00
david
59478987fa Change the output of murmur-version a bit. 2012-12-11 05:34:02 +00:00
david
eef7155ee1 Add murmur-version script from Marin Maržić.
http://seclists.org/nmap-dev/2012/q4/408
2012-12-11 05:34:01 +00:00
david
70ac55c67b Comment typo. 2012-12-11 03:03:18 +00:00
david
e4c94bf4ff Fix an About dialog–related crash.
When the dialog is closed by the user clicking the X, rather than a
button in the dialog, the dialog doesn't exist anymore, so we can't
simply hide and later re-present it.
2012-12-11 03:03:17 +00:00
fyodor
87c2b0438a latest todo updates 2012-12-11 00:20:53 +00:00
fyodor
7f6826f649 Remove the NSE sample script. It is a great idea, but nobody seems to use it (for example, there were no replies to usage inquiry here: http://seclists.org/nmap-dev/2012/q4/379). I think there are two main uses for this script, both of which are being served by other resources. 1) as a template for new scripts. Users instead seem to pick a script that is most similar to the one they want to write and start with that. 2) As a way to learn more about the format of an NSE script. Users instead seem to use our documentation (http://nmap.org/book/nse-script-format.html). So I'm deleting it for now. But if folks miss it, they're welcome and encouraged to say so on dev@nmap.org and we could consider putting it back and/or improving it 2012-12-11 00:11:08 +00:00
fyodor
d0e36ec8e7 Regen international man pages 2012-12-10 01:52:39 +00:00
fyodor
90fd8e0893 Update my email address in man page translations 2012-12-10 01:35:10 +00:00
fyodor
d81c7040f0 Update my email address in the places which had the old one 2012-12-10 01:34:21 +00:00
fyodor
a90d961f51 auto-generated files (nroff versions of man pages) 2012-12-10 01:17:51 +00:00
fyodor
d5ae047309 Update my email address in Nping man page too 2012-12-10 01:16:03 +00:00
fyodor
8f585c7882 Update my email address: fyodor@insecure.org => fyodor@nmap.org 2012-12-10 01:14:42 +00:00
david
e7a4a8a364 Set sa.sndd_8022_ethertype to 0 in eth-ndd.c.
This file is used for Ethernet handles on AIX. We had a report from
Peter O'Gorman that setting this member to 0 rather than ETH_TYPE_IP was
necessary to avoid an EEXIST error on bind.

http://seclists.org/nmap-dev/2011/q4/349
http://seclists.org/nmap-dev/2011/q4/353
http://seclists.org/nmap-dev/2011/q4/att-353/aix.patch
https://code.google.com/p/libdnet/issues/detail?id=23

However Ben Lentz more recently tried the patch and said that he still
got an EEXIST on bind.

http://seclists.org/nmap-dev/2012/q4/327
http://seclists.org/nmap-dev/2012/q4/395

So who knows what the right thing to do here is. The messages from IBM
seem to say that setting ETH_TYPE_IP is definitely wrong though.
2012-12-08 11:04:23 +00:00
david
8f3165f7a6 Don't substitute nonprinting characters in http-git.
NSE already escapes output everywhere. More importantly, the call to
gsub returns two values, which were being treated as structured output
and unstructured output. The second return value is an integer count of
substitutions, so what you would see in normal output was
|_http-git: 0
while what used to be normal output was going to XML.

Alex Weber noticed that the script was not working.
http://seclists.org/nmap-dev/2012/q4/397
2012-12-08 10:22:55 +00:00
david
e78540e9a5 Fix regex in http-git.
Patch by Alex Weber.
http://seclists.org/nmap-dev/2012/q4/397
2012-12-08 10:22:54 +00:00
fyodor
6ef49f4959 Add a missing </see> element 2012-12-08 04:11:25 +00:00
dmiller
f5d999efaf Change su-to-zenmap.sh from bash to sh script 2012-12-06 18:54:36 +00:00
dmiller
9e6d7b2384 Change test-addrset.sh to be POSIX sh compliant 2012-12-06 18:46:29 +00:00
david
7ebbac2746 Update some mailing list references. 2012-12-06 02:34:28 +00:00
david
ab802a6f21 Update some more headers. 2012-12-06 02:25:46 +00:00
david
ec53dc049a Update with new mailing list addresses. 2012-12-06 02:23:34 +00:00
fyodor
6a42ef47c0 Update the Nmap and Nsock source code headers to note new Nmap dev mailing list email address and a better URL for Nmap license. 2012-12-06 01:21:42 +00:00
david
3dcda9d536 Update Mailman URLs.
http://seclists.org/nmap-dev/2012/q4/389

git ls-files | xargs perl -p -i maillist.pl

maillist.pl:
%MAP = ("nmap-dev" => "dev", "nmap-hackers" => "announce", "nmap-svn" => "svn");
s%http://.*/(mailman/.*)/(nmap-dev|nmap-hackers|nmap-svn)%http://nmap.org/$1/$MAP{$2}%g;
2012-12-05 23:55:29 +00:00
fyodor
14e35a2d67 Just moved a task slightly in the todo file 2012-12-05 20:04:19 +00:00