sqlmap icon indicating copy to clipboard operation
sqlmap copied to clipboard

--os-shell how to specify the default web application language, so that it is easy to use the --batch parameter

Open qinghuan1998 opened this issue 3 years ago • 3 comments

As mentioned above, I want to write a sqlmap shell command to test whether a certain security device can normally capture the alarm of sql injection. My goal is fixed. At present, I use the following command, but in the interaction of selecting the web application language , I did not find the corresponding configuration item. sqlmap -u http://192.168.1.1/sqli-labs/Less-1/?id=1 --os-shell --web-root=C:\phpstudy_pro\WWW --batch image can you tell me what should i do?

qinghuan1998 avatar Apr 03 '23 07:04 qinghuan1998

I want a statement similar to sqlmap -u url --default-lang=php --os-shell, which can specify the language of the default web application when using --os-shell, so that it can be processed with --batch

qinghuan1998 avatar Apr 03 '23 07:04 qinghuan1998

have you tried --answers? (e.g. --answers="language=php")

stamparm avatar Apr 03 '23 13:04 stamparm

have you tried --answers? (e.g. --answers="language=php")

This solved my problem, sorry, I didn't notice this configuration item when I read the sqlmap manual.

qinghuan1998 avatar Apr 10 '23 12:04 qinghuan1998