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

21 Commits

Author SHA1 Message Date
dmiller
f4619edece Update http urls for nmap.org to https 2015-11-05 20:41:05 +00:00
dmiller
1b71f75aad Spelling fixes for Lua files
Mostly in documentation/comments, but a couple code bugs were caught,
including a call to stdnse.pirnt_debug and a mis-declared variable.
2014-02-19 04:15:46 +00:00
dmiller
fb67a6717e Re-indent some libs and scripts, change 4 to 2-space indent
Mostly found with:

    for i in nselib/*.lua scripts/*.nse; do
      echo $(perl -lne 'BEGIN{$a=$p=0}next unless $_;/^(\s*)/;' \
        -e '$l=length$1;next if$l==$p;$a+=(abs($l-$p)-$a)/$.;' \
        -e '$p=$l;END{print$a}' $i) $i
    done | sort -nr

And indented with: https://gist.github.com/bonsaiviking/8845871

whois-ip.nse was particularly mangled (probably my fault due to using
vim's built-in indentation script, but it could be structured better)
2014-02-06 23:25:28 +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
perdo
5ac6c7d64a Fixed errors found by nse_check_globals. 2012-06-06 22:23:02 +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
patrik
2e8519fd6a o [NSE] Made changes to the categories of the following scripts. Their new
categories are:
    - http-userdir-enum.nse (auth,intrusive)
    - mysql-users.nse (auth,intrusive)
    - http-wordpress-enum.nse (auth,intrusive,vuln)
    - krb5-enum-users.nse (auth,intrusive)
    - snmp-win32-users.nse (default,auth,safe)
    - smtp-enum-users.nse (auth,external,intrusive)
    - ncp-enum-users.nse (auth,safe)
    - smb-enum-users.nse (auth,intrusive)
  [Duarte Silva]
2011-10-22 19:00:33 +00:00
fyodor
92ceb70071 Duarte Silva asked that his email address be updated in these scripts. 2011-08-22 00:58:19 +00:00
djalal
caadf952e3 o [NSE] Updated the SMTP scripts to use the new SMTP Lua library. 2011-06-13 13:19:26 +00:00
david
0b4de98d24 Whitespace. 2011-02-21 22:59:34 +00:00
patrik
562ee68df0 Applied patch recieved from Josh Amishav-Zlatin that addresses the problem
with the 550 User Unkown message being handled incorrectly as described here:
http://seclists.org/nmap-dev/2011/q1/585
http://seclists.org/nmap-dev/2011/q1/511
[Patrik]
2011-02-20 20:49:58 +00:00
djalal
0a9764709f Use the correct script name in the usage example of the smtp-enum-users. Reported by Jamuse, who also contributed the patch. 2011-02-17 18:41:51 +00:00
david
5f7d7fe252 Add status code 553 (Relaying Denied) to the list of NOTPERMITTED codes in
smtp-enum-users.nse. Martin Holst Swende reported this.
2010-09-07 20:15:41 +00:00
david
f7b4900eac Include a message in the output (and quit trying users with the current method)
when smtp-enum-users hits an unhandled status code.
2010-09-07 20:13:05 +00:00
david
90e2d1dacd Fix spelling of identifier name (NOTPERMITED) in smtp-enum-users.nse. 2010-09-07 19:54:44 +00:00
david
23908b40a8 Fix a typo in the @usage of smtp-enum-users.nse; it said smtp-open-relay. 2010-09-07 19:07:07 +00:00
david
1ff1a4f892 First-pass copyediting on the remaining scripts. 2010-07-12 17:19:26 +00:00
david
4cdc50e95d Do copyediting of NSEDoc up through pgsql-brute. 2010-07-12 06:21:03 +00:00
david
5fa554266b Fix NSEDoc. 2010-03-31 20:28:14 +00:00
david
b63a586c40 Changes to smtp-enum-users.nse from Duarte Silva. The
smtp-enum-users.method script argument was changed to
smtp-enum-users.methods and now takes an array. 252 and 550 error codes
are handled now. In verbose mode, the method used is included in the
output.
2010-03-22 04:13:08 +00:00
david
2f00ea5cb7 Add smtp-enum-users.nse from Duarte Silva. 2010-03-13 04:03:26 +00:00