Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import IP2Location
- import os
- IP2LocObj = IP2Location.IP2Location(103.194.170.153);
- IP2LocObj.open("IP-COUNTRY.BIN");
- rec = IP2LocObj.get_all(os.environ["REMOTE_ADDR"]);
- if rec.country_short == "IL":
- print "Status: 301 Moved Permanently"
- print "Location: https://threatmap.checkpoint.com/"
- print
- if rec.country_short == "HK":
- print "Status: 301 Moved Permanently"
- print "Location: https://www.imperva.com/cyber-threat-attack-map/"
- print
- if rec.country_short == "IN":
- print "Status: 301 Moved Permanently"
- print "Location: https://livethreatmap.radware.com/"
- print
- if rec.country_short == "BW":
- print "Status: 301 Moved Permanently"
- print "Location: https://www.fireeye.com/cyber-map/threat-map.html"
- print
- if rec.country_short == "AU":
- print "Status: 301 Moved Permanently"
- print "Location: https://threatmap.bitdefender.com"
- print
- if rec.country_short == "FR":
- print "Status: 301 Moved Permanently"
- print "Location: https://attackmap.sonicwall.com/live-attack-map/"
- print
- if rec.country_short == "BS":
- print "Status: 301 Moved Permanently"
- print "Location: https://www.digitalattackmap.com/"
- print
- if rec.country_short == "BR":
- print "Status: 301 Moved Permanently"
- print "Location: https://map.httpcs.com/"
- print
- if rec.country_short == "IO":
- print "Status: 301 Moved Permanently"
- print "Location: http://norsenet.com/"
- print
- if rec.country_short == "CA":
- print "Status: 301 Moved Permanently"
- print "Location: https://map.lookradar.securitywizardry.comingglasscyber.com/"
- print
- if rec.country_short == "CN":
- print "Status: 301 Moved Permanently"
- print "Location: https://geekflare.com/real-time-cyber-attacks/"
- print
- if rec.country_short == "IQ":
- print "Status: 301 Moved Permanently"
- print "Location: https://threatbutt.com/map/"
- print
Add Comment
Please, Sign In to add comment