README.md
January 25, 2022 ยท View on GitHub
shodan-exposure-box
๐ป Update a pinned gist to contain Shodan.io Exposure Stats
๐ Prep Work
- Create a new public GitHub Gist (https://gist.github.com/)
- Create a token with the
gistscope and copy it. (https://github.com/settings/tokens/new) - Copy the
API token
๐ฅ Project Setup
- Go to your fork's
Settings>Secrets>Add a new secretfor each environment secret (below)
๐คซ Environment Secrets
-
GH_TOKEN: The GitHub token generated above.
-
GIST_ID: The ID portion from your gist url:
https://gist.github.com/ChrisCarini/0c0b8690e430b9fe4572f9c4a38811c1.(Alternatively this can be put directly in
.github/workflows/shodan.ymlas it is public anyway.)
๐ค Hacking
Getting Setup
python3 -m venv venv
source activate
pip install -r requirements.txt
Saving Dependencies
source activate
pip-chill > requirements.txt
Running linting and tests
isort main.py shodan.py test/ && \
mypy main.py shodan.py test/ && \
flake8 main.py shodan.py test/ && \
blue --check main.py shodan.py test/ && \
pytest test/