Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- /* PHP Script
- Login - Logout - Change Data Login
- Created By Wildan Izzudin.
- (c) 2018 Underxploit
- */
- error_reporting(0);
- session_start();
- // --- Config --- //
- $username = "user";
- $password = "root";
- $code = "1234";
- // --- All Function --- //
- function pac($str) {
- echo $str;
- }
- function direct($str) {
- return header('Location: '.$str);
- }
- function get($str){
- return file_get_contents($str);
- }
- // --- Content --- //
- pac('<!DOCTYPE html>
- <html lang="en" >
- <head>
- <meta charset="UTF-8">
- <title>Login | Logout | Change Data Login - By Wildan Izzudin</title>
- <script>
- baseUrl = window.location.href.split("?")[0];
- window.history.pushState("name", "?", baseUrl);
- </script>
- <style>
- @import url("http://fonts.googleapis.com/css?family=Iceland");
- * {
- -webkit-box-sizing: border-box;
- -moz-box-sizing: border-box;
- box-sizing: border-box;
- }
- html, body {
- min-height: 100%;
- }
- body {
- background: #80DEEA;
- background: -moz-linear-gradient(-45deg, #80DEEA 0%, #283593 100%);
- background: -webkit-linear-gradient(-45deg, #80DEEA 0%, #283593 100%);
- background: -o-linear-gradient(-45deg, #80DEEA 0%, #283593 100%);
- background: -ms-linear-gradient(-45deg, #80DEEA 0%, #283593 100%);
- background: linear-gradient(135deg, #80DEEA 0%, #283593 100%);
- font-family: "Iceland";
- color: #FFFFFF;
- }
- .wrapper {
- width: 90%;
- max-width: 400px;
- margin: 5px auto;
- border-radius: 3px;
- background: rgba(255,255,255,0.1);
- }
- .alert {
- color: #BBDEFB;
- }
- a {
- text-decoration:none;
- color: #BBDEFB;
- }
- a:hover {
- color: #fff;
- transition: all 0.5s;
- }
- .intro-box {
- width: 90%;
- max-width: 400px;
- margin: 50px auto 0px auto;
- background: rgba(255,255,255,0.1);
- padding:5px;
- }
- .intro-box > .title {
- font-size: 26px;
- }
- .fields-box {
- padding: 18px 5%;
- }
- .fields-box label {
- display: inline-block;
- width: 100%;
- padding: 6px 12px;
- }
- .fields-box label span {
- display: block;
- width: 100%;
- margin-bottom: 4px;
- font-size: 16px;
- color: #BBDEFB;
- font-family: "Iceland";
- }
- .fields-box label input {
- width: 100%;
- padding: 8px;
- color: #29B6F6;
- background: #FFFFFF;
- background: rgba(255,255,255,0.9);
- border: none;
- outline: none;
- border-radius: 3px;
- font-family: "Iceland";
- font-size:16px;
- }
- @media only screen and (max-width: 520px){
- .fields-box label {
- width: 100%;
- }
- }
- button {
- display: inline-block;
- width: 54px;
- height: 54px;
- margin-top: 14px;
- font-size: 14px;
- font-weight: 700;
- color: #2196F3;
- background: rgba(255, 255, 255, 0.9);
- border: none;
- outline: none;
- border-radius: 100%;
- text-align: center;
- cursor: pointer;
- transition: ease .2s;
- font-family: "Iceland";
- }
- </style>
- </head><body>
- <div class="intro-box">
- <span class="title"><center>:: Link Bokep Jav ::</center><span>
- </div>
- <div class="wrapper">');
- if(isset($_POST['login'])) {
- if($_POST['user'] == $username AND $_POST['pass'] == $password AND $_POST['code'] == $code) {
- $_SESSION['username'] = $username;
- $_SESSION['code'] = $code;
- $_COOKIE[$username] = $password;
- setcookie('UNDERXPLOIT', md5($_SERVER['HTTP_HOST']));
- } else if(empty($_POST['user']) || empty($_POST['pass']) || empty($_POST['code'])) {
- pac('<br><span class="alert"><center>Form Can\'t be Empty !!</center></span>');
- } else {
- pac('<br><span class="alert"><center>Invalid Data Login !!</center></span>');
- }
- }
- if($_SESSION['username'] == $username && $_SESSION['code'] == $code) {
- pac('<div class="fields-box">');
- if(isset($_GET['out'])) {
- setcookie('UNDERXPLOIT', time() - 3600);
- unset($_SESSION['username']);
- unset($_SESSION['code']);
- direct($_SERVER['PHP_SELF']);
- }
- if(isset($_GET['change'])) {
- switch($_GET['change']) {
- // --- Change Username --- //
- case 'username':
- function change1($str){
- $cuser = "\$username = \"".$str."\";";
- $new = get($_SERVER['SCRIPT_FILENAME']);
- $new = preg_replace("/\\\$username\ *=\ *[\"\']*([a-zA-z0-9]*)[\"\']*;/is",$cuser,$new);
- return file_put_contents($_SERVER['SCRIPT_FILENAME'], $new);
- }
- if(isset($_POST['chus'])) {
- if(empty($_POST['nuser'])) {
- pac('<br><span class="alert"><center>Enter New Username</center></span>');
- } else if(empty($_POST['cuser'])) {
- pac('<br><span class="alert"><center>Confirm Username !!</center></span>');
- }
- else if($_POST['nuser'] != $_POST['cuser']) {
- pac('<br><span class="alert"><center>Username Do Not Match !!</center></span>');
- } else if(change1($_POST['nuser'])) {
- pac('<br><span class="alert"><center>Username Changed to --> '.$_POST['cuser'].'</center></span>');
- $_SESSION['username'] = $_POST['nuser'];
- } else {
- pac('<br><span class="alert"><center>Unable to Change Username !!</center></span>');
- }
- }
- pac('<div class="fields-box">
- <form action="?change=username" method="POST">
- <label>
- <span>New Username :</span>
- <input type="text" name="nuser" id="nuser">
- </label>
- <br>
- <label>
- <span>Confirm Username :</span>
- <input type="text" name="cuser" id="cuser">
- </label>
- <br>
- <center><button type="submit" name="chus">OK</button></center>
- </form>');
- break;
- // --- Change Password --- //
- case 'password':
- function change2($str){
- $cpas = "\$password = \"".$str."\";";
- $new = get($_SERVER['SCRIPT_FILENAME']);
- $new = preg_replace("/\\\$password\ *=\ *[\"\']*([a-zA-z0-9]*)[\"\']*;/is", $cpas, $new);
- return file_put_contents($_SERVER['SCRIPT_FILENAME'], $new);
- }
- if(isset($_POST['chpa'])) {
- if(empty($_POST['npas'])) {
- pac('<br><span class="alert"><center>Enter New Password !!</center></span>');
- } else if(empty($_POST['cpas'])) {
- pac('<br><span class="alert"><center>Confirm Password !!</center></span>');
- } else if(change2($_POST['npas'])) {
- pac('<br><span class="alert"><center>Password Changed to --> '.$_POST['cpas'].'</center></span>');
- } else if($_POST['npas'] != $_POST['cpas']) {
- pac('<br><span class="alert"><center>Password Do Not Match !!</center></span>');
- } else {
- pac('<br><span class="alert"><center>Unable to Change Password !!</center></span>');
- }
- }
- pac('<div class="fields-box">
- <form action="?change=password" method="POST">
- <label>
- <span>New Password :</span>
- <input type="text" name="npas" id="npas">
- </label>
- <br>
- <label>
- <span>Confirm Password :</span>
- <input type="text" name="cpas" id="cpas">
- </label>
- <br>
- <center><button type="submit" name="chpa">OK</button></center>
- </form>');
- break;
- // --- Change Code --- //
- case 'code':
- function change3($str){
- $ccode = "\$code = \"".$str."\";";
- $new = get($_SERVER['SCRIPT_FILENAME']);
- $new = preg_replace("/\\\$code\ *=\ *[\"\']*([a-zA-z0-9]*)[\"\']*;/is", $ccode, $new);
- return file_put_contents($_SERVER['SCRIPT_FILENAME'], $new);
- }
- if(isset($_POST['chco'])) {
- if(empty($_POST['ncode'])) {
- pac('<br><span class="alert"><center>Enter New Code !!</center></span>');
- } else if(empty($_POST['ccode'])) {
- pac('<br><span class="alert"><center>Confirm Code !!</center></span>');
- } else if(change3($_POST['ncode'])) {
- pac('<br><span class="alert"><center>Code Changed to --> '.$_POST['ccode'].'</center></span>');
- $_SESSION['code'] = $_POST['ncode'];
- } else if($_POST['ncode'] != $_POST['ccode']) {
- pac('<br><span class="alert"><center>Code Do Not Match !!</center></span>');
- } else {
- pac('<br><span class="alert"><center>Unable to Change Code !!</center></span>');
- }
- }
- pac('<div class="fields-box">
- <form action="?change=code" method="POST">
- <label>
- <span>New Code :</span>
- <input type="number" name="ncode" id="ncode">
- </label>
- <br>
- <label>
- <span>Confirm Code :</span>
- <input type="number" name="ccode" id="ccode">
- </label>
- <br>
- <center><button type="submit" name="chco">OK</button></center>
- </form>');
- break;
- }
- } else {
- 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>');
- }
- pac('</div>');
- } else {
- pac('<div class="fields-box">
- <form action="" method="POST">
- <label>
- <span>Username :</span>
- <input type="text" name="user">
- </label>
- <br>
- <label>
- <span>Password :</span>
- <input type="password" name="pass">
- </label>
- <br>
- <label>
- <span>Code :</span>
- <input type="number" name="code">
- </label>
- <center><button type="submit" name="login">OK</button></center>
- </form>');
- }
- pac('</div></body></html>');
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement