Comments (7)
Probably use FROM golang, maybe from alpine. And then I was thinking it might make sense to use the new multi-build stages coming in 17.0.5
to separate the compile/run steps, and end up with just the compiled binary:
Something akin to:
So maybe something like (untested)..
FROM golang:alpine
COPY . /gobuster
WORKDIR /gobuster
RUN go build main.go
FROM scratch
COPY --from=0 /gobuster/gobuster /gobuster
CMD ["gobuster"]
That said, the onbuild version works as an ok one liner at the moment too:
FROM golang:onbuild
from gobuster.
Decided to hack this together today (finally). Multi-stage build, staticly linked, stripped, packed, FROM scratch
:
Leaves us with a ~1.35mb docker container:
Can run like:
docker run --rm -v "/Users/foo/sec/seclists:/seclists" devalias/gobuster -w /seclists/Discovery/Web_Content/common.txt -u http://example.com/
DockerHub isn't yet running the latest docker, so multi stage automated builds are broken for now, but that should be updated within the month. For now just manually built/pushed:
Currently sitting on a branch on my fork. Was thinking of figuring out how I could have it build both alpine and scratch images automagically, and wait for automated build to land on dockerhub, though can send a PR if desired:
from gobuster.
Thanks mate this looks great! I'll dive into it a bit more later on. Thanks for the effort 👍
from gobuster.
I'd be open to it, depending on the container and what it intends to do. I know a few people have their own implementations of it as well, so perhaps you'll get some commentary from them along the way.
from gobuster.
Sounds good :)
from gobuster.
So I think i've decided that maintaining the dockerfile separate to the main repo will end up a better experience for updates/etc.
Created https://github.com/0xdevalias/docker-gobuster with my latest iterations. At some point will work it a bit better to provide tagged versions rather than just 'latest' (once I figure how that works)
Would be happy to have it linked up as a 'semi-official' type docker image if you'd be keen.
from gobuster.
a dockerfile was already added to the repo
from gobuster.
Related Issues (20)
- [dns] wordlist line count is always higher by one HOT 7
- Bug Report/Feature Request for vhost/fuzz mode HOT 1
- [fuzz] [fe80::1%wlp2s0]:53: server misbehaving HOT 1
- [New functionnality] - Insensitive option HOT 1
- Is it possible to scan domain like https://pubaccount10086.blob.core.windows.net? HOT 1
- Not able to perform directory enumerations HOT 5
- Recursive directory bruteforcing HOT 1
- Add `--exclude-dir` on dir mode HOT 1
- Pattern flag adds to the number of requests HOT 1
- Feature Request: Ability to input multiple wordlist files HOT 1
- gobuster -u http://fakebank.com -w wordlist.txt dir HOT 3
- Vhost not working as expected HOT 4
- Status 404? HOT 1
- Vhost not working properly HOT 1
- please add scan recursively in dir scan
- delete mistake
- No answer or help was given, the topic was simply closed. Nice support
- I want a solution to this problem
- NOT WORKING
- So, why exactly does dns mode break internet connection? HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from gobuster.