This commit is contained in:
evilsocket 2018-01-25 12:38:34 +01:00
commit f18a7fb1fb

View file

@ -52,9 +52,10 @@ To show the command line options:
## Cross Compiling
An example cross compilation for ARM (requires C ARM toolchain):
As an example, let's cross compilate for ARM (requires `gcc-arm-linux-gnueabi`, `byacc` and `flex` packages).
**Step 1**: download and cross compile libpcap-1.8.1 for ARM (adjust `PCAPV` to use a different libpcap version):
# download and cross compile libpcap-1.8.1 for ARM
cd /tmp
export PCAPV=1.8.1
wget http://www.tcpdump.org/release/libpcap-$PCAPV.tar.gz
@ -63,10 +64,14 @@ An example cross compilation for ARM (requires C ARM toolchain):
export CC=arm-linux-gnueabi-gcc
./configure --host=arm-linux --with-pcap=linux
make
# cross compile bettercap-ng
**Step 2**: now cross compile bettercap-ng itself:
cd $GOPATH/src/github.com/evilsocket/bettercap-ng
env CC=arm-linux-gnueabi-gcc CGO_ENABLED=1 GOOS=linux GOARCH=arm CGO_LDFLAGS="-L/tmp/libpcap-$PCAPV" make
**Done**
## Caplets
Interactive sessions can be scripted with `.cap` files, or `caplets`, the following are a few basic examples, look the `caplets` folder for more.