Giter Site home page Giter Site logo

ipgrep's People

Contributors

eighthave avatar jedisct1 avatar

Stargazers

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

Watchers

 avatar  avatar  avatar

ipgrep's Issues

uncompress files before searching

I wonder if it makes sense to have ipgrep automatically uncompress files before running the searches on them. Things like ZIP/JAR/APK, tarballs, etc. should be pretty easily to handle automatically.

support binary files

Python 2 is dead! Long live Python 3! And it would be great to include ipgrep there too

Tag request

Dear Frank,

for packaging purposes, would it be possible to tag a 1.0.1 release, to signal the final switch to Python3?

Add release?

Hi Frank,

could you tag a release? It is a cool tool, and I want to package it.
For that, a release number would be great.

Thanks for releasing this, much appreciated.

SSL handshake errors

Running ipgrep on openSUSE Leap 42.3 (and having ipgrep use python3 instead of python2) I run into strange SSL handshake errors when running ipgrep from within a bash for loop such as

for i in cat IPs.txt ; do echo $i | ipgrep.py - >> output.txt 2>&1; done

Every now and then the for loop will stop and output.txt will contain a message like:

Traceback (most recent call last):
  File "/home/user/bin/ipgrep.py", line 127, in <module>
    subnet = ip_lookup.lookup(host.ip)
  File "/home/user/bin/ipgrep.py", line 19, in lookup
    r = requests.get(url)
  File "/usr/lib/python3.4/site-packages/requests/api.py", line 72, in get
    return request('get', url, params=params, **kwargs)
  File "/usr/lib/python3.4/site-packages/requests/api.py", line 58, in request
    return session.request(method=method, url=url, **kwargs)
  File "/usr/lib/python3.4/site-packages/requests/sessions.py", line 508, in request
    resp = self.send(prep, **send_kwargs)
  File "/usr/lib/python3.4/site-packages/requests/sessions.py", line 618, in send
    r = adapter.send(request, **kwargs)
  File "/usr/lib/python3.4/site-packages/requests/adapters.py", line 440, in send
    timeout=timeout
  File "/usr/lib/python3.4/site-packages/urllib3/connectionpool.py", line 601, in urlopen
    chunked=chunked)
  File "/usr/lib/python3.4/site-packages/urllib3/connectionpool.py", line 346, in _make_request
    self._validate_conn(conn)
  File "/usr/lib/python3.4/site-packages/urllib3/connectionpool.py", line 850, in _validate_conn
    conn.connect()
  File "/usr/lib/python3.4/site-packages/urllib3/connection.py", line 326, in connect
    ssl_context=context)
  File "/usr/lib/python3.4/site-packages/urllib3/util/ssl_.py", line 331, in ssl_wrap_socket
    return context.wrap_socket(sock, server_hostname=server_hostname)
  File "/usr/lib/python3.4/site-packages/urllib3/contrib/pyopenssl.py", line 441, in wrap_socket
    cnx.do_handshake()
  File "/usr/lib/python3.4/site-packages/OpenSSL/SSL.py", line 1805, in do_handshake
    result = _lib.SSL_do_handshake(self._ssl)
KeyboardInterrupt

I have not been able to consistently reproduce this so this may be caused by https://api.iptoasn.com/v1/as/ip/ ? Hints anyone?

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.