Hello. I'm running injection tests on an SQL database and I found a good script to do so....But it takes command line parameters which I can't execute properly because the command would normally look somthing like this......
python sqlmap.py -u "url.com" --batch. But I can't seem to do that because I have portable python. Can somebody please help.
Jack_9
-4
Junior Poster
Recommended Answers
Jump to PostTry something like this ...
import subprocess # use the full path you have scriptfile = r"C:\PortablePython3.2.5.1\Scripts\sqlmap.py" python3 = r"C:\PortablePython3.2.5.1\Python-Portable.exe" cmd = '-u "url.com" --batch' subprocess.call([python3, scriptfile, cmd])
Jump to PostYou have to supply the full path of your script file and Python.exe file.
Are you sure your command sequence is correct?
All 7 Replies
vegaseat
1,735
DaniWeb's Hypocrite
Team Colleague
Jack_9
-4
Junior Poster
Jack_9
-4
Junior Poster
vegaseat
1,735
DaniWeb's Hypocrite
Team Colleague
Jack_9
-4
Junior Poster
Jack_9
-4
Junior Poster
HiHe
174
Junior Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.