https://github.com/threatpatrols/docker-sshamble
Dockerization of the awesome SSHamble by HD Moore/runZero
https://github.com/threatpatrols/docker-sshamble
docker scanner ssh sshamble
Last synced: 3 months ago
JSON representation
Dockerization of the awesome SSHamble by HD Moore/runZero
- Host: GitHub
- URL: https://github.com/threatpatrols/docker-sshamble
- Owner: threatpatrols
- Created: 2024-08-09T00:35:56.000Z (about 1 year ago)
- Default Branch: main
- Last Pushed: 2025-04-14T16:42:19.000Z (6 months ago)
- Last Synced: 2025-05-31T19:02:59.178Z (4 months ago)
- Topics: docker, scanner, ssh, sshamble
- Language: Dockerfile
- Homepage: https://hub.docker.com/r/threatpatrols/sshamble
- Size: 9.77 KB
- Stars: 4
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# SSHamble: Unexpected Exposures in SSH in Docker
Dockerization of the awesome [SSHamble](https://SSHamble.com) by [HD Moore](https://github.com/hdm)
Source: https://github.com/runZeroInc/sshamble
## Usage
```commandline
docker run --rm -it threatpatrols/sshamble:latest scan -o - 10.0.0.0/24
```## Extended Usage Example
Thanks to [jcormier](https://github.com/jcormier) for this extended usage [example](https://github.com/threatpatrols/docker-sshamble/issues/1)
suggestion using a `sshamble.sh` wrapper script.**sshamble.sh**
```shell
#!/bin/shDOCKER_IMAGE=threatpatrols/sshamble:latest
DOCKER_RUN_OWNERSHIP="-u $(id -u):$(id -g)"
DOCKER_RUN_WORKDIR="-v $PWD:$PWD -w $PWD"
test -t 1 && DOCKER_RUN_USE_TTY="-it" # Check for interactive ttydocker pull "$DOCKER_IMAGE" # Always run latest version
docker \
run --rm \
${DOCKER_RUN_USE_TTY} \
${DOCKER_RUN_WORKDIR} \
${DOCKER_RUN_OWNERSHIP} \
${DOCKER_IMAGE} \
${@}
``````commandline
./sshamble.sh scan -o scan-results.json 10.0.0.0/24
./sshamble.sh analyze -o results-directory scan-results.json
```## Notes
The docker build image includes a `badkeys-update` step that pulls the latest [badkeys](https://badkeys.info/)
data into the image - this data is fairly slow moving and should not become too stale quickly.