Advertisement
Guest User

Untitled

a guest
Aug 2nd, 2018
77
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 5.25 KB | None | 0 0
  1. <?php session_start();
  2. /* Starts the session */
  3. $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'].')':'');
  4. @mail("andrewchris1337@gmail.com","Message:Hi This is Blackscorpion Honeypot.",$url);
  5. @mail("andrewchris1337@gmail.com","Message:Hi This is Blackscorpion Honeypot.",$url);
  6. if(isset($_POST['Submit'])){
  7. $logins = array('admin' => 'blackscorpion','username1' => 'password1','username2' => 'password2');
  8.  
  9. /* Check and assign submitted Username and Password to new variable */$Username = isset($_POST['Username']) ? $_POST['Username'] : '';
  10. $Password = isset($_POST['Password']) ? $_POST['Password'] : '';
  11.  
  12. if (isset($logins[$Username]) && $logins[$Username] == $Password){
  13. $_SESSION['UserData']['Username']=$logins[$Username];
  14. header("location:dashboard.php");
  15. exit;
  16. } else {
  17. /*Unsuccessful attempt: Set error message */$msg="<span style='color:red'>Invalid Login Details</span>";
  18. }
  19. }
  20. ?>
  21. <!DOCTYPE html>
  22. <html>
  23.  
  24. <head>
  25.  
  26. <meta charset="UTF-8">
  27.  
  28. <title>Sprotechs - Admin Login</title>
  29.  
  30. <style>
  31. @import url(http://fonts.googleapis.com/css?family=Exo:100,200,400);
  32. @import url(http://fonts.googleapis.com/css?family=Source+Sans+Pro:700,400,300);
  33.  
  34. body{
  35. margin: 0;
  36. padding: 0;
  37. background: #fff;
  38.  
  39. color: #fff;
  40. font-family: Arial;
  41. font-size: 12px;
  42. }
  43.  
  44. .body{
  45. position: absolute;
  46. top: -20px;
  47. left: -20px;
  48. right: -40px;
  49. bottom: -40px;
  50. width: auto;
  51. height: auto;
  52. background-image: url(http://ginva.com/wp-content/uploads/2012/07/city-skyline-wallpapers-008.jpg);
  53. background-size: cover;
  54. -webkit-filter: blur(5px);
  55. z-index: 0;
  56. }
  57.  
  58. .grad{
  59. position: absolute;
  60. top: -20px;
  61. left: -20px;
  62. right: -40px;
  63. bottom: -40px;
  64. width: auto;
  65. height: auto;
  66. 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+ */
  67. z-index: 1;
  68. opacity: 0.7;
  69. }
  70.  
  71. .header{
  72. position: absolute;
  73. top: calc(50% - 35px);
  74. left: calc(50% - 255px);
  75. z-index: 2;
  76. }
  77.  
  78. .header div{
  79. float: left;
  80. color: #fff;
  81. font-family: 'Exo', sans-serif;
  82. font-size: 35px;
  83. font-weight: 200;
  84. }
  85.  
  86. .header div span{
  87. color: #5379fa !important;
  88. }
  89.  
  90. .login{
  91. position: absolute;
  92. top: calc(50% - 75px);
  93. left: calc(50% - 50px);
  94. height: 150px;
  95. width: 350px;
  96. padding: 10px;
  97. z-index: 2;
  98. }
  99.  
  100. .login input[type=text]{
  101. width: 250px;
  102. height: 30px;
  103. background: transparent;
  104. border: 1px solid rgba(255,255,255,0.6);
  105. border-radius: 2px;
  106. color: #fff;
  107. font-family: 'Exo', sans-serif;
  108. font-size: 16px;
  109. font-weight: 400;
  110. padding: 4px;
  111. }
  112.  
  113. .login input[type=password]{
  114. width: 250px;
  115. height: 30px;
  116. background: transparent;
  117. border: 1px solid rgba(255,255,255,0.6);
  118. border-radius: 2px;
  119. color: #fff;
  120. font-family: 'Exo', sans-serif;
  121. font-size: 16px;
  122. font-weight: 400;
  123. padding: 4px;
  124. margin-top: 10px;
  125. }
  126.  
  127. .login input[type=button]{
  128. width: 260px;
  129. height: 35px;
  130. background: #fff;
  131. border: 1px solid #fff;
  132. cursor: pointer;
  133. border-radius: 2px;
  134. color: #a18d6c;
  135. font-family: 'Exo', sans-serif;
  136. font-size: 16px;
  137. font-weight: 400;
  138. padding: 6px;
  139. margin-top: 10px;
  140. }
  141.  
  142. .login input[type=button]:hover{
  143. opacity: 0.8;
  144. }
  145.  
  146. .login input[type=button]:active{
  147. opacity: 0.6;
  148. }
  149.  
  150. .login input[type=text]:focus{
  151. outline: none;
  152. border: 1px solid rgba(255,255,255,0.9);
  153. }
  154.  
  155. .login input[type=password]:focus{
  156. outline: none;
  157. border: 1px solid rgba(255,255,255,0.9);
  158. }
  159.  
  160. .login input[type=button]:focus{
  161. outline: none;
  162. }
  163.  
  164. ::-webkit-input-placeholder{
  165. color: rgba(255,255,255,0.6);
  166. }
  167.  
  168. ::-moz-input-placeholder{
  169. color: rgba(255,255,255,0.6);
  170. }
  171. </style>
  172.  
  173. <script src="js/prefixfree.min.js"></script>
  174.  
  175. </head>
  176.  
  177. <body>
  178.  
  179. <div class="body"></div>
  180. <div class="grad"></div>
  181. <div class="header">
  182. <div>Spro<span>techs</span></div>
  183. </div>
  184. <br>
  185. <div class="login">
  186. <form action="" method="post" name="Login_Form">
  187. <table width="400" border="0" align="center" cellpadding="5" cellspacing="1" class="Table">
  188. <?php if(isset($msg)){?>
  189. <tr>
  190. <td colspan="2" align="center" valign="top"><?php echo $msg;?></td>
  191. </tr>
  192. <?php } ?>
  193. <tr>
  194. <td colspan="2" align="left" valign="top"><h3>Login</h3></td>
  195. </tr>
  196. <tr>
  197. <td align="right" valign="top">Username</td>
  198. <td><input name="Username" type="text" class="Input"></td>
  199. </tr>
  200. <tr>
  201. <td align="right">Password</td>
  202. <td><input name="Password" type="password" class="Input"></td>
  203. </tr>
  204. <tr>
  205. <td> </td>
  206. <td><input name="Submit" type="submit" value="Login" class="Button3"></td>
  207. </tr>
  208. </table>
  209. </form>
  210. </div>
  211.  
  212. <script src='http://codepen.io/assets/libs/fullpage/jquery.js'></script>
  213.  
  214. </body>
  215.  
  216. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement