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

21 Commits

Author SHA1 Message Date
dmiller
856b90337a Document some undocumented script-args. 2015-11-25 03:01:29 +00:00
dmiller
f4619edece Update http urls for nmap.org to https 2015-11-05 20:41:05 +00:00
dmiller
4d106cbe23 Remove unneeded requires 2015-02-28 12:43:59 +00:00
dmiller
10dce0382c Clean up string concatenations
Building a string with var = var .. "something" has miserable time
complexities. This commit cleans up a lot of that in scripts, focusing
on packing of data with bin.pack and concatenations within loops.
Additionally, a few instances were replaced with string.rep
2015-02-25 19:58:42 +00:00
batrick
c94d5970ff stdnse.print_debug -> stdnse.debug1
sed -i 's/stdnse.print_debug("%s: \([^"]*\)", SCRIPT_NAME/stdnse.debug1("\1"/' *.nse
2014-08-01 21:31:04 +00:00
david
201a5130a2 Fix nsedoc issues (missing ---, mostly)
Originally committed by dmiller but recommitted by david after recovery
from backup.
2013-04-12 17:29:16 +00:00
tomsellers
6efffce8a9 Address an false positive issue caused http-git interacting with HTTP servers that report 200 OK to all requests. 2013-03-07 02:05:23 +00:00
david
43f28b8f4a Add structured output to http-get.nse.
This patch is by Alex Weber.
http://seclists.org/nmap-dev/2012/q4/434
2012-12-13 04:16:01 +00:00
david
8f3165f7a6 Don't substitute nonprinting characters in http-git.
NSE already escapes output everywhere. More importantly, the call to
gsub returns two values, which were being treated as structured output
and unstructured output. The second return value is an integer count of
substitutions, so what you would see in normal output was
|_http-git: 0
while what used to be normal output was going to XML.

Alex Weber noticed that the script was not working.
http://seclists.org/nmap-dev/2012/q4/397
2012-12-08 10:22:55 +00:00
david
e78540e9a5 Fix regex in http-git.
Patch by Alex Weber.
http://seclists.org/nmap-dev/2012/q4/397
2012-12-08 10:22:54 +00:00
fyodor
f13353a610 Minor description updates (and sometimes just text reformatting) for some of the 85 new scripts(!) since Nmap 6.01 2012-11-15 23:05:31 +00:00
henri
f35cf8b93a Fixed indentation. 2012-09-05 20:55:42 +00:00
henri
902000afad Report an error instead of crashing when pipeline_go() returns nil. 2012-09-05 20:55:04 +00:00
patrik
bca0025032 nse_check_global cleanup 2012-07-29 09:26:23 +00:00
david
5e588b53da More direct printing of remotes in http-git.
Show the uninterpreted remote URLs in every case. When matching specific
services, show the guesses about where the source might be hosted, but
remove verbose interpretation like "accessed over SSH".

Before:
|   Remote: git@github.com:skullspace/breachdb.git
|   GitHub remote: skullspace/breachdb (accessed over SSH)
|_   -> Source might be at https://github.com/skullspace/breachdb

After:
|   Remote: git@github.com:skullspace/breachdb.git
|_   -> Source might be at https://github.com/skullspace/breachdb
2012-07-26 06:00:48 +00:00
david
c367d03916 Extract raw remote URLs in http-git. 2012-07-26 06:00:47 +00:00
david
8f907ae853 Local variable. 2012-07-26 06:00:45 +00:00
ron
ea5e4e07ae Updated http-git - bugfixes, and also handles multiple roots with script-args 2012-07-25 01:47:43 +00:00
patrik
217b27bace nse_check_globals cleanup 2012-07-24 10:08:43 +00:00
ron
8b42180f31 Removed an errant call to ap(config) that ended up in the committed version of the script 2012-07-20 04:43:55 +00:00
david
72b0056fb5 Add http-get.nse by Alex Weber.
http://seclists.org/nmap-dev/2012/q2/935
2012-07-19 18:15:02 +00:00