Advertisement
AtomicOs

cyberattack.rb

Jun 24th, 2021
405
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Ruby 1.45 KB | None | 0 0
  1. i2l = Ip2location.new.open("./data/IP-COUNTRY.BIN")
  2. record = i2l.get_all(request.remote_ip)
  3.  
  4. if record.country_short == "IL":
  5.     redirect_to "https://threatmap.checkpoint.com/", :status => 301
  6. end
  7.  
  8. if record.country_short == "HK":
  9.     redirect_to "https://www.imperva.com/cyber-threat-attack-map/", :status => 301
  10. end
  11.  
  12. if record.country_short == "IN":
  13.     redirect_to "https://livethreatmap.radware.com/", :status => 301
  14. end
  15.  
  16. if record.country_short == "BW":
  17.     redirect_to "https://www.fireeye.com/cyber-map/threat-map.html", :status => 301
  18. end
  19.  
  20. if record.country_short == "AU":
  21.     redirect_to "https://threatmap.bitdefender.com", :status => 301
  22. end
  23.  
  24. if record.country_short == "FR":
  25.     redirect_to "https://attackmap.sonicwall.com/live-attack-map/", :status => 301
  26. end
  27.  
  28. if record.country_short == "BS":
  29.     redirect_to "https://www.digitalattackmap.com/", :status => 301
  30. end
  31.  
  32. if record.country_short == "BR":
  33.     redirect_to "https://map.httpcs.com/", :status => 301
  34. end
  35.  
  36. if record.country_short == "IO":
  37.     redirect_to "http://norsenet.com/", :status => 301
  38. end
  39.  
  40. if record.country_short == "CA":
  41.     redirect_to "https://map.lookradar.securitywizardry.comingglasscyber.com/", :status => 301
  42. end
  43.  
  44. if record.country_short == "CN":
  45.     redirect_to "https://geekflare.com/real-time-cyber-attacks/", :status => 301
  46. end
  47.  
  48. if record.country_short == "IQ":
  49.     redirect_to "https://threatbutt.com/map/", :status => 301
  50. end
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement