2015-03-11 23:48:35 -07:00
|
|
|
# static-binaries
|
|
|
|
|
|
|
|
This repo contains a bunch of statically-linked binaries of various tools,
|
|
|
|
along with the Dockerfiles / other build scripts that can be used to build
|
|
|
|
them. I generally just create these as I need them.
|
|
|
|
|
|
|
|
## Current List of Tools
|
|
|
|
|
|
|
|
- [socat](http://www.dest-unreach.org/socat/)
|
|
|
|
- [ag / the_silver_searcher](https://github.com/ggreer/the_silver_searcher)
|
2015-03-12 01:12:32 -07:00
|
|
|
- [nmap](http://nmap.org/)
|
2015-03-11 23:48:35 -07:00
|
|
|
|
2015-03-12 01:13:09 -07:00
|
|
|
## Building
|
|
|
|
|
|
|
|
Generally, if the directory contains a Dockerfile, you can run the build by
|
|
|
|
doing something like (where `FOO` is the directory name):
|
|
|
|
|
|
|
|
```
|
|
|
|
cd FOO
|
|
|
|
docker build -t static-binaries-FOO .
|
|
|
|
docker run -v `pwd`/../binaries:/output static-binaries-FOO
|
|
|
|
```
|
|
|
|
|
2015-03-11 23:48:35 -07:00
|
|
|
## Notes:
|
|
|
|
|
2015-03-12 01:12:32 -07:00
|
|
|
### nmap
|
|
|
|
|
|
|
|
- In order to do script scans, Nmap must know where the various Lua files live.
|
2015-03-12 01:13:09 -07:00
|
|
|
You can do this by setting the `NMAPDIR` environment variable:
|
2015-03-12 01:12:32 -07:00
|
|
|
`NMAPDIR=/usr/share/nmap nmap -vvv -A www.target.com`
|
|
|
|
|
2015-03-11 23:48:35 -07:00
|
|
|
- The `nmap_centos5` binary isn't statically-linked; rather, it's built on
|
|
|
|
CentOS5, so it "should" run on just about every modern version of Linux.
|
2015-03-12 01:12:32 -07:00
|
|
|
Use this if something in the static binary doesn't work properly.
|