AtomicOs

ddos.py

Jun 24th, 2021 (edited)
401
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 1.93 KB | None | 0 0
  1. import IP2Location
  2. import os
  3.  
  4. IP2LocObj = IP2Location.IP2Location(103.194.170.153);
  5. IP2LocObj.open("IP-COUNTRY.BIN");
  6. rec = IP2LocObj.get_all(os.environ["REMOTE_ADDR"]);
  7.  
  8. if rec.country_short == "IL":
  9.     print "Status: 301 Moved Permanently"
  10.     print "Location: https://threatmap.checkpoint.com/"
  11.     print
  12.  
  13. if rec.country_short == "HK":
  14.     print "Status: 301 Moved Permanently"
  15.     print "Location: https://www.imperva.com/cyber-threat-attack-map/"
  16.     print
  17.  
  18. if rec.country_short == "IN":
  19.     print "Status: 301 Moved Permanently"
  20.     print "Location: https://livethreatmap.radware.com/"
  21.     print
  22.  
  23. if rec.country_short == "BW":
  24.     print "Status: 301 Moved Permanently"
  25.     print "Location: https://www.fireeye.com/cyber-map/threat-map.html"
  26.     print
  27.  
  28. if rec.country_short == "AU":
  29.     print "Status: 301 Moved Permanently"
  30.     print "Location: https://threatmap.bitdefender.com"
  31.     print
  32.  
  33. if rec.country_short == "FR":
  34.     print "Status: 301 Moved Permanently"
  35.     print "Location: https://attackmap.sonicwall.com/live-attack-map/"
  36.     print
  37.  
  38. if rec.country_short == "BS":
  39.     print "Status: 301 Moved Permanently"
  40.     print "Location: https://www.digitalattackmap.com/"
  41.     print
  42.  
  43. if rec.country_short == "BR":
  44.     print "Status: 301 Moved Permanently"
  45.     print "Location: https://map.httpcs.com/"
  46.     print
  47.  
  48. if rec.country_short == "IO":
  49.     print "Status: 301 Moved Permanently"
  50.     print "Location: http://norsenet.com/"
  51.     print
  52.  
  53. if rec.country_short == "CA":
  54.     print "Status: 301 Moved Permanently"
  55.     print "Location: https://map.lookradar.securitywizardry.comingglasscyber.com/"
  56.     print
  57.  
  58. if rec.country_short == "CN":
  59.     print "Status: 301 Moved Permanently"
  60.     print "Location: https://geekflare.com/real-time-cyber-attacks/"
  61.     print
  62.  
  63. if rec.country_short == "IQ":
  64.     print "Status: 301 Moved Permanently"
  65.     print "Location: https://threatbutt.com/map/"
  66.     print
  67.  
Add Comment
Please, Sign In to add comment