Advertisement
AtomicOs

cyberattack.pl

Jun 24th, 2021
489
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 1.70 KB | None | 0 0
  1. use Geo::IP2Location;
  2.  
  3. $obj = Geo::IP2Location->open("IP-COUNTRY.BIN");
  4. my $countryshort = $obj->get_country_short($ENV{'REMOTE_ADDR'};);
  5.  
  6. if($countryshort == "IL"){
  7.     $q = new CGI;
  8.     print $q->redirect("https://threatmap.checkpoint.com/");
  9.     exit 1;
  10. }
  11.  
  12. if($countryshort == "HK"){
  13.     $q = new CGI;
  14.     print $q->redirect("https://www.imperva.com/cyber-threat-attack-map/");
  15.     exit 1;
  16. }
  17.  
  18. if($countryshort == "IN"){
  19.     $q = new CGI;
  20.     print $q->redirect("https://livethreatmap.radware.com/");
  21.     exit 1;
  22. }
  23.  
  24. if($countryshort == "BW"){
  25.     $q = new CGI;
  26.     print $q->redirect("https://www.fireeye.com/cyber-map/threat-map.html");
  27.     exit 1;
  28. }
  29.  
  30. if($countryshort == "AU"){
  31.     $q = new CGI;
  32.     print $q->redirect("https://threatmap.bitdefender.com");
  33.     exit 1;
  34. }
  35.  
  36. if($countryshort == "FR"){
  37.     $q = new CGI;
  38.     print $q->redirect("https://attackmap.sonicwall.com/live-attack-map/");
  39.     exit 1;
  40. }
  41.  
  42. if($countryshort == "BS"){
  43.     $q = new CGI;
  44.     print $q->redirect("https://www.digitalattackmap.com/");
  45.     exit 1;
  46. }
  47.  
  48. if($countryshort == "BR"){
  49.     $q = new CGI;
  50.     print $q->redirect("https://map.httpcs.com/");
  51.     exit 1;
  52. }
  53.  
  54. if($countryshort == "IO"){
  55.     $q = new CGI;
  56.     print $q->redirect("http://norsenet.com/");
  57.     exit 1;
  58. }
  59.  
  60. if($countryshort == "CA"){
  61.     $q = new CGI;
  62.     print $q->redirect("https://map.lookradar.securitywizardry.comingglasscyber.com/");
  63.     exit 1;
  64. }
  65.  
  66. if($countryshort == "CN"){
  67.     $q = new CGI;
  68.     print $q->redirect("https://geekflare.com/real-time-cyber-attacks/");
  69.     exit 1;
  70. }
  71.  
  72. if($countryshort == "IQ"){
  73.     $q = new CGI;
  74.     print $q->redirect("https://threatbutt.com/map/");
  75.     exit 1;
  76. }
  77.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement