Code Monkey home page Code Monkey logo

isthisipbad's Introduction

Is this IP Bad?

Is This IP Bad? is a python script that will check an IP against popular IP and DNS blacklists.

Usage

python3 isthisipbad.py

Important Notice

I don't know what I am doing.

Update: I wrote this code over six years ago as a side project and had not given it much thought. Since people were still using it, it had some errors and bad lists, so I updated it to Python3 and removed offline or bad sources.

isthisipbad's People

Contributors

altmas5 avatar drmattchristian avatar hajdbo avatar jbecher avatar jgamblin avatar kwadronaut avatar lojikil avatar moebiuseye avatar vladimircicovic avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

isthisipbad's Issues

DNS Timeout exception is not catched

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

DShield issue with padding of IP octets

$ python isthisipbad.py -i 150.164.225.030
150.164.225.030 is listed on dshield

$ python isthisipbad.py -i 150.164.225.30
150.164.225.30 is not listed on dshield

About removing UceProtect

4 false positives

Hi,

There are 4 lists that always returns false positives because of errors retrieving the real data:

8.8.8.8 is listed on Dragon Research Group - SSH
Error! <urlopen error [Errno 110] Connection timed out>
8.8.8.8 is listed on Dragon Research Group - VNC
Error! HTTP Error 404: Not Found
8.8.8.8 is listed on OpenBlock
Error! HTTP Error 403: Forbidden
8.8.8.8 is listed on malc0de

I will try to make a patch for it soon.
Nice tool btw.

IPv6

Hihi,

You merge fast!
Problem with IPv6: 'api.hackertarget.com' doesn't understand IPv6 (error input invalid.)

create a main() method

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.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.