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
david
8247257ad0
Make the code that manipulates the filename local to a function in banner.nse.
...
--script-updatedb didn't work because scripts don't have the filename variable
in their environment during that.
2008-11-18 16:44:57 +00:00
jah
100aa9d122
Removed filename_len() from banner.nse and instead shorten var filename
...
to the script name minus its extension - in response to the change
in r11111.
Changed the width of output from 80 chars to 75 which is what was
originally intended.
2008-11-18 14:08:08 +00:00
kris
7b5cd49ccb
Add a (currently empty) scripts/data directory for data used by user scripts
...
not shipped with Nmap proper, and as a place-holder for future data used by
scripts (jah mentions whois in this regard).
2008-11-18 01:50:54 +00:00
jah
fece92c4f7
Add http-alt and https-alt to the services handled by html-title.nse
...
Modified http.request() to connect using ssl for the https-alt service.
html-title.nse can now deal with a redirect which changes the url scheme
as long as a port is present in the url and it is the port being scanned.
2008-11-17 22:06:58 +00:00
david
5464198f6b
Remove the feature that showed the full path of a script when debugging was 2
...
or higher. Nmap already shows "Will run" messages with the full paths. This is
so that script ids are consistent in XML output.
2008-11-17 21:50:51 +00:00
ron
b53edf3d62
Merging in change to how SMB mutexes are handled (should improve speed significantly for parallel scans)
2008-11-16 16:53:08 +00:00
david
6bd949abb0
Add a little bit about POP3 capabilities to the pop3-capabilities.nse script.
2008-11-15 01:43:10 +00:00
david
c3ee93f056
Sort script.db entries by file name to make diffs comprehensible. Their
...
previous unsorted state was due to their coming straight out of opendir.
2008-11-15 00:58:36 +00:00
david
0d7243ad5a
Add banner.nse to script.db.
2008-11-15 00:55:59 +00:00
jah
17595d5f03
Removed an erroneous argument to a print_debug statement.
2008-11-14 20:57:45 +00:00