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

1614 Commits

Author SHA1 Message Date
fyodor
a1c363b84a RateMeter::update() used to abort if the new time was earlier than the old time. But on my SMP Linux 2.6.20 system, I've been doing large-scale scanning and I'm getting very occasional values like "now=1214173867.8027; last_update_tv=1214173867.8065". Unless I'm missing something, I think my gettimeofday may have decreased by 38 microseconds. Perhaps due to SMP and the old kernel. Anyway, I changed it so that decreases of up to 1 millisecond just give a warning (one-time) rather than abort Nmap. 2008-06-23 00:56:49 +00:00
fyodor
726febac7c add extra debugging information to an error case -- trying to track down a host discovery crash (abort) 2008-06-22 21:20:10 +00:00
batrick
49a919f401 Fixed nmap library which was returning it's first argument
instead of the library table.
2008-06-22 18:38:53 +00:00
fyodor
aef79acb23 trivial reorg 2008-06-22 05:11:46 +00:00
bmenrigh
dea5974643 Migrated remaining *alloc() calls to safe_*alloc() 2008-06-22 04:56:02 +00:00
batrick
404c0848bf Fixed a incorrect arguments being passed to string.format 2008-06-21 21:08:38 +00:00
batrick
1d82523af0 Removed unnecessary print local from stdnse.lua 2008-06-21 21:02:42 +00:00
batrick
77437b3998 Updated incorrectly applied patch for http.lua's use of stdnse.make_buffer()
See: http://seclists.org/nmap-dev/2008/q2/0823.html
2008-06-21 20:49:30 +00:00
batrick
0c57267b76 http library now uses make_buffer correctly. 2008-06-21 19:18:56 +00:00
batrick
fa93527653 Changed waiting2running to push threads to the back of running, it
caused some nasty bugs when a thread would yield and pop front (a
thread just added).
2008-06-21 18:52:08 +00:00
batrick
d34f06ea49 Fixed a compile error. 2008-06-21 13:33:53 +00:00
batrick
ac52d97c25 Updated library handling in nse_init, and made
nmap library properly return its library table.
2008-06-21 13:28:03 +00:00
kris
ac5138b975 NSE re-categorization
* Merge the "backdoor" category into "malware"
* Add "auth" for authentication credential determination
* Rename "vulnerability" to "vuln"
* Place 12 scripts into their correct categories
2008-06-21 06:34:03 +00:00
michael
30d60b97ed setServiceXMLBuf now uses the string class exclusively instead of the old c-string & string class combination. So it is no longer necessary to calculate the length of the XML service element before writing it to its buffer. 2008-06-21 05:45:11 +00:00
doug
3bc22411eb Moved SIPOptions back down below GetRequest
PRO:
  * GetRequest is applied before SIPOptions to unknown ports
CON:
  * GetRequest will be applied to 5060 before SIPOptions
2008-06-21 01:58:44 +00:00
michael
f0cbbe45f8 Fixed a segfault in printportoutput() and setServiceXMLBuf() in output.cc.
Thanks for pointing this out Brandon.
2008-06-20 22:00:40 +00:00
david
38c50f3ac3 In eth_get_pcap_devname (nee intf_get_pcap_devname), fall back on matching MAC
addresses if matching IP addresses fails. I have a feeling this is more
reliable than matching IP addresses, but as I'm not sure, I have made it the
backup so that nothing will stop working that was working before. The MAC
address matching works fine for me if I disable the IP address matching. The
code is adapted from libdnet 1.11.
2008-06-20 20:57:40 +00:00
david
09cc37f7f0 Rename intf_get_pcap_devname to eth_get_pcap_devname to reflect its new home. 2008-06-20 20:44:54 +00:00
david
b145c5549d Move intf_get_pcap_devname from intf-win32.c to eth-win32.c. Pending changes
are going to make that function use a struct eth_t, so it needs to be here to
be in scope for that struct's internals.
2008-06-20 20:36:21 +00:00
david
f557cbe90e Remove the unused (and broken) intf_get_desc function from libdnet-stripped. It
used to be used to get the interface description back when the eth_open
correlation code worked that way.
2008-06-20 20:32:51 +00:00
david
450052603b In intf_get_pcap_devname, compare each of the pcap device's addresses against
all of the dnet device's addresses, not just the first one. This is a long shot
to fix the "dnet: Failed to open eth4" problem on Vista, but it's the right
thing anyway.
2008-06-20 19:44:13 +00:00
batrick
b64c8846b4 Made small aesthetic changes to mutex documentation. 2008-06-20 16:20:18 +00:00
batrick
27859e42cf Updated documentation for stdnse module. It now includes
tobinary, tooctal, tohex, and make_buffer.
2008-06-20 14:05:26 +00:00
batrick
0bc91f9db2 Improved and changed the make_buffer function.
It now returns the line as its first argument always, otherwise nil, errmsg

I updated scripts that use make_buffer.

When Lua 5.2 comes out, we may be able to use a function I've added
called stdnse.lines (commented for now). It cannot be used yet because
we cannot yield inside generic for loop. The function is built for
generic for loops. It will work as such:
for line in stdnse.lines(socket) do
  ...
end
2008-06-20 13:50:50 +00:00
batrick
dffb1d9423 Updated stdnse library (optimizations). 2008-06-20 12:05:18 +00:00
batrick
bb07552e94 Changed a bad reference to the table.remove function for the mutex code.
The main branch does not yet have the changes to init that includes all
Lua functions being in the Registry with shorthand names.
2008-06-20 07:28:58 +00:00
batrick
f117619044 Added mutex code. 2008-06-20 07:19:37 +00:00
batrick
00c55e7e42 Removed old commented code. 2008-06-20 07:07:13 +00:00
doug
5150b51145 nmapsubmit-svfp-060108.mbx
* privoxy match line
  * major SIPOptions probe reorganisation -- see nmap-dev
2008-06-20 05:21:09 +00:00
michael
4863010770 Service fingerprints are no longer truncated in XML logs. 2008-06-20 03:25:53 +00:00
doug
c9440050e8 nmapsubmit-svfp-060108.mbx SSH and telnet fingerprints 2008-06-20 01:20:31 +00:00
fyodor
d61e811485 apply more suggestions from Brandon 2008-06-19 05:27:42 +00:00
doug
ee8afa1b12 nmapsubmit-svfp-060108.mbx FTP fingerprints 2008-06-19 03:30:38 +00:00
michael
3d2f2f56e8 added more comments, fixed a small bug, and refactored code in route_dst 2008-06-19 02:41:49 +00:00
doug
fb85d6b1c7 Mail protocols for nmapsubmit-svfp-060108.mbx
pop3, smtp, and imap
2008-06-19 01:11:12 +00:00
fyodor
645be747da fix a broken link found by Kris 2008-06-19 00:28:47 +00:00
david
130f794664 Remove the now-unused getInterfaceByIP function from tcpip.cc. (Really, it was
not used before because of how the logic for o.spoofsource and o.device is
handled in nmap.cc.) Its basic purpose remains in the function ipaddr2devname.
2008-06-18 23:03:24 +00:00
doug
b9ae121838 Processing corrections from: nmapsubmit-svcorr-060108.mbx 2008-06-18 22:54:05 +00:00
david
e4227a44e0 Remove some code which Michael correctly surmised isn't used. Replace it with
an assertion.
2008-06-18 22:51:17 +00:00
david
c67369c6b2 Fix up indentation in route_dst in tcpip.cc (no code changes). This function
has been messed up for a while and I was having trouble reading it. I changed
it to use the mix of 8-wide tabs and spaces used by most of the rest of the
file.
2008-06-18 22:30:38 +00:00
doug
da3f573795 Several match lines and probes from Tom Sellers that were sent to nmap-dev. 2008-06-18 21:18:27 +00:00
david
a74aed2965 Fix some misspelled words in docs/scripting.xml. 2008-06-18 20:43:59 +00:00
michael
2cdb6d9a2a removed a redundant loop from route_dst() in tcpip.cc 2008-06-18 20:41:45 +00:00
david
da94206212 Fix an indexterm in scripting.xml. I changed a duplicate term into the one I
meant to put in.
2008-06-18 20:08:52 +00:00
david
136cdf787c Add some indexterms to docs/scripting.xml and docs/refguide.xml. 2008-06-18 18:43:27 +00:00
david
37dff042e0 Change the link for detail information on -oG output from
http://www.unspecific.com/nmap-oG-output to
http://nmap.org/book/output-formats-grepable-output.html (or a cross-reference
if notman).
2008-06-18 17:57:49 +00:00
david
687c923bc1 Capitalize HTTP and HTTP GET in the Reference Guide. 2008-06-18 17:45:11 +00:00
david
d70ed50e90 Use the new man and notman elements in the Reference Guide. Links to book
sections are web links when the man page is built on its own, simple
cross-references when it is part of the book.
2008-06-18 17:37:07 +00:00
david
f1383115d4 Change the Reference Guide: /1 isn't the smallest netmask allowed anymore. /0
works.
2008-06-18 15:06:29 +00:00
kris
f0f84ad3b0 Fixing a pair of tags (function -> literal) and fixing an example call (match.lua -> match.regex). I also changed the variable used to avoid confusion (regex -> pattern). 2008-06-18 04:46:55 +00:00