misc: small fix or general refactoring i did not bother commenting

This commit is contained in:
evilsocket 2018-09-13 13:12:38 +02:00
commit 678865cd6d
No known key found for this signature in database
GPG key ID: 1564D7F30393A456
2 changed files with 6 additions and 4 deletions

View file

@ -21,8 +21,6 @@ clean:
install:
@mkdir -p /usr/local/share/bettercap/caplets
@cp bettercap /usr/local/bin/
@cp bettercap.service /etc/systemd/system/
@systemctl daemon-reload
docker:
@docker build -t bettercap:latest .

View file

@ -18,17 +18,21 @@ A [precompiled version is available](https://github.com/bettercap/bettercap/rele
Make sure you have a correctly configured **Go >= 1.8** environment, that `$GOPATH/bin` is in `$PATH`, that the `libpcap-dev` and `libnetfilter-queue-dev` (this one is only required on Linux) package installed for your system and then:
$ go get github.com/bettercap/bettercap
$ cd $GOPATH/src/github.com/bettercap/bettercap
$ make && sudo make install
This command will download bettercap, install its dependencies, compile it and move the `bettercap` executable to `$GOPATH/bin`.
This command will download bettercap, install its dependencies, compile it and move the `bettercap` executable to `/usr/local/bin`.
Now you can use `sudo bettercap -h` to show the basic command line options and just `sudo bettercap` to start an
[interactive session](https://github.com/bettercap/bettercap/wiki/Interactive-Mode) on your default network interface, otherwise you can [load a caplet](https://github.com/bettercap/bettercap/wiki/Caplets) from [the dedicated repository](https://github.com/bettercap/caplets).
## Update
In order to update to an unstable but bleeding edge release from this repository, run the command below:
In order to update to an unstable but bleeding edge release from this repository, run the commands below:
$ go get -u github.com/bettercap/bettercap
$ cd $GOPATH/src/github.com/bettercap/bettercap
$ make && sudo make install
## Documentation and Examples