cldrn / nmap-nse-scripts

My collection of nmap NSE scripts
http://calderonpale.com
954 stars 370 forks source link

How to excape special characters in Nmap command #19

Closed Aviril7 closed 1 year ago

Aviril7 commented 1 year ago

Am trying to brute force a test lab smikta.info with the command ~$ nmap -d --script http-form-brute --script-args http-form-brute.path=?method=login,brute.firstonly=true,http-form-brute.method=POST,http-form-brute.uservar=user_name,http-form-brute.passvar=user_pass,http-form-brute.onsuccess=Successfully smikta.info

and it keeps giving below quotes NSE: failed to initialize the script engine: /usr/bin/../share/nmap/nse_main.lua:1298:arguments did not parse! stack traceback: [C]: in function 'error' /usr/bin/../share/nmap/nse_main.lua:1298: in main chunk [C]: in ?

QUITTING!

And I was told to excape the special characters

How can I excape the special characters ? and = in the http-form-brute.path argument