UnaPibaGeek / ctfr

Abusing Certificate Transparency logs for getting HTTPS websites subdomains.
GNU General Public License v3.0
1.97k stars 291 forks source link

Add/dockerfile #2

Closed gvilarino closed 6 years ago

gvilarino commented 6 years ago

For those of us that can't run python natively :)

Default command is --help so running a container just spits out the help info.

Running the tool is just running the container with the appropriate parameters, e.g.:

docker run --rm ctfr -d ekoparty.org

For keeping output files, just mount a volume. E.g.:

docker run --rm -v ${PWD}:/usr/src ctfr -d ekoparty.org -o subdomains_eko.txt
marcosnils commented 6 years ago

LGTM! The resulting image size could be reduced by generating a DL binary and multi-stage builds, but that's an unnecessary optimization for the moment

johnpaulada commented 6 years ago

I created one here 😅 Size: 97.8MB

Repo: https://github.com/johnpaulada/ctfr-docker-image

Image: https://hub.docker.com/r/johnpaulada/ctfr/

Sorry I made that one without check this first. 😢 😭

chrisbrownie commented 6 years ago

I have tested @gvilarino's PR and can confirm it works as indicated.

UnaPibaGeek commented 6 years ago

Thanks for collaborating :) I think that it's a little bit crazy to use Docker for running such a little python script. Anyway, I've merged @johnpaulada's pull-request to add the link to the Docker image on Docker Hub in the README.

PS: Aguante la eko :-).