Skip to content

Instantly share code, notes, and snippets.

@ethackal
ethackal / shodan-mp.py
Created February 9, 2017 05:25
Monkey patch wrapper around official shodan-python CLI to support a proxy
#!/usr/local/opt/python/bin/python2.7
import imp
import os
import shodan
import shodan.cli.helpers
def mp_init(self, key):
self._original___init__(key)
self.base_url=os.environ.get('SHODAN_API_PROXY', 'https://api.shodan.io')
self.base_exploits_url=os.environ.get('SHODAN_EXPLOITS_API_PROXY', 'https://exploits.shodan.io')
@ethackal
ethackal / test
Last active April 23, 2016 06:33
https://gist.githubusercontent.com/ethackal/3b4c4cfc8d2c4f9d69e91baeb1d89ac4/raw/3b37d617e274b4adf44bcb3f1643f17a8f0533ef/test