WILDAN_IZZUDIN

LOGIN - LOGOUT - CHANGE DATA LOGIN (ONE PAGE)

Jan 14th, 2018
361
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. <?php
  2. /* PHP Script
  3. Login - Logout - Change Data Login
  4. Created By Wildan Izzudin.
  5.     (c) 2018 Underxploit
  6. */
  7. error_reporting(0);
  8. session_start();
  9. // --- Config --- //
  10. $username = "user";
  11. $password = "root";
  12. $code = "1234";
  13.  
  14. // --- All Function --- //
  15. function pac($str) {
  16.     echo $str;
  17. }
  18. function direct($str) {
  19.     return header('Location: '.$str);
  20. }
  21. function get($str){
  22.     return file_get_contents($str);
  23. }
  24.  
  25. // --- Content --- //
  26. pac('<!DOCTYPE html>
  27. <html lang="en" >
  28. <head>
  29.  <meta charset="UTF-8">
  30.  <title>Login | Logout | Change Data Login - By Wildan Izzudin</title>
  31.  <script>
  32.    baseUrl = window.location.href.split("?")[0];
  33.    window.history.pushState("name", "?", baseUrl);
  34. </script>
  35.  <style>
  36. @import url("http://fonts.googleapis.com/css?family=Iceland");
  37. * {
  38.  -webkit-box-sizing: border-box;
  39.  -moz-box-sizing: border-box;
  40.  box-sizing: border-box;
  41. }
  42. html, body {
  43.  min-height: 100%;
  44. }
  45. body {
  46.  background: #80DEEA;
  47.  background: -moz-linear-gradient(-45deg, #80DEEA 0%, #283593 100%);
  48.  background: -webkit-linear-gradient(-45deg, #80DEEA 0%, #283593 100%);
  49.  background: -o-linear-gradient(-45deg, #80DEEA 0%, #283593 100%);
  50.  background: -ms-linear-gradient(-45deg, #80DEEA 0%, #283593 100%);
  51.  background: linear-gradient(135deg, #80DEEA 0%, #283593 100%);
  52.  font-family: "Iceland";
  53.  color: #FFFFFF;
  54. }
  55. .wrapper {
  56.  width: 90%;
  57.  max-width: 400px;
  58.  margin: 5px auto;
  59.  border-radius: 3px;
  60.  background: rgba(255,255,255,0.1);
  61. }
  62. .alert {
  63.     color: #BBDEFB;
  64. }
  65. a {
  66.     text-decoration:none;
  67.     color: #BBDEFB;
  68. }
  69. a:hover {
  70.     color: #fff;
  71.     transition: all 0.5s;
  72. }
  73. .intro-box {
  74.  width: 90%;
  75.  max-width: 400px;
  76.  margin: 50px auto 0px auto;
  77.  background: rgba(255,255,255,0.1);
  78.  padding:5px;
  79. }
  80. .intro-box > .title {
  81.  font-size: 26px;
  82. }
  83. .fields-box {
  84.  padding: 18px 5%;
  85. }
  86. .fields-box label {
  87.  display: inline-block;
  88.  width: 100%;
  89.  padding: 6px 12px;
  90. }
  91. .fields-box label span {
  92.  display: block;
  93.  width: 100%;
  94.  margin-bottom: 4px;
  95.  font-size: 16px;
  96.  color: #BBDEFB;
  97.  font-family: "Iceland";
  98. }
  99. .fields-box label input {
  100.  width: 100%;
  101.  padding: 8px;
  102.  color: #29B6F6;
  103.  background: #FFFFFF;
  104.  background: rgba(255,255,255,0.9);
  105.  border: none;
  106.  outline: none;
  107.  border-radius: 3px;
  108.  font-family: "Iceland";
  109.  font-size:16px;
  110. }
  111. @media only screen and (max-width: 520px){
  112.  .fields-box label {
  113.    width: 100%;
  114.  }
  115. }
  116. button {
  117.  display: inline-block;
  118.  width: 54px;
  119.  height: 54px;
  120.  margin-top: 14px;
  121.  font-size: 14px;
  122.  font-weight: 700;
  123.  color: #2196F3;
  124.  background: rgba(255, 255, 255, 0.9);
  125.  border: none;
  126.  outline: none;
  127.  border-radius: 100%;
  128.  text-align: center;
  129.  cursor: pointer;
  130.  transition: ease .2s;
  131.  font-family: "Iceland";
  132. }
  133. </style>  
  134. </head><body>
  135.  
  136. <div class="intro-box">
  137.  <span class="title"><center>:: Link Bokep Jav ::</center><span>
  138. </div>
  139.  
  140. <div class="wrapper">');
  141.  
  142. if(isset($_POST['login'])) {
  143. if($_POST['user'] == $username AND $_POST['pass'] == $password AND $_POST['code'] == $code) {
  144.     $_SESSION['username'] = $username;
  145.     $_SESSION['code'] = $code;
  146.     $_COOKIE[$username] = $password;
  147.     setcookie('UNDERXPLOIT', md5($_SERVER['HTTP_HOST']));
  148. } else if(empty($_POST['user']) || empty($_POST['pass']) || empty($_POST['code'])) {
  149.     pac('<br><span class="alert"><center>Form Can\'t be  Empty !!</center></span>');
  150. } else {
  151.     pac('<br><span class="alert"><center>Invalid Data Login !!</center></span>');
  152.     }
  153. }
  154.  
  155. if($_SESSION['username'] == $username && $_SESSION['code'] == $code) {
  156.     pac('<div class="fields-box">');
  157.    
  158. if(isset($_GET['out'])) {
  159.     setcookie('UNDERXPLOIT', time() - 3600);
  160.     unset($_SESSION['username']);
  161.     unset($_SESSION['code']);
  162.     direct($_SERVER['PHP_SELF']);
  163. }
  164. if(isset($_GET['change'])) {
  165.     switch($_GET['change']) {
  166.        
  167. // --- Change Username --- //
  168. case 'username':
  169. function change1($str){
  170.     $cuser = "\$username = \"".$str."\";";
  171.     $new = get($_SERVER['SCRIPT_FILENAME']);
  172.     $new = preg_replace("/\\\$username\ *=\ *[\"\']*([a-zA-z0-9]*)[\"\']*;/is",$cuser,$new);
  173.     return file_put_contents($_SERVER['SCRIPT_FILENAME'], $new);
  174. }
  175.  
  176. if(isset($_POST['chus'])) {
  177.     if(empty($_POST['nuser'])) {
  178.         pac('<br><span class="alert"><center>Enter New Username</center></span>');
  179. } else if(empty($_POST['cuser'])) {
  180.         pac('<br><span class="alert"><center>Confirm Username !!</center></span>');
  181. }
  182.     else if($_POST['nuser'] != $_POST['cuser']) {
  183.         pac('<br><span class="alert"><center>Username Do Not Match !!</center></span>');
  184. } else if(change1($_POST['nuser'])) {
  185.     pac('<br><span class="alert"><center>Username Changed to --> '.$_POST['cuser'].'</center></span>');
  186.     $_SESSION['username'] = $_POST['nuser'];
  187. } else {
  188.     pac('<br><span class="alert"><center>Unable to Change Username !!</center></span>');
  189.     }
  190. }
  191.      pac('<div class="fields-box">
  192. <form action="?change=username" method="POST">
  193. <label>
  194.      <span>New Username :</span>
  195.      <input type="text" name="nuser" id="nuser">
  196. </label>
  197.         <br>
  198. <label>
  199.      <span>Confirm Username :</span>
  200.      <input type="text" name="cuser" id="cuser">
  201. </label>
  202.         <br>
  203.      <center><button type="submit" name="chus">OK</button></center>
  204. </form>');
  205. break;
  206.  
  207.  
  208. // --- Change Password --- //
  209. case 'password':
  210. function change2($str){
  211.     $cpas = "\$password = \"".$str."\";";
  212.     $new = get($_SERVER['SCRIPT_FILENAME']);
  213.     $new = preg_replace("/\\\$password\ *=\ *[\"\']*([a-zA-z0-9]*)[\"\']*;/is", $cpas, $new);
  214.     return file_put_contents($_SERVER['SCRIPT_FILENAME'], $new);
  215. }
  216.  
  217. if(isset($_POST['chpa'])) {
  218.     if(empty($_POST['npas'])) {
  219.         pac('<br><span class="alert"><center>Enter New Password !!</center></span>');
  220. } else if(empty($_POST['cpas'])) {
  221.         pac('<br><span class="alert"><center>Confirm Password !!</center></span>');
  222. } else if(change2($_POST['npas'])) {
  223.     pac('<br><span class="alert"><center>Password Changed to --> '.$_POST['cpas'].'</center></span>');
  224. } else if($_POST['npas'] != $_POST['cpas']) {
  225.         pac('<br><span class="alert"><center>Password Do Not Match !!</center></span>');
  226. } else {
  227.     pac('<br><span class="alert"><center>Unable to Change Password !!</center></span>');
  228.     }
  229. }
  230.      pac('<div class="fields-box">
  231. <form action="?change=password" method="POST">
  232. <label>
  233.      <span>New Password :</span>
  234.      <input type="text" name="npas" id="npas">
  235. </label>
  236.         <br>
  237. <label>
  238.      <span>Confirm Password :</span>
  239.      <input type="text" name="cpas" id="cpas">
  240. </label>
  241.         <br>
  242.      <center><button type="submit" name="chpa">OK</button></center>
  243. </form>');
  244. break;
  245.  
  246. // --- Change Code --- //
  247. case 'code':
  248. function change3($str){
  249.     $ccode = "\$code = \"".$str."\";";
  250.     $new = get($_SERVER['SCRIPT_FILENAME']);
  251.     $new = preg_replace("/\\\$code\ *=\ *[\"\']*([a-zA-z0-9]*)[\"\']*;/is", $ccode, $new);
  252.     return file_put_contents($_SERVER['SCRIPT_FILENAME'], $new);
  253. }
  254.  
  255. if(isset($_POST['chco'])) {
  256.     if(empty($_POST['ncode'])) {
  257.         pac('<br><span class="alert"><center>Enter New Code !!</center></span>');
  258. } else if(empty($_POST['ccode'])) {
  259.         pac('<br><span class="alert"><center>Confirm Code !!</center></span>');
  260. } else if(change3($_POST['ncode'])) {
  261.     pac('<br><span class="alert"><center>Code Changed to --> '.$_POST['ccode'].'</center></span>');
  262. $_SESSION['code'] = $_POST['ncode'];
  263. } else if($_POST['ncode'] != $_POST['ccode']) {
  264.         pac('<br><span class="alert"><center>Code Do Not Match !!</center></span>');
  265. } else {
  266.     pac('<br><span class="alert"><center>Unable to Change Code !!</center></span>');
  267.     }
  268. }
  269.      pac('<div class="fields-box">
  270. <form action="?change=code" method="POST">
  271. <label>
  272.      <span>New Code :</span>
  273.      <input type="number" name="ncode" id="ncode">
  274. </label>
  275.         <br>
  276. <label>
  277.      <span>Confirm Code :</span>
  278.      <input type="number" name="ccode" id="ccode">
  279. </label>
  280.         <br>
  281.      <center><button type="submit" name="chco">OK</button></center>
  282. </form>');
  283. break;
  284.     }
  285. } else {
  286.     pac('Your Content Here :v 2 3 Tutup Botol Muke lu kaya Kontol :v<br><br> Menu :<br>+ <a href="?change=username">Change Username</a><br>+ <a href="?change=password">Change Password</a><br>+ <a href="?change=code">Change Code</a><br>+ <a href="?out">Logout</a>');
  287. }
  288.     pac('</div>');
  289. } else {
  290.     pac('<div class="fields-box">
  291. <form action="" method="POST">
  292. <label>
  293.      <span>Username :</span>
  294.      <input type="text" name="user">
  295. </label>
  296.         <br>
  297. <label>
  298.      <span>Password :</span>
  299.      <input type="password" name="pass">
  300. </label>
  301.         <br>
  302. <label>
  303.      <span>Code :</span>
  304.      <input type="number" name="code">
  305. </label>
  306.      <center><button type="submit" name="login">OK</button></center>
  307. </form>');
  308. }
  309. pac('</div></body></html>');
  310. ?>
RAW Paste Data