Nmap Development mailing list archives
Re: Re: Re: Re: Error when running nmap
From: Jo Avaran <avaran () bluemail ch>
Date: Sun, 2 Nov 2014 11:49:32 +0000 (GMT+00:00)
Hey Dan The script is running fine under Ubuntu :-\. Another question do you have a contact for the creator Patrik Karlsson? I wanted to ask him if he has a Version to automate the script for example Splunk. Meaning when you want to check a bunch of MD5 hashes. Regards Jo ----Ursprüngliche Nachricht---- Von : bonsaiviking () gmail com Datum : 02/11/2014 - 02:32 (UTC) An : avaran () bluemail ch Cc : dev () nmap org Betreff : Re: Re: Re: Error when running nmap Jo, First, try removing the first = like so: --script-args "http-virustotal.apikey=""etc.""" If that does not work, use the -d argument as the error suggests. This will show exactly what is causing the problem. Dan On Sat, Nov 1, 2014 at 2:26 PM, Jo Avaran <avaran () bluemail ch> wrote:
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:
- Error when running nmap Jo Avaran (Nov 01)
- Re: Error when running nmap Daniel Miller (Nov 01)
- Re: Error when running nmap Paulino Calderon (Nov 03)
- Re: Re: Error when running nmap Jo Avaran (Nov 03)
- Re: Re: Error when running nmap Daniel Miller (Nov 01)
- Re: Re: Re: Error when running nmap Jo Avaran (Nov 03)
- Re: Re: Re: Error when running nmap Daniel Miller (Nov 01)
- Re: Re: Re: Re: Error when running nmap Jo Avaran (Nov 03)
- Re: Error when running nmap Daniel Miller (Nov 01)