diff --git a/Makefile b/Makefile index 0d791f1b..e998169e 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ PACKAGES=core firewall log modules network packets session tls all: deps build -deps: godep golint gofmt gomegacheck +deps: godep golint gofmt @dep ensure build_with_race_detector: resources @@ -36,7 +36,6 @@ test: deps @for pkg in $(PACKAGES); do \ go fmt ./$$pkg ; \ go vet ./$$pkg ; \ - megacheck ./$$pkg ; \ touch $$pkg.profile ; \ go test -race ./$$pkg -coverprofile=$$pkg.profile -covermode=atomic; \ tail -n +2 $$pkg.profile >> coverage.profile && rm -rf $$pkg.profile ; \ @@ -55,8 +54,5 @@ godep: golint: @go get -u golang.org/x/lint/golint -gomegacheck: - @go get honnef.co/go/tools/cmd/megacheck - gofmt: gofmt -s -w $(PACKAGES) diff --git a/modules/hid/hid_inject.go b/modules/hid/hid_inject.go index cca8b877..2abce2f1 100644 --- a/modules/hid/hid_inject.go +++ b/modules/hid/hid_inject.go @@ -142,7 +142,7 @@ func (mod *HIDRecon) doInjection() { } if cmd.Sleep > 0 { mod.Debug("sleeping %dms after command #%d ...", cmd.Sleep, i) - time.Sleep(time.Duration(cmd.Sleep)*time.Millisecond) + time.Sleep(time.Duration(cmd.Sleep) * time.Millisecond) } } } diff --git a/modules/wifi/wifi_recon_handshakes.go b/modules/wifi/wifi_recon_handshakes.go index e77587e9..ee22dba3 100644 --- a/modules/wifi/wifi_recon_handshakes.go +++ b/modules/wifi/wifi_recon_handshakes.go @@ -56,8 +56,8 @@ func (mod *WiFiModule) discoverHandshakes(radiotap *layers.RadioTap, dot11 *laye key.Nonce) //add the ap's station's beacon packet to be saved as part of the handshake cap file - //https://github.com/ZerBea/hcxtools/issues/92 - //https://github.com/bettercap/bettercap/issues/592 + //https://github.com/ZerBea/hcxtools/issues/92 + //https://github.com/bettercap/bettercap/issues/592 if ap.Station.Handshake.Beacon != nil { mod.Debug("adding beacon frame to handshake for %s", apMac)