Nmap Development mailing list archives

Re: dev Digest, Vol 110, Issue 8


From: Jay Bosamiya <jaybosamiya () gmail com>
Date: Sun, 11 May 2014 11:32:02 +0530

Hi Bart,

Can you please try running the following instead and report back with the results (whether it worked as it should or not)? It should be able to run exactly what you intended to.

nmap -p 22,23,161,162,666,1336,80,8080,8081,2323,2222 -T4 -v -Pn "-PU161,162" --script snmp-sysdescr --script-args 
snmpcommunity=\'biG=d0tcat\' TESTIPADRES

(Note: There is two \' added to the command that you had given)

What the \' do is that they change biG=d0tcat into 'biG=d0tcat' so that there is no problem with the "=" anymore.

Regards,
Jay Bosamiya

On Fri, 9 May 2014 15:44:06 +0200, Bart wrote:
Hello,

Hope you guys can help me , with this bug.
The purpose of my scan is to find snmp enabled devices and intresting ports
Im using nmap/znmap 6.46 on windows and the latest svn-checkout dated
friday may the 9th 2014

My isp use a private community string with a "=" in it, that nmap cant
handle i think.
The command line use .

nmap -p 22,23,161,162,666,1336,80,8080,8081,2323,2222 -T4 -v -Pn "-PU161,162
" --script snmp-sysdescr --script-args snmpcommunity=biG=d0tcat TESTIPADRES

the out put is

Starting Nmap 6.46 (http://nmap.org  ) at 2014-05-09 13:33 W. Europe
Daylight Time

NSE: failed to initialize the script engine:

C:\Program Files (x86)\Nmap/nse_main.lua:1178: Value around '=d0tcat}'
is invalid or is unterminated by a valid separator

stack traceback:

[C]: in function 'error'

C:\Program Files (x86)\Nmap/nse_main.lua:1178: in function 'parse_string'

C:\Program Files (x86)\Nmap/nse_main.lua:1201: in function 'parse_table'

C:\Program Files (x86)\Nmap/nse_main.lua:1219: in main chunk

[C]: in ?


I hope this msg can help solving a bug and optimize the program
I can reproduce e erro both on linux and windows.


-- Met vriendelijke groet / With kind regards, Bart

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


Current thread: