mirror of
https://github.com/bettercap/bettercap
synced 2025-08-13 18:26:57 -07:00
balls
This commit is contained in:
parent
8af5f5cb84
commit
f18a7fb1fb
1 changed files with 8 additions and 3 deletions
11
README.md
11
README.md
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue