mirror of
https://github.com/bettercap/bettercap
synced 2025-07-12 08:07:00 -07:00
balls
This commit is contained in:
parent
4631a25c4b
commit
42da5c6489
4 changed files with 3 additions and 15 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -1,4 +1,3 @@
|
||||||
*.sw*
|
*.sw*
|
||||||
core/build.go
|
|
||||||
bettercap
|
bettercap
|
||||||
bettercap.history
|
bettercap.history
|
||||||
|
|
11
Makefile
11
Makefile
|
@ -1,6 +1,4 @@
|
||||||
TARGET=bettercap
|
TARGET=bettercap
|
||||||
BUILD_DATE=`date +%Y-%m-%d\ %H:%M`
|
|
||||||
BUILD_FILE=core/build.go
|
|
||||||
|
|
||||||
all: fmt vet build
|
all: fmt vet build
|
||||||
@echo "@ Done"
|
@echo "@ Done"
|
||||||
|
@ -8,17 +6,10 @@ all: fmt vet build
|
||||||
test: build
|
test: build
|
||||||
@go test ./...
|
@go test ./...
|
||||||
|
|
||||||
build: build_file
|
build: resources
|
||||||
@echo "@ Building ..."
|
@echo "@ Building ..."
|
||||||
@go build $(FLAGS) -o $(TARGET) .
|
@go build $(FLAGS) -o $(TARGET) .
|
||||||
|
|
||||||
build_file: resources
|
|
||||||
@rm -f $(BUILD_FILE)
|
|
||||||
@echo "package core" > $(BUILD_FILE)
|
|
||||||
@echo "const (" >> $(BUILD_FILE)
|
|
||||||
@echo " BuildDate = \"$(BUILD_DATE)\"" >> $(BUILD_FILE)
|
|
||||||
@echo ")" >> $(BUILD_FILE)
|
|
||||||
|
|
||||||
resources:
|
resources:
|
||||||
@echo "@ Compiling resources into go files ..."
|
@echo "@ Compiling resources into go files ..."
|
||||||
@$(GOPATH)/bin/go-bindata -o net/oui_compiled.go -pkg net net/oui.dat
|
@$(GOPATH)/bin/go-bindata -o net/oui_compiled.go -pkg net net/oui.dat
|
||||||
|
|
4
main.go
4
main.go
|
@ -3,7 +3,6 @@ package main
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
"runtime"
|
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/evilsocket/bettercap-ng/core"
|
"github.com/evilsocket/bettercap-ng/core"
|
||||||
|
@ -21,8 +20,7 @@ func main() {
|
||||||
os.Exit(1)
|
os.Exit(1)
|
||||||
}
|
}
|
||||||
|
|
||||||
fmt.Printf("%s v%s\n", core.Name, core.Version)
|
fmt.Printf(core.Bold("%s v%s\n\n"), core.Name, core.Version)
|
||||||
fmt.Printf("Build: date=%s os=%s arch=%s\n\n", core.BuildDate, runtime.GOOS, runtime.GOARCH)
|
|
||||||
|
|
||||||
sess.Register(modules.NewEventsStream(sess))
|
sess.Register(modules.NewEventsStream(sess))
|
||||||
sess.Register(modules.NewProber(sess))
|
sess.Register(modules.NewProber(sess))
|
||||||
|
|
|
@ -83,7 +83,7 @@ func netOuiDat() (*asset, error) {
|
||||||
return nil, err
|
return nil, err
|
||||||
}
|
}
|
||||||
|
|
||||||
info := bindataFileInfo{name: "net/oui.dat", size: 585353, mode: os.FileMode(420), modTime: time.Unix(1510072358, 0)}
|
info := bindataFileInfo{name: "net/oui.dat", size: 585353, mode: os.FileMode(420), modTime: time.Unix(1515886330, 0)}
|
||||||
a := &asset{bytes: bytes, info: info}
|
a := &asset{bytes: bytes, info: info}
|
||||||
return a, nil
|
return a, nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue