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

4399 Commits

Author SHA1 Message Date
ron
80dec40366 Added some more DOS constants that Brandon ran across 2008-12-08 03:48:23 +00:00
ron
86de493a3e Changed smb-enum-shares to detect a host that returns the incorrect value for unknown shares (happened against what appears to be a EMC SANS). Also added a check to stdnse.strjoin() to ensure that the first parameter is either nil or a string, I got the parameters wrong and spent awhile trying to figure otu why. 2008-12-08 03:33:25 +00:00
ron
da4a8ef302 Fixed a bug where int8 arrays wouldn't align properly (I hadn't noticed it before because the only place it's used is in registry functions, and all following variables were either ignored or set to the proper value by luck 2008-12-07 19:10:17 +00:00
ron
ea42f39faa Merged in significant changes to Microsoft RPC calls 2008-12-07 16:16:11 +00:00
batrick
e6505d9954 Corrected nmap.print_debug_unformatted to print if the verbosity is greater
than or _equal_ to the specified verbosity.
See http://nmap.org/nsedoc/modules/stdnse.html#print_debug
2008-12-07 09:22:29 +00:00
batrick
c361d17734 Cleaned up some code for mutexes. 2008-12-07 01:25:14 +00:00
david
e70d1966d9 Add a translation of Zenmap into German by Chris Leick. Originally from Debian
bug #507867.
2008-12-06 19:08:56 +00:00
fyodor
659d1caaff latest build 2008-12-06 08:39:08 +00:00
fyodor
f0928c9db3 update to new shorter format of Amazon URLs 2008-12-06 08:38:58 +00:00
david
be28828544 Add a patch by Tom Sellers to use "html-title.nse" in the debug messages of the
script of that name, instead of the old name "showHTMLTitle."
2008-12-06 02:48:30 +00:00
david
e37bb72cd1 Remove the unused HOST_FIREWALLED and HOST_BROADCAST flags. The only flags used
are HOST_UNKNOWN, HOST_UP, and HOST_DOWN, and they're not "flags" as such
because they are mutually exclusive.
2008-12-04 17:20:07 +00:00
david
c561222685 Fix spelling in some identifiers. wierd_responses -> weird_responses,
printStatsIfNeccessary -> printStatsIfNecessary.
2008-12-04 17:04:48 +00:00
david
88143d667b Run probe send events through a HostScanStats::probeSent before passing them to
GroupScanStats::probeSent. This will allow updating timing variables for a
per-host rate limiter.

This fixes a bug, which was that decoy probes were not recorded by the scan
rate meter. Decoy scans would show a lower scan rate than the actual: with four
decoys the rate printed would be 1/5 of actual. This only affects printed
output, not the actual scan rate.
2008-12-04 00:12:25 +00:00
david
55482759d3 Move the code that handles --nogcc so it doesn't split up the code that handles
--min-rate and --max-rate. Doesn't affect functionality.
2008-12-03 22:16:19 +00:00
david
12a4288aa8 Don't increase the congestion window increment scaling factor until a probe is
replied to or times out. Previously the scaling factor was increased as soon a
s a probe was sent. So if you sent 10 probes right away at the beginning of the
scan, the first reply that came back would be scaled by 10 (= 10/1, and the
next by 9/2, etc.). Now if every probe is replied to then the scaling factor
will be exactly 1 throughout the scan.
2008-12-03 21:22:52 +00:00
david
85f6d12256 Standardize some terminology in scan_engine.cc: "quick start" -> "slow start,"
"congestion control" -> "congestion avoidance," "ccthresh" -> "ssthresh."
2008-12-03 18:55:49 +00:00
jah
9f3a5e5210 Fix the closure of a multiline comment which is not strictly legal
http://www.lua.org/pil/1.3.html, but only impacts syntax
highlighting and not script execution.
2008-12-02 18:30:05 +00:00
fyodor
263e62a3d4 comment out unused variable 2008-12-01 21:38:18 +00:00
batrick
b901089c19 Corrected documentation. 2008-12-01 04:12:13 +00:00
fyodor
b9c6596a78 oops, missed removal of 204.152.64.0/23 in last checkin 2008-11-30 20:48:32 +00:00
fyodor
e9db35af38 Remove *.255.255.255 block from ip_is_reserved(), allowing these addresses to be selected in Random scans. Also removed the 204.152.64.0/23 block, as the reason for having it may no longer apply. Plus these are very small blocks to worry about in the grand scheme of things. Jack Grahl suggested the *.255.255.255 removal 2008-11-30 20:45:48 +00:00
david
34db08b94b Add to CHANGELOG:
o Zenmap now runs ndiff to do its "Compare Results" function. This
  completely replaces the old diff view. ndiff is now required to do
  comparisons in Zenmap. [David]
2008-11-25 20:39:20 +00:00
david
4b02922b81 Use a more concise definition of render_port_list. 2008-11-25 18:31:03 +00:00
david
4ff30d9b99 Show a warning whenever raw socket sending is attempted on Windows--not just
when using --send-ip.
2008-11-24 17:52:25 +00:00
fyodor
e02f4bc983 add chapter tags 2008-11-24 10:54:34 +00:00
david
c4b60d8b72 Fix a typo in and add an assertion to ndiff. 2008-11-24 05:29:38 +00:00
david
efac5dd813 Add some missing words to a comment in ndifftest.py. 2008-11-21 17:40:36 +00:00
david
3caa760907 Fix a typo in ndiff.dtd. 2008-11-21 17:39:00 +00:00
kris
5be831f06f o Fixed a bug in the IP validation code which would have let a specially
crafted reply sent from a host on the same LAN slip through and cause
  Nmap to segfault.  Thanks to ithilgore of sock-raw.homeunix.org for
  the very detailed bug report. [Kris]
2008-11-21 16:17:11 +00:00
david
5a50254080 Make the Zenmap crash reporter more respectful of privacy. Allow editing of all
information in the report and make reports containing an email address private.
2008-11-21 03:30:08 +00:00
david
179a461fe9 Fix Zenmap internationalization. This involved renaming some files to be in the
"zenmap" translation domain rather than the "umit" one, and changing a little
bit of gettext code. The only translation available is pt_BR inherited from
Umit.
2008-11-21 00:51:38 +00:00
batrick
0f28f2818b Fixed host.os table to be a 1 based array rather than 0 based. 2008-11-20 20:30:43 +00:00
david
a52ba00a92 o [Zenmap] Zenmap now parses and records XSL stylesheet information
from Nmap XML files, so files saved by Zenmap will be viewable in a
  web browser just like those produced by Nmap.
2008-11-20 18:44:41 +00:00
david
c2deb92228 Remove dead code from nse_nmaplib.cc. 2008-11-20 17:29:36 +00:00
david
041e39f88a Fix a typo in nmap.luadoc. 2008-11-20 17:27:05 +00:00
david
47c268568d Use the math function floor instead of casting to an int to truncate OS scan
match percentages. Casting to an int rounds (0.98 * 100) to 97 on some
architectures.
2008-11-20 17:03:11 +00:00
david
b87ef8aabd Give a better error message "requires root privileges" when trying to run a raw
scan on Windows with --unprivileged. Previously Nmap assumed that the only way
o.isr00t could be false on Windows was if pcap functions were not available, so
the user would get the false message "requires that WinPcap version 3.1 or
higher...". NmapOps now has a state variable have_pcap so the meaning of isr00t
isn't overloaded.
2008-11-20 00:15:42 +00:00
david
a6b78f7bd4 Add to CHANGELOG:
o A possible Lua stack overflow in dns.lua was fixed. [David]
2008-11-20 00:09:39 +00:00
david
f8987ac849 Avoid a stack overflow in dns.lua. A "compressed" DNS message can have its
pointers arranged to form a loop. We put a limit on the number of pointers
we're willing to follow.
2008-11-19 19:59:51 +00:00
david
a7629c94db Fix a typo in bin.luadoc. 2008-11-19 17:46:27 +00:00
david
46210e8db0 Add to CHANGELOG:
o The NSE registry now persists across host groups. [David]
2008-11-19 02:29:59 +00:00
david
801c267f2b Add NSE debugging functions I used while working on the persistent NSE registry. 2008-11-19 02:11:52 +00:00
david
bb8be37ece Use a longer name (L_script_scan) for the persistent Lua state variable. 2008-11-19 01:51:25 +00:00
david
3dd89201dc Initialize one global Lua state for running script scans, and reuse it in calls
to script_scan. This makes the NSE registry persist though all host groups.
2008-11-19 01:44:09 +00:00
david
f14d86eccb Rearrange and comment the code that initializes the lists of host and port
rules.
2008-11-19 01:14:32 +00:00
ron
158423041a Fixed some minor bugs in smb.lua (functions returned the wrong value in some cases) 2008-11-19 00:27:35 +00:00
batrick
085eecbac7 Removed some old debug code no longer used/needed. Added a new stack dump
function that provides a clean output of the stack with positive
and negative stack indices.
2008-11-18 23:24:17 +00:00
david
20cf487b33 Replace the mix of spaces and tabs in the main NSE files with uniform two-space
indents, which seems to be the dominant style.
2008-11-18 21:11:27 +00:00
david
85deff9ede Use a more straightforward return style in script rules. Instead of
if cond then
		return true
	else
		return false
	end

just do

	return cond
2008-11-18 16:59:09 +00:00
david
f4b970f889 Update skypev2-version.nse to match how it's shown in scripting.xml. 2008-11-18 16:47:57 +00:00