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.
Jump to Post
Try something like this ...
import subprocess # use the full path you have scriptfile = r"C:\PortablePython126.96.36.199\Scripts\sqlmap.py" python3 = r"C:\PortablePython188.8.131.52\Python-Portable.exe" cmd = '-u "url.com" --batch' subprocess.call([python3, scriptfile, cmd])
All 7 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of 1.20 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.