sqlmap配置好后运行报错
错误展示: C:\Program Files\Python39\sqlmap>sqlmap.py sqlmap -u
“http://localhost/sqli-labs/Less-1/?id=1”
___
H ___ ["]__ ___ ___ {1.8.1.1#dev} |_ -| . ["] | .'| . | || [,]|||__,| |
||V… || https://sqlmap.orgUsage: sqlmap.py [options]
sqlmap.py: error: missing a mandatory option (-d, -u, -l, -m, -r, -g,
-c, --wizard, --shell, --update, --purge, --list-tampers or --dependencies). Use -h for basic and -hh for advanced helpPress Enter to continue…
解决方式
- win+R打开命令窗口输入regedit,打开注册表编辑器找到路径\HKEY_CLASSES_ROOT\Applications\python.exe\shell\open\comman双击打开command
- 双击打开默认值在其后添加空格+*变为下面的,直接复制就OK
"C:\Program Files\Python39\python.exe" "%1" %*
- 配置完成win+R打开命令窗口,重新输入命令发现运行成功