Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ChrisCarini/shodan-exposure-box
Update a gist to contain Shodan.io Exposure Stats
https://github.com/ChrisCarini/shodan-exposure-box
pinned pinned-gist shodan
Last synced: about 1 month ago
JSON representation
Update a gist to contain Shodan.io Exposure Stats
- Host: GitHub
- URL: https://github.com/ChrisCarini/shodan-exposure-box
- Owner: ChrisCarini
- Created: 2021-12-14T02:33:06.000Z (almost 3 years ago)
- Default Branch: main
- Last Pushed: 2024-10-23T13:07:09.000Z (about 2 months ago)
- Last Synced: 2024-10-26T15:10:19.222Z (about 2 months ago)
- Topics: pinned, pinned-gist, shodan
- Language: Python
- Homepage:
- Size: 220 KB
- Stars: 4
- Watchers: 3
- Forks: 0
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
- awesome-pinned-gists - shodan-exposure-box - Update a pinned gist containing the top used ports as observed by [Shodan](https://www.shodan.io/). (External Services)
README
shodan-exposure-box
💻 Update a pinned gist to contain Shodan.io Exposure Stats
## 🎒 Prep Work
1. Create a new public GitHub Gist (https://gist.github.com/)
2. Create a token with the `gist` scope and copy it. (https://github.com/settings/tokens/new)
3. Copy the `API token`## 🖥 Project Setup
1. Go to your fork's `Settings` > `Secrets` > `Add a new secret` for 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.yml` as it is public anyway.)
## 🤓 Hacking
### Getting Setup
```shell
python3 -m venv venv
source activate
pip install -r requirements.txt
```### Saving Dependencies
```shell
source activate
pip-chill > requirements.txt
```### Running linting and tests
```shell
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/
```