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

2789 Commits

Author SHA1 Message Date
fyodor
17f6f3e665 improve wording - suggested by Kris 2008-06-14 00:40:59 +00:00
fyodor
ac12ab6b41 o Added a new timing_level() function to NSE which reports the Nmap
timing level from 0 to 5, as set by the Nmap -T option.  The default
  is 3. [Thomas Buchanan]
2008-06-14 00:22:05 +00:00
david
9c646a4873 Make the parameter to parse_fingerprint_file const. 2008-06-13 17:32:47 +00:00
kris
44f6087b94 Merging changes from my vc2008-testing branch. This moves Windows development
to VC++2008.
2008-06-13 05:58:11 +00:00
david
2e48dde838 Fix a duplicate "that that" in docs/scripting.xml. 2008-06-12 22:34:34 +00:00
kris
dddea16e2e fixing a repetitive typo in scripting.xml 2008-06-12 18:51:05 +00:00
david
902d3dcf0f Break the libdnet->libpcap mapping output into its own function. 2008-06-12 16:58:16 +00:00
david
07515db1d5 Int the DEV/WINDEVICE output, additionally show the "leftover" libpcap devices,
those that don't have a libdnet name that maps to them. This should be a help
in debugging, as it now shows all the libdnet names, all the libpcap names, and
how they all relate to each other.
2008-06-12 16:42:03 +00:00
kris
2f9321360f o Added a new NSE Comm library for common network discovery tasks such
as banner-grabbing (get_banner()) and making a quick exchange of data
  (exchange()).  16 scripts were updated to use this library. [Kris]

I have *not* been able to test all of these scripts; however, I have
reviewed them and they should all work properly.  I would really like
some more testing, though :)

This commit includes scripting.xml documentation.
2008-06-12 14:32:25 +00:00
fyodor
cede9ab542 go through all ulinks to add hidepdf, change to xref, update, etc. 2008-06-12 10:23:30 +00:00
david
d8ad54907c Protect the WINDEVICE output code with #ifdef WIN32. 2008-06-12 01:45:06 +00:00
david
0101e9e0ab Change the DEV/WINDEVICE output (the part that shows the mapping from
dnet names to WinPcap names) to use the no-nonsense approach of simply
calling DnetName2PcapName for every interface returned by getinterfaces.
DnetName2PcapName calls intf_get_pcap_devname, which is same function
called by eth_open on Windows, so now the output really reflects Nmap's
view of the world.

This doesn't remove interface aliases, so if you have any aliases
enabled, you will see what look like duplicated lines. I have chosen to
leave them in for now to assist with debugging if any alias-related
problems come up in the future. They could be taken out easily if this
is not desired.

This brings what may be a startling change: the lo0 loopback interface
no longer maps to /Device/NPF_GenericDialupAdapter, but to no adapter at
all (signified by "<none>"). I believe the old behavior was wrong,
merely an artifact of the way the code happened to line up two lists of
interfaces. /Device/NFP_GenericDialupAdapter is for dialup and VPN
capture, and the loopback interface isn't supported by WinPcap (or
Windows for that matter) at all. See
http://www.winpcap.org/misc/faq.htm#Q-5
http://www.winpcap.org/misc/faq.htm#Q-13
2008-06-12 00:57:49 +00:00
bmenrigh
7af6810d91 Added the BMC, CA-mq, and Goverlan service match lines from Tom Sellers. 2008-06-12 00:34:51 +00:00
batrick
11bb301510 Updated showOwner.nse 2008-06-11 07:34:00 +00:00
kris
b5e046b693 Fixing another bug found by Ilja, this time in Idle Scan: ipid_proxy_probe() was calling readtcppacket() with an unverified length argument. 2008-06-11 06:11:52 +00:00
kris
861f9ff24b Fixing another bug found by Ilja where a pointer in ippackethdrinfo() could have gone outside of the buffer it was referencing (reading, not writing) 2008-06-11 06:00:17 +00:00
kris
92a9b10138 Fixing a bug in tcppacketoptinfo() spotted by Ilja which would break parsing of the tcp options. Also fixing another one spotted by me when investigating this: if the invalid SACK length of 2 was in the packet, this function would have treated it as valid 2008-06-11 05:23:47 +00:00
kris
1d0456acad o Fixed a bug which caused -PN to erronously bail out for unprivileged
users.  Thanks to Jabra (jabra(a)spl0it.org) for the report. [Kris]

This was introduced when the ping probes were reorganized and moved
out of NmapOps (the o.pingtype check wasn't copied over)
2008-06-10 05:16:29 +00:00
batrick
4eb6b3b5c4 Formatting and typo changes. 2008-06-10 00:47:46 +00:00
batrick
10f6fc9b53 Updated second embedded varlist to an itemized list as in
socket_object:connect() (works?).
2008-06-09 21:23:19 +00:00
batrick
1abbed9548 Move </para> tag above second embedded list for Mutexes (bad rendering?) 2008-06-09 21:10:53 +00:00
batrick
0564b25559 Added jah's patch to fix Script Database bug: http://seclists.org/nmap-dev/2008/q2/0623.html 2008-06-09 19:46:54 +00:00
david
153f35351f Document zenmap r8086 (fix for loading non-ASCII results from the database) in
the CHANGELOG.
2008-06-09 19:31:33 +00:00
kris
743eb48856 o Fixed some memory leaks in NSE found with Valgrind. [Kris] 2008-06-09 16:54:08 +00:00
fyodor
a3a6853c08 Update --spoof-mac section; remove Nmap version numbers and time from Nmap startup-messages. Canonicalize the Nmap capitalization and URL from those messages too. 2008-06-09 08:38:29 +00:00
batrick
46ce09a994 Minor optimizations to stdnse.lua
Fixed stdnse.lua to use a default name for module()
2008-06-09 02:23:22 +00:00
batrick
d47e9fd66d Updated Implementation of scripting book. 2008-06-08 22:04:38 +00:00
kris
9af737cd7f Changing --no_stylesheet to --no-stylesheet in the refguide, and changing
a few more long options with underscores in comments and output
2008-06-08 15:34:07 +00:00
batrick
46e5f50b24 Minor bug fix to new strbuf. 2008-06-08 07:29:31 +00:00
batrick
06da4ac2ed Updated strbuf.lua 2008-06-08 07:22:14 +00:00
batrick
b8d8702dda Updates to strbuf API. 2008-06-08 07:20:45 +00:00
kris
0632f1f8da updating --release-memory (thus far) and freeing some other areas early on 2008-06-08 05:29:00 +00:00
fyodor
798438e2d2 apply some suggestions from Patrick Donnelly and Eric Krosnes 2008-06-07 10:53:17 +00:00
david
a7a5d3042b Add the results of about 60 OS submissions. 2008-06-07 04:39:01 +00:00
david
214c29c80b Whoops, we can't free something allocated with cp_alloc. Handle it another way. 2008-06-07 04:28:56 +00:00
david
1058a9bfd9 Refactor parse_classline to be a lot more straightforward. Some of my recent
commits had changed its behavior because of the complicated logic that was used
before.
2008-06-07 04:18:26 +00:00
david
6abba38b19 Remove a fingerprint parsing error that can't happen anymore. 2008-06-07 03:23:52 +00:00
david
51ae7d1f24 Make parse_classline accept blank class lines like
Class  || |
2008-06-07 03:22:00 +00:00
david
6f9f79cabf Allow a fingerprint to have an empty description in parse_single_fingerprint.
This is used by OSassist which often has to read such prints. Previously it
caused a parse error.
2008-06-07 01:16:24 +00:00
ejlbell
7cf7259f9d New and improved robots script
* Instead of printing all disallowed entries it now only prints the
  first 20. In verbose and debug modes it prints more entries, the exact
  number depends on the debug and vebose level

* Prints out the number of disallowed entries 

* Prints a message if a robot.txt file exists but has not entries.

* More resilient parsing and duplicate removal code

* Extended the line length to 50 characters so less vertical space used
2008-06-06 17:30:09 +00:00
fyodor
8b0b2559ea remove nse-license section, add content to nse-format-license 2008-06-06 06:17:13 +00:00
david
8ebd1a8358 Always remove the zenmap staging directory before rebuilding it in the macosx
makefile.
2008-06-06 04:44:15 +00:00
david
d924d3c0e0 Undo the change to scripts/script.db accidentally committed in r7967. 2008-06-06 04:36:32 +00:00
david
a2229c1228 Remove the share/icons and share/pixmaps from zenmap.spec.in because those are
now subdirectories of share/zenmap.
2008-06-06 04:34:23 +00:00
kris
ffedc7b69b making a changelog entry for the OpenSSL 0.9.8h upgrade earlier this week 2008-06-06 03:35:11 +00:00
jurand
7a08d348b5 o Install icons and pixmaps under /usr/share/zenmap/{icons,pixmaps}
so they don't get mixed in with the files in /usr/share/{icons,pixmaps}.
  [Jurand Nogiec]

o Modification to handle the problem where if a user modifies the
  command entry field, Zenmap does not necessarily execute this command
  and instead it will follow what the Target/Entry fields specify
  instead. This avoids a bug where if you edited a command, then selected
  a different target, the edited command line would be replaced with one
  from the currently selected profile. [Jurand Nogiec]
2008-06-06 03:22:28 +00:00
kris
3512576c9b zoneTrans.nse now takes a "domain" script argument to specify the domain name
to transfer.  I've only been able to examine the behavior through Wireshark
since I don't have a nameserver that transfers other domains (I always get
"Not Authoritative").  It seems to work fine, though
2008-06-05 04:22:27 +00:00
fyodor
c23be3a67c remove some obsolete remarks 2008-06-04 23:38:03 +00:00
david
d8ac4f8859 Merge from /nmap-exp/david/nmap-fixed-rate. This brings in
doAnyOutstandingProbes performance improvements. Here is the log message from
r7914 in nmap-fixed-rate.

Keep a cache of the most recently processed probe for each host in
doAnyOutstandingRetransmits. This greatly reduces the amount of CPU used by
that function when the lists of outstanding probes grow long, such as when a
high scan rate is specified with --min-rate.

This is not most efficient possible way this could be done, but it is a pretty
big win, and it's very non-invasive. The changes are limited entirely to
doAnyOutstandingRetransmits, with no new global state in ultra_scan.

# nmap -d --min-rate 50000 -n -PN -p1-65535 --max-rtt-timeout 500 --max-retries 1 scanme.nmap.org

gprof before:
  %   cumulative   self              self     total
 time   seconds   seconds    calls   s/call   s/call  name
 49.74     30.96    30.96     2709     0.01     0.02  doAnyOutstandingRetransmits(UltraScanInfo*)
 10.51     37.50     6.54 127256413     0.00     0.00  std::_List_iterator<UltraProbe*>::operator--(int)

gprof after:
  %   cumulative   self              self     total
 time   seconds   seconds    calls   s/call   s/call  name
 20.48      3.36     3.36     2667     0.00     0.00  doAnyOutstandingRetransmits(UltraScanInfo*)
 16.21      6.02     2.66     2667     0.00     0.00  processData(UltraScanInfo*)

Note that 50000 packets per second is way excessive. I really only get about
6000 in practice. But the point is there is no huge CPU penalty for giving an
excessive rate.
2008-06-04 03:45:39 +00:00
doug
7833ac574d CUPS match line out of order fix from Sven Klemm 2008-06-03 21:20:19 +00:00