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

1614 Commits

Author SHA1 Message Date
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
kris
5436c891fc o Fixed an integer overflow which prevented a target specification
of "*.*.*.*" from working.  Support for the CIDR /0 is now also
  available. [Kris]


A sendto() or connect() to IPv4 addresses with a first octet of 0
(excluding 0.0.0.0 on some OS's) returns EINVAL.  These addresses
are reserved for "self-identification" and should never go over the
wire (and at least on Linux a connect() to 0.0.0.0 gets redirected
to 127.0.0.1).  I'm talking with Fyodor on whether or not to skip
*all* of these addresses.
2008-06-03 19:25:16 +00:00
david
91d5eb45a5 Remove an FEFF byte order mark from the beginning of CHANGELOG. 2008-06-03 18:58:39 +00:00
kris
939a38d918 fixing the date/order in the CHANGELOG--new changes go above the last release 2008-06-03 18:35:09 +00:00
michael
9f64691427 On windows, the --iflist option was not reporting correct windevice values and not displaying all ethernet devices if the user had interface aliases set up. Now all Windevice values and interface device ID's will be properly linked together. 2008-06-03 18:05:45 +00:00
michael
c20b232ebc Updating the CHANGELOG for my previous patch. 2008-06-03 16:26:00 +00:00
fyodor
729aa1c6ab remove a remark - I'm not sure what it means 2008-06-03 02:37:21 +00:00
batrick
2cea96ea2b Minor change to Kris' change to make nmap.registry.args always available.
Avoided using strdup() although it's minor.
2008-06-03 02:17:10 +00:00
david
ec3d31ad7a Ignore the directories Debug and Release in mswin32. 2008-06-02 18:53:53 +00:00
fyodor
9d09f722cd sorting 2008-06-02 00:40:41 +00:00
fyodor
4ada795952 slight reorg 2008-06-02 00:40:24 +00:00
kris
32e8249c80 Upgrading shipped mswin32 OpenSSL headers and libraries to newest 0.9.8h (thanks to Jah for noticing the new release) 2008-06-01 15:09:17 +00:00
fyodor
7026766335 more tweaking 2008-06-01 07:04:54 +00:00
fyodor
bcf92751b9 minor improvements to CHANGELOG 2008-06-01 06:59:59 +00:00
fyodor
7df6406b4b slight reformat and fix a typo 2008-06-01 06:56:09 +00:00
kris
a5bf21e5db o The NSE nmap.registry.args table is now available, albeit empty, when
--script-args isn't used.  Now scripts don't need to check if it's nil
  before attempting to index it. [Kris]
2008-06-01 06:31:50 +00:00
fyodor
fda3297aaa regenerate docs 2008-06-01 05:54:22 +00:00
fyodor
998c0e3ca3 update version number 2008-06-01 05:54:08 +00:00
fyodor
6593a74fc9 Update the CHANGELOG with latest changes in prep for release (tomorrow, hopefully) 2008-06-01 05:46:47 +00:00
fyodor
ed58c3cdf7 Changed to a more international style date format for release dates, also made some misc. minor changes 2008-06-01 03:41:18 +00:00
fyodor
cdcf26d420 Win32 installer improvements:
o Our WinPcap installer now starts the NPF driver running as a
  service immediately upon installation and after restarts. You can
  disable this with new checkboxes. This behavior is important for
  Vista and Windows Server 2008 machines when User Account
  Control (UAC) is enabled. [Rob Nicholls]

o Nmap and Nmap-Winpcap silent installation now works.  Nmap can
  be silently installed with the /S option to the installer.
  If you install Nmap from the zip file, you can install just
  Winpcap silently with the /S option to that
  installer. [Rob Nicholls]

o Our WinPcap installer is now included with the Nmap Win32 zip
  file. [Fyodor]

o Numerous miscellaneous improvements were made to our Win32
  installer, such as using the "Modern" NSIS UI for WinPcap,
  improving the option description labels, and showing a finish
  page in all cases. [Rob Nicholls]
2008-06-01 03:18:35 +00:00
batrick
93492da5cb Fix to Windows define for nse_fs 2008-05-31 08:22:39 +00:00
fyodor
31ed85eca8 remove makefile.dep as part of make clean 2008-05-31 03:24:50 +00:00
fyodor
76f7cced70 change http User-Agent header value to: Mozilla/5.0 (compatible; Nmap Scripting Engine; http://nmap.org/book/nse.html) 2008-05-31 03:24:25 +00:00
fyodor
746e2872b8 expand acceptable SEQ.ISR for fingerprint which matches scanme.nmap.org 2008-05-31 03:00:27 +00:00
batrick
d0bc640db8 Large recode of nse_init.cc
Now does most of it's work through Lua:

From Nmap-dev: "Many of the changes consist of changing how Nmap interfaces
with Lua that were sometimes awkward or inflexible. Most of the functions 
have been made to be callable directly by Lua which offers many technical
advantages: stack management is alleviated, errors are handled cleanly and
are more descriptive, and there is increased reusability."

Additionally:
   -- Moved all lua_State * symbols from "l" to "L". This is to maintain
      consistency with other Lua libraries (convention) and to make our macros portable.
   -- Moved file system manipulation over to nse_fs.cc (from nse_init.cc)
2008-05-31 02:39:27 +00:00