1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-10 17:59:04 +00:00
Commit Graph

2968 Commits

Author SHA1 Message Date
fyodor
6d52a3db77 o Updated showHTMLTitle NSE script to follow one HTTP redirect if
necessary as long as it is on the same server. [Jah]
2008-06-29 04:21:30 +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
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
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
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
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
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
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
batrick
742ff67100 Removed nse_auxiliar. Updated Script Argument parsing. Fixed typos in
documentation. Improved MySQLinfo.nse. Nsock/dnet metatabels are now
protected.
2008-05-31 02:19:24 +00:00
batrick
21a2e7aea6 Updated to Lua 5.1.3 (Bug fix release)
Updated stdnse to include tobinary, toocal, and tohex functions.
Minor optimizations to listop.lua
2008-05-31 01:43:43 +00:00
kris
c7eb8011d9 NSE now has a "default" category for scripts. This category holds the set
of scripts chosen from when using -sC (but it's still just another category
and so can be chosen with --script like any other).

On top of updating the docs with information about this new category, I've
also updated sections to emphasize that the "default" category, -sC and -A
are considered intrusive and should not be run against target networks
without permission.

The new list is very similar to the previous "safe,intrusive" list:

Added: finger, ircServerInfo, RealVNC_auth_bypass
Removed: HTTPpasswd

Here are the 21 scripts in this new category:

anonFTP
dns-test-open-recursion
finger
ftpbounce
HTTPAuth
HTTP_open_proxy
ircServerInfo
MSSQLm
MySQLinfo
nbstat
RealVNC_auth_bypass
robots
rpcinfo
showHTMLTitle
showOwner
SMTPcommands
SNMPsysdesr
SSHv1-support
SSLv2-support
UPnP-info
zoneTrans
2008-05-28 07:16:32 +00:00
fyodor
4742ed7845 update SMTPcommands with new code from Jason which works better against Postfix and some other systems. Also, I made it less verbose and changed the ID to SMTPcommands to match the filename. 2008-05-27 07:36:05 +00:00
kris
ee876ada98 o Replaced kibuvDetection.nse with version detection match lines which
work better than the script. [Kris, Brandon]
2008-05-25 23:30:21 +00:00
fyodor
71a29d4e2d o Fixed a bug in the showOwner NSE script which caused it to try UDP
ports instead of just TCP ports.  This made it very slow in the
  common case where there are many UDP ports in the open|filtered
  state.  Thanks to Jason DePriest for reporting the problem and Jah
  for tracking it down and fixing it.
2008-05-25 01:38:48 +00:00
fyodor
779b96a197 trivial copyright text tweak: filename nmap-os-fingerprints has changed to nmap-os-db 2008-05-22 20:45:32 +00:00
fyodor
ce3ce4f541 change recursive query dns test from isc.sans.org to www.wikipedia.org 2008-05-16 22:17:41 +00:00
kris
b7b8fef7f4 Removing "Recursion not enabled" from dns-test-open-recursion.nse because it only adds clutter to the output 2008-05-15 15:12:58 +00:00
kris
2881b4faab HTTP_open_proxy.nse fix: tags{} -> categories{} 2008-05-14 21:02:27 +00:00
kris
abe470fba8 Change SSLv2-support.nse to only print cipher list if verbosity>=2 or debugging>0 2008-05-14 04:08:07 +00:00
bmenrigh
1018992e15 Loosened the non-HTTP regexp so that Skype is properly identified more
often.  Also added a product string so that the version column isn't
blank.
2008-05-13 20:19:38 +00:00
kris
e7eafc8928 Whoops, I missed running --script-updatedb for r7439 (removing mswindowsShell.nse) 2008-05-11 05:49:02 +00:00
kris
48a8bd757c Removing mswindowsShell.nse--there is a version detection match to accomplish the same thing 2008-05-10 20:52:16 +00:00
fyodor
5b113453b3 reflect moved url 2008-04-09 09:55:03 +00:00
kris
43523f441b Correcting the uptime parsing and reporting in SNMPsysdesr.nse when the uptime is less than about 46 hours. The amount of bytes holding the uptime is variable up to 4, but the script was assuming it always held 4 bytes of uptime. When the real uptime was less than 46 hours, this script was reporting an uptime anywhere from 5 days to 130 days (I think it actually reported 0 days once, but the hours were all messed up). 2008-04-08 14:58:17 +00:00
fyodor
60d1e103d3 Canonicalize license text--more than half did not even spell license correctly. They all still say that they are under Nmap's license, just with consistent capitalization and spelling, and now a link to Nmap legal page at http://nmap.org/man/man-legal.html 2008-04-07 08:23:21 +00:00
kris
8530569047 Adding my Datafiles NSElib for parsing the nmap-* data files for scripts and also update rpcinfo.nse to use this library. Includes CHANGELOG and docs/scripting.xml updates 2008-03-30 20:33:33 +00:00
kris
60924c7308 update ripeQuery.nse to not print extraneous beginning whitespace 2008-03-27 18:08:42 +00:00
ejlbell
7f58dc082c Switched bruteTelnet to the vulnerability category so it is not executed by default. Prompted by a bug report stating bruteTelnet failed on windows but switching is a good idea anyway as the script takes a long time to run. 2008-03-15 21:09:29 +00:00
diman
cf4c7081e8 moving debugger to nmap-exp/diman until further notice 2008-02-03 21:38:38 +00:00
diman
2d9bc1b43d added a CLI debugger 2008-02-03 14:21:36 +00:00
kris
a919aa5470 rewriting my HTTPpasswd script to use Sven's HTTP library and to do some much-needed cleaning up. 2008-02-01 05:48:45 +00:00
fyodor
9cf7f14afe o Added NSE HTTP library which allows scripts to easily fetch URLs
with http.get_url() or create more complex requests with
  http.request().  There is also an http.get() function which takes
  components (hostname, port, and path) rather than a URL.  The
  HTTPAuth, robots, and showHTMLTitle NSE scripts have been updated to
  use this library. Sven Klemm wrote all of this code.
2008-02-01 02:47:09 +00:00
ejlbell
5e8504f445 Script now outputs spaced tables (NmapOutputTable style) instead of tab separated tables so large varying zone transfers line up properly (for an example see cvs.openbsd.org) 2008-01-15 19:52:55 +00:00
ejlbell
e244e43f0d Couple of patches from Sven Klemm that speed up http nse scripts by telling the server to automatically close the connection 2008-01-14 00:13:30 +00:00
fyodor
44179ae135 o Update SSLv2-support NSE script to run against more services which
are likely SSL. [Sven Klemm]
2008-01-13 04:36:27 +00:00
fyodor
980d9ddd8d o Added UPnP-info NSE script by Thomas Buchanan. It gathers
information from the UPnP service (UDP port 1900) which listens on
  many network devices such as routers, printers, and networked media
  players.
2008-01-10 22:12:11 +00:00
fyodor
2cf283480f Remove own ntohl() and use packet.u32() instead. Patch from Sven Klemm 2008-01-08 23:13:38 +00:00
fyodor
8e9ca576d2 o Improved rpcinfo.nse to better sort and display available RPC
services. [Sven Klemm]
2008-01-06 17:12:09 +00:00
kris
23040d67ac o Fixed multiple NSE scripts that weren't always properly closing their
sockets.  The error message was:
    "bad argument #1 to 'close' (nsock expected, got no value)"
2007-12-28 07:35:51 +00:00
kris
c7dd124fef updating rpcinfo.nse to use nmap.fetchfile() instead of having the huge RPC table 2007-12-22 07:00:27 +00:00
fyodor
de9a7e8215 Added rpcinfo.nse script, which contacts a listening RPC portmapper
and reports the listening services and port information (like
rpcinfo -p does).  The script was written by Sven Klemm.  Fyodor
then enhanced the RPC number list with all of the entries from
nmap-rpc.
2007-12-20 23:13:07 +00:00
kris
a988d26982 Adding new MySQLinfo NSE script for printing MySQL server information 2007-12-19 07:23:59 +00:00
doug
939b94a322 Updated the IRC server info script to handle services
named irc-serv as well as just irc because this name
is present in nmap-services.
2007-12-15 23:47:31 +00:00
kris
0a6f10e4ba recommitting my r6499: "fix robots.nse output: remove robots.txt comments on disallowed entry lines" 2007-12-13 20:18:35 +00:00
fyodor
d6e89a5616 revert r6499 -- no checkins please until after the stable release unless it fixes a critical problem 2007-12-11 19:56:36 +00:00
kris
18867cf3b2 fix robots.nse output: remove robots.txt comments on disallowed entry lines 2007-12-11 16:04:00 +00:00
david
c25be95b59 Add some "local" declarations to scripts/xamppDefaultPass.nse. Without this I
was getting errors like

SCRIPT ENGINE: [string "Global Access"]:1: Attempted to change the global 'socket' in c:david
mapmswin32DebugscriptsxamppDefaultPass.nse - use nmap.registry if you really wan
t to share data between scripts.

Notice that there's another issue with the error message, which is that
backslashes in the file name are being interpreted as beginning escape
sequences (see how the '\n' in "C:\david\nmap" turned into a newline.
2007-12-09 05:47:26 +00:00
kris
aa80ac4b40 Fixing ripeQuery.nse output: it was printing "IP belongs to: " with nothing after it if the returned string was unacceptable (no role or suggested seeing www.iana.org); now it just returns since it didn't give any information anyway. 2007-12-06 21:51:43 +00:00
fyodor
088f7022a4 new script from Judy Novak at Sourcefire 2007-11-28 22:09:40 +00:00