2019年5月23日 星期四

【bettercap】如何在ubuntu安裝bettercap




首先需安裝1.8()以上的Go

1.      Go下載頁面,下載目前最新之linux 386



2.      參照Go官網指示進行安裝,下載後解壓縮至/usr/local

sudo tar -C /usr/local -xzf go1.12.5.linux-386.tar.gz

3.      $HOME/.bashrc加上下行

export PATH=$PATH:/usr/local/go/bin



4.      登出後重新登入,或執行以下指令使上述修改生效

source .profile


5.      查看Go版本(可將/usr/local/go/bin/go複製至/usr/bin下方便使用)

go version



6.      接著參考bettercap官網安裝說明,採用Compiling from Sources的方式安裝

sudo go get github.com/bettercap/bettercap

7.      切換至bettercap目錄,執行compile,沒出錯就OK

cd $GOPATH/src/github.com/bettercap/bettercap
sudo make build
sudo make install



8.      成功後目錄會出現bettercap執行檔(可複製至/usr/bin下方便使用)



9.      執行藍芽模組看看

sudo bettercap -eval "net.recon off;events.stream off;ble.recon on"



10.  成功囉!


---
bettercap v2.24
go 1.12.5 linux/386
---
參考資料: