Commit Graph

139 Commits

Author SHA1 Message Date
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
majek04 4ed4ffa219 Added promiscuous.nse for detecting local NIC in promisc mode. First script using pcap for nse. 2007-11-27 18:59:53 +00:00
david 3782d2c020 Add an nmap.have_ssl NSE function and use it in the script showHTMLTitle.nse to
avoid doing an SSL probe if SSL is not available.
2007-11-22 06:38:23 +00:00
david fbeb42a7a1 Remove an unused "url" local variable from scripts/showHTMLTitle.nse. 2007-11-20 23:39:14 +00:00
fyodor 39e2f3ed61 New PPTP version detection script from Thomas Buchanan 2007-11-14 23:30:22 +00:00
david 9d6a94d6ea Remove an entry for a test script from script.db. 2007-11-08 07:44:49 +00:00
ejlbell 9dea83347b Accidentally committed experimental version of robots.nse 2007-11-05 21:41:47 +00:00
ejlbell 1a73a31df0 updated 'nse directory constant' that seems to effect scripts using nselib in certain functions 2007-11-05 21:21:08 +00:00
david 50c4981934 Remove the first-generation OS detection and nmap-os-fingerprints. 2007-11-03 01:31:02 +00:00
david 83382600f2 Revert r5485. This changes the pcre Lua module back to statically linked
code instead of a dynamically loaded C module. Linking the dynamic
shared module with the static libpcre.a was failing on OpenBSD. See
http://seclists.org/nmap-dev/2007/q4/0085.html.
2007-10-23 00:45:00 +00:00
fyodor a3cb8dfdcc update by Jason DePriest to do HELP query in addition to EHLO 2007-10-12 21:56:20 +00:00
david 14676144b6 Change \n\r to \r\n in two scripts that needed it: anonFTP and finger. 2007-10-03 20:48:05 +00:00
kris 0aaa51980d Making extra functions in my HTTPpasswd.nse and HTTPtrace.nse scripts 'local'. I mark my C functions static, so I'll mark my Lua ones local 2007-09-15 02:44:15 +00:00
kris 7c3448c1f7 Trying to keep script.db tidy when running --script-updatedb. This sorts the script filenames before writing script.db. Tested on Linux and Windows 2007-09-15 01:01:35 +00:00
kris b48cdbebfe A couple changes to my HTTPpasswd.nse and HTTPtrace.nse scripts. In both I'm using a more object-oriented approach to methods, e.g. using response:find(..) rather than string.find(response, ..). And in HTTPtrace.nse, I'm changing a couple badly-named variable names in validate(). 2007-09-04 20:40:38 +00:00
kris 54bf839dc9 A few changes to HTTPtrace.nse: use stdnse.strsplit() rather than my str2tab(), remove unused var, and change how to remove extra newline from server response 2007-09-03 22:24:26 +00:00
fyodor a5d2e11cd4 trivial capitalization change 2007-09-02 23:02:45 +00:00
kris baf7e98c7f Adding my HTTPtrace.nse script. Simply put, it sends an HTTP TRACE method and examines the response for modifications 2007-09-02 00:25:33 +00:00
fyodor 31b16ba562 latest scripts DB 2007-08-30 20:56:30 +00:00
kris 199f7f9285 Adding my /etc/passwd directory traversal script (HTTPpasswd.nse) 2007-08-28 22:33:09 +00:00
fyodor 5579ac94d3 merge soc07 r5317:5322 - DNS zone transfer script. 2007-08-11 06:07:31 +00:00
fyodor 78f15a7f65 make pcre an NSE C module 2007-08-11 06:05:48 +00:00
fyodor d7f207450c merge soc07 r5279 - nse fixes 2007-08-11 06:03:25 +00:00
fyodor 9269e71cd8 merge soc07 r5245 - sql injection script 2007-08-11 05:59:19 +00:00
fyodor 179d2b5766 merge soc07 r5191:5202 - portstates now takes list; script to download robots.txt; open proxy script; fix default shortport state value 2007-08-11 05:51:31 +00:00
fyodor f011a8bb3d merge soc07 r5166 - Updated scripts to use strbuf's new structure 2007-08-11 05:49:25 +00:00
fyodor 9352fa4ea5 merge soc07 r5118 - fix portrule bug 2007-08-11 05:32:08 +00:00
fyodor bd1ee83bd9 merge soc07 r5109, r5117 - Modified some of the scripts to use NSELib for portrule 2007-08-11 05:31:21 +00:00
fyodor f025e86b0b merge soc07 r5085:5094 - removed a period which could lead to slightly confusing output such as 'Read data files from: ..' when they are read from the current directory; Always print a message when the script database is updated successfully; Added a whole bunch of entries to the CHANGELOG in preparation for the first soc07 release; latest auto-generated files; add a question mark to a textual question 2007-08-11 05:14:52 +00:00
fyodor 01b5a155e1 merge soc07 r5063:5065 - added support for nse-C-modules under windows; misc. nse improvements 2007-08-11 04:59:14 +00:00