Is this IP Bad?
Is This IP Bad? is a python script that will check an IP against popular IP and DNS blacklists.
Usage
python isthisipbad.py
Important Notice
I dont know what I am doing. This will likely break your system.
Category: Python / Security related resources |
Watchers: 18 |
Star: 209 |
Fork: 102 |
Last update: Feb 5, 2023 |
Is This IP Bad? is a python script that will check an IP against popular IP and DNS blacklists.
python isthisipbad.py
I dont know what I am doing. This will likely break your system.
What's the license for this code?
I ran the script against my IP and the script reported (in red)
xx.xx.110.155 is listed on malc0de
When checking the list @ http://malc0de.com/bl/IP_Blacklist.txt , I couldn't find that IP.
Traceback (most recent call last):
File "isthisipbad.py", line 211, in <module>
answers = my_resolver.query(query, "A")
File "/usr/lib/python2.7/dist-packages/dns/resolver.py", line 819, in query
timeout = self._compute_timeout(start)
File "/usr/lib/python2.7/dist-packages/dns/resolver.py", line 734, in _compute_timeout
raise Timeout
dns.exception.Timeout
Nice script. However, the code below
if __name__ == "__main__":
is too long. It would look much better if you called a method and you put everything in there:
if __name__ == "__main__":
main()
You can also split up the main()
method to smaller functions/methods.
Will you please remove UceProtect as they are not trusted?
Reference:
https://blog.sucuri.net/2021/02/uceprotect-when-rbls-go-bad.html
https://www.linode.com/community/questions/2324/uceprotectnet-has-us-blacklisted
https://www.titanhq.com/blog/warning-ignore-pay-for-de-listing-blacklist-service/
https://community.spiceworks.com/topic/2170592-uceprotect-blacklist-scam
https://wordtothewise.com/2018/05/uceprotect-gdpr-fallout/
http://kontech.net/uceprotect-blacklist-scheme-2020/
https://twitter.com/search?q=uceprotect
https://www.lowendtalk.com/discussion/comment/3204705
File "