Nmap Development mailing list archives

Re: Re: Re: Error when running nmap


From: Jo Avaran <avaran () bluemail ch>
Date: Sat, 1 Nov 2014 19:26:08 +0000 (GMT)

Hi Dan

nmap --script http-virustotal 
--script-args="http-virustotal.apikey=""b315ef2a2bae16915a6cf187844b4686301314a148e5d380616a16246ffd8c30"",http-virustotal.checksum=""275a021bbfb6489e54d471899f7db9d1663fc695ec2fe2a2c4538aabf651fd0f"""
Starting Nmap 6.47 ( http://nmap.org ) at 2014-11-01 20:23 Mitteleuropõische Zei
t
Pre-scan script results:
|_http-virustotal: ERROR: Script execution failed (use -d to debug)
WARNING: No targets were specified, so 0 hosts scanned.
Nmap done: 0 IP addresses (0 hosts up) scanned in 1.39 seconds

:-\



----Ursprüngliche Nachricht----
Von : bonsaiviking () gmail com
Datum : 01/11/2014 - 19:25 (GMT)
An : avaran () bluemail ch
Cc : dev () nmap org
Betreff : Re: Re: Error when running nmap

Jo,

Windows quoting works a little differently. I don't completely
understand the rules, but essentially, single-quotes don't do what you
expect. Here's how to do it correctly:

nmap --script http-virustotal --script-args
"http-virustotal.apikey=""example"",http-virustotal.checksum=""12345"""

Generally:

1. Use "double quotes" around the entire argument to the --script-args
option. I prefer to use a space between the option and its arguments.
2. For any quotes within the argument, use """doubled"" double quotes".

Dan

On Sat, Nov 1, 2014 at 8:31 AM, Jo Avaran <avaran () bluemail ch> wrote:
Hi Dan

nmap --script http-virustotal 
--script-args='http-virustotal.apikey="b315ef2a2bae16915a6cf187844b4686301314a148e5d380616a16246ffd8c30",http-virustotal.checksum="c22a25b289141e13d8fa8af"'

but still the same error. Hence I found out that on Ubuntu it is working fine but not on Windows :-\


----Ursprüngliche Nachricht----
Von : bonsaiviking () gmail com
Datum : 01/11/2014 - 13:58 (GMT)
An : avaran () bluemail ch
Cc : dev () nmap org
Betreff : Re: Error when running nmap

Jo,

Thanks for pointing this out. Our documentation was incorrect on this
script; the script-args should all be prepended with the name of the
script. Here's your updated example:

nmap --script http-virustotal
--script-args='http-virustotal.apikey="example",http-virustotal.checksum="12345"'

Dan


_______________________________________________
Sent through the dev mailing list
http://nmap.org/mailman/listinfo/dev
Archived at http://seclists.org/nmap-dev/

Current thread: