gophercap
Accurate, modular, scalable PCAP manipulation tool written in Go.
File Explorer
Download Latest Version (.zip)- build.yml
- test.yml
- eve2filter.go
- exampleConfig.go
- extract.go
- filter.go
- map.go
- replay.go
- root.go
- tarExtract.go
- version.go
- gophercap.yml
- dedup.go
- dedup_test.go
- filter.go
- functions.go
- pcapfiles.go
- condition.go
- config.go
- filter.go
- generate.go
- packet.go
- models.go
- magic.go
- map.go
- map_pcap.go
- map_set.go
- replay.go
- .gitignore
- CHANGELOG.md
- Dockerfile
- go.mod
- go.sum
- LICENSE
- main.go
- Makefile
- README.md
# Installation Guide
1. Get the code
git clone https://github.com/StamusNetworks/gophercap
Downloads the entire project code from GitHub to your computer.
cd gophercap
Moves into the project folder you just downloaded.
2. Docker
Easy RecommendedPrerequisites
- Git Needed to download the project code from GitHub.
- Docker Desktop Needed to build and run containers. Install it and keep it running in the background.
docker build -t stamus/gophercap .
Builds a runnable image based on the Dockerfile.
docker run -ti --rm stamus/gophercap --help
Runs the built image as an actual container.
docker run -ti --rm -v /mnt/pcap:/pcaps stamus/gophercap map \
Runs the built image as an actual container.
docker run -ti --rm --network host -v /mnt/pcap:/pcaps stamus/gophercap replay \
Runs the built image as an actual container.
Run docker compose ps to check the containers are Up. If the README mentions a port, open http://localhost:PORT in your browser.
Pulled directly from this repo's README.
3. Go
MediumPrerequisites
go build -o ./gopherCap ./
Compiles the Go program into an executable.
go install
Type this command into your terminal and run it.
go build -ldflags="-X 'gopherCap/cmd.Version=$VERSION'" -o ./gopherCap ./
Compiles the Go program into an executable.
If the build finishes without errors, it worked. If you used go run ., check the terminal output.
Pulled directly from this repo's README.
4. Make
MediumPrerequisites
- Git Needed to download the project code from GitHub.
- Make Usually pre-installed on Linux/macOS. On Windows, install separately (e.g. via MSYS2 or WSL).
make
Compiles the code based on the generated build configuration to produce an executable.
If it finishes without errors, it worked. Try running the generated executable directly.
// repository documentation
Was this content helpful?
(0 ratings)
