Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php session_start();
- /* Starts the session */
- $url="Server IP: ".gethostbyname($_SERVER["HTTP_HOST"])."\nAttacker Location:http://tools.sprotechs.com/location.php?ip=".$_SERVER['REMOTE_ADDR']." Url: ".$_SERVER['HTTP_HOST'].$_SERVER['REQUEST_URI']."\nAttacker IP: ".$_SERVER['REMOTE_ADDR'].(isset($_SERVER['HTTP_X_FORWARDED_FOR'])?'('.$_SERVER['HTTP_X_FORWARDED_FOR'].')':'');
- @mail("andrewchris1337@gmail.com","Message:Hi This is Blackscorpion Honeypot.",$url);
- @mail("andrewchris1337@gmail.com","Message:Hi This is Blackscorpion Honeypot.",$url);
- if(isset($_POST['Submit'])){
- $logins = array('admin' => 'blackscorpion','username1' => 'password1','username2' => 'password2');
- /* Check and assign submitted Username and Password to new variable */$Username = isset($_POST['Username']) ? $_POST['Username'] : '';
- $Password = isset($_POST['Password']) ? $_POST['Password'] : '';
- if (isset($logins[$Username]) && $logins[$Username] == $Password){
- $_SESSION['UserData']['Username']=$logins[$Username];
- header("location:dashboard.php");
- exit;
- } else {
- /*Unsuccessful attempt: Set error message */$msg="<span style='color:red'>Invalid Login Details</span>";
- }
- }
- ?>
- <!DOCTYPE html>
- <html>
- <head>
- <meta charset="UTF-8">
- <title>Sprotechs - Admin Login</title>
- <style>
- @import url(http://fonts.googleapis.com/css?family=Exo:100,200,400);
- @import url(http://fonts.googleapis.com/css?family=Source+Sans+Pro:700,400,300);
- body{
- margin: 0;
- padding: 0;
- background: #fff;
- color: #fff;
- font-family: Arial;
- font-size: 12px;
- }
- .body{
- position: absolute;
- top: -20px;
- left: -20px;
- right: -40px;
- bottom: -40px;
- width: auto;
- height: auto;
- background-image: url(http://ginva.com/wp-content/uploads/2012/07/city-skyline-wallpapers-008.jpg);
- background-size: cover;
- -webkit-filter: blur(5px);
- z-index: 0;
- }
- .grad{
- position: absolute;
- top: -20px;
- left: -20px;
- right: -40px;
- bottom: -40px;
- width: auto;
- height: auto;
- background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,rgba(0,0,0,0)), color-stop(100%,rgba(0,0,0,0.65))); /* Chrome,Safari4+ */
- z-index: 1;
- opacity: 0.7;
- }
- .header{
- position: absolute;
- top: calc(50% - 35px);
- left: calc(50% - 255px);
- z-index: 2;
- }
- .header div{
- float: left;
- color: #fff;
- font-family: 'Exo', sans-serif;
- font-size: 35px;
- font-weight: 200;
- }
- .header div span{
- color: #5379fa !important;
- }
- .login{
- position: absolute;
- top: calc(50% - 75px);
- left: calc(50% - 50px);
- height: 150px;
- width: 350px;
- padding: 10px;
- z-index: 2;
- }
- .login input[type=text]{
- width: 250px;
- height: 30px;
- background: transparent;
- border: 1px solid rgba(255,255,255,0.6);
- border-radius: 2px;
- color: #fff;
- font-family: 'Exo', sans-serif;
- font-size: 16px;
- font-weight: 400;
- padding: 4px;
- }
- .login input[type=password]{
- width: 250px;
- height: 30px;
- background: transparent;
- border: 1px solid rgba(255,255,255,0.6);
- border-radius: 2px;
- color: #fff;
- font-family: 'Exo', sans-serif;
- font-size: 16px;
- font-weight: 400;
- padding: 4px;
- margin-top: 10px;
- }
- .login input[type=button]{
- width: 260px;
- height: 35px;
- background: #fff;
- border: 1px solid #fff;
- cursor: pointer;
- border-radius: 2px;
- color: #a18d6c;
- font-family: 'Exo', sans-serif;
- font-size: 16px;
- font-weight: 400;
- padding: 6px;
- margin-top: 10px;
- }
- .login input[type=button]:hover{
- opacity: 0.8;
- }
- .login input[type=button]:active{
- opacity: 0.6;
- }
- .login input[type=text]:focus{
- outline: none;
- border: 1px solid rgba(255,255,255,0.9);
- }
- .login input[type=password]:focus{
- outline: none;
- border: 1px solid rgba(255,255,255,0.9);
- }
- .login input[type=button]:focus{
- outline: none;
- }
- ::-webkit-input-placeholder{
- color: rgba(255,255,255,0.6);
- }
- ::-moz-input-placeholder{
- color: rgba(255,255,255,0.6);
- }
- </style>
- <script src="js/prefixfree.min.js"></script>
- </head>
- <body>
- <div class="body"></div>
- <div class="grad"></div>
- <div class="header">
- <div>Spro<span>techs</span></div>
- </div>
- <br>
- <div class="login">
- <form action="" method="post" name="Login_Form">
- <table width="400" border="0" align="center" cellpadding="5" cellspacing="1" class="Table">
- <?php if(isset($msg)){?>
- <tr>
- <td colspan="2" align="center" valign="top"><?php echo $msg;?></td>
- </tr>
- <?php } ?>
- <tr>
- <td colspan="2" align="left" valign="top"><h3>Login</h3></td>
- </tr>
- <tr>
- <td align="right" valign="top">Username</td>
- <td><input name="Username" type="text" class="Input"></td>
- </tr>
- <tr>
- <td align="right">Password</td>
- <td><input name="Password" type="password" class="Input"></td>
- </tr>
- <tr>
- <td> </td>
- <td><input name="Submit" type="submit" value="Login" class="Button3"></td>
- </tr>
- </table>
- </form>
- </div>
- <script src='http://codepen.io/assets/libs/fullpage/jquery.js'></script>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement