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

This commit is contained in:
evilsocket 2019-08-17 14:17:08 -04:00
commit b57661a097
No known key found for this signature in database
GPG key ID: 82E42E7F3B34C97E
3 changed files with 4 additions and 8 deletions

View file

@ -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)

View file

@ -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)
}
}
}

View file

@ -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)