1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-06 04:31:29 +00:00

38 Commits

Author SHA1 Message Date
dmiller
85ec647932 Support RPCBIND 3 and 4, not only portmap 2. See #1469 2019-04-15 19:35:24 +00:00
dmiller
0500811f5a Move string utility functions to stringaux.lua 2018-10-18 01:08:19 +00:00
dmiller
590618261c Make sure to use version_intensity checks for version category scripts 2017-07-27 18:21:09 +00:00
dmiller
ad6f790773 Add cross references for several scripts 2017-01-14 04:16:27 +00:00
dmiller
fbdd7f53d9 Don't crash when portmapper reports non-tcp/udp transports. Fixes #363 2016-04-18 05:11:57 +00:00
tomsellers
12e9af5b1b Adjust indentation on rpcinfo.nse, no fuctionality changes 2016-04-10 14:19:51 +00:00
dmiller
4135ec518f Add rpcinfo to version category, see previous commit 2016-03-14 20:42:52 +00:00
dmiller
0bb036cda2 Allow rpcinfo.nse to set version info
The rpcinfo script can now set version info just like rpc-grind. Since
this requires considerably less traffic than rpc-grind, I made rpc-grind
depend on rpcinfo so that it will avoid running if we can get the
version information this way instead.

Also changed rpcinfo to only run on port 111, not on "rpcbind" service
since that's what -sV labels any detected RPC service.
2016-03-14 20:42:51 +00:00
dmiller
f4619edece Update http urls for nmap.org to https 2015-11-05 20:41:05 +00:00
dmiller
339f0ffd7d Fix NSEdoc: wrap lines, fix bulleted lists 2015-07-11 04:01:05 +00:00
dmiller
620f9fdb34 Remove trailing whitespace in lua files
Whitespace is not significant, so this should not be a problem.
https://secwiki.org/w/Nmap/Code_Standards
2014-01-23 21:51:58 +00:00
dmiller
dbbf2671ba XML output for rpcinfo.nse 2013-05-04 23:12:36 +00:00
batrick
000f6dc4d9 Lua 5.2 upgrade [1] for NSE.
[1] http://seclists.org/nmap-dev/2012/q2/34
2012-05-27 08:53:32 +00:00
fyodor
0e68420cc6 Oops, I forgot to add the comment symbols to my nsedoc @output changes to this script. 2011-03-19 18:58:31 +00:00
fyodor
8e9ef47bff Add a header line to rpcinfo program listing. I also updated the @usage docs to include results against 58.224.52.156 2011-03-19 08:57:17 +00:00
fyodor
e896e27e8a Put rpcinfo in the default category and also improve the NSEDoc documentation for it slightly 2011-03-19 08:06:34 +00:00
djalal
9849be68a9 Use the new get_script_args() function to parse script arguments and clean some whitespaces. 2010-08-17 01:58:47 +00:00
djalal
28e9cf600b Add a missing require('stdnse') 2010-08-12 03:54:13 +00:00
patrik
e411e35fc6 Fixed a bug that would prevent the rpcinfo script from returning any results
if the rpc program could not be matched to a name.
2010-06-01 14:09:58 +00:00
patrik
71ca5cceba o [NSE] Improved error handling and reporting and re-designed communication
class in RPC library with patch from Djalal Harouni. [Patrik]
2010-04-22 20:25:38 +00:00
patrik
dd9a237fe2 o [NSE] Added RPC library and three new NFS scripts. Modified the rpcinfo and
nfs-showmount scripts to use the new library. The new scripts are:
  - nfs-acls shows the owner and directory mode of NFS exports
  - nfs-dirlist lists the contents of NFS exports
  - nfs-statfs shows file system statistics for NFS exports
  [Patrik]
2010-03-21 17:56:17 +00:00
fyodor
77ab5c4305 Remove email addresses from scripts as discussed in this thread: http://seclists.org/nmap-dev/2009/q4/466 2009-11-24 08:49:02 +00:00
jah
8341de219a Exit the script cleanly rather than throwing an error when attempting to
receive_bytes() from a portmapper service which fails to respond with data.
2009-08-08 01:51:32 +00:00
david
4863d506c1 Remove script ids. Scripts are identified by file name in output (just the
basename without ".nse", or the full path with debugging level 2 or higher).
This includes documentation changes in scripting.xml.
2008-11-05 00:52:55 +00:00
david
84afa54d3a Update and proofread documentation of all the scripts, with the exception of
nbstat.nse and smb-*.nse, which Ron is going to do.
2008-10-25 03:11:25 +00:00
david
8bd71aaf43 Normalize NSEDoc documentation of scripts.
I made every script follow a standard form: it starts with the id, followed by
the description. The description is contained in [[ ]] delimiters. The
description is in the global description variable, not in a LuaDoc comment.
Other LuaDoc information such as @args and @usage follows the description in a
comment.

The first paragraph of each description is a a short summary of what the script
does. More detailed information, if any, is given in following paragraphs.

I also improved some wording and formatting in a few cases.
2008-10-14 20:52:50 +00:00
sven
ece81da41a add linebreaks to @output section of rpcinfo and SSH-hostkey script 2008-10-10 06:27:10 +00:00
sven
81827eae3c rpcinfo.nse:
don't stop the whole script if we don't receive further packets even though 
 they are expected but process what we got so far instead
 remove rpc_ prefix from variable names
2008-09-08 09:11:41 +00:00
fyodor
bed9523832 o Updated rpcinfo NSE script to use the new pack/unpack (binlib)
functions, use the new tab library, include better documentation, and
  fix some bugs. [Sven Klemm]
2008-09-03 08:31:05 +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
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
5b113453b3 reflect moved url 2008-04-09 09:55:03 +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
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
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