jedisct1 / ipgrep Goto Github PK
View Code? Open in Web Editor NEWExtract, defang, resolve names and IPs from text
License: ISC License
Extract, defang, resolve names and IPs from text
License: ISC License
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.
Python 2 is dead! Long live Python 3! And it would be great to include ipgrep there too
Dear Frank,
for packaging purposes, would it be possible to tag a 1.0.1 release, to signal the final switch to Python3?
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.
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?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.