mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 13:09:49 -07:00
Add gofmt -s to the build
This commit is contained in:
parent
e93fe8ec4c
commit
e333df35d4
4 changed files with 35152 additions and 35150 deletions
5
Makefile
5
Makefile
|
@ -3,7 +3,7 @@ PACKAGES=core firewall log modules network packets session tls
|
||||||
|
|
||||||
all: deps build
|
all: deps build
|
||||||
|
|
||||||
deps: godep golint gomegacheck
|
deps: godep golint gofmt gomegacheck
|
||||||
@dep ensure
|
@dep ensure
|
||||||
|
|
||||||
build: resources
|
build: resources
|
||||||
|
@ -54,3 +54,6 @@ golint:
|
||||||
|
|
||||||
gomegacheck:
|
gomegacheck:
|
||||||
@go get honnef.co/go/tools/cmd/megacheck
|
@go get honnef.co/go/tools/cmd/megacheck
|
||||||
|
|
||||||
|
gofmt:
|
||||||
|
gofmt -s -w $(PACKAGES)
|
|
@ -28,7 +28,7 @@ func (s *EventsStream) shouldDumpHttpRequest(req HTTPRequest) bool {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
// search for interesting headers and cookies
|
// search for interesting headers and cookies
|
||||||
for name, _ := range req.Headers {
|
for name := range req.Headers {
|
||||||
headerName := strings.ToLower(name)
|
headerName := strings.ToLower(name)
|
||||||
if strings.Contains(headerName, "auth") || strings.Contains(headerName, "token") {
|
if strings.Contains(headerName, "auth") || strings.Contains(headerName, "token") {
|
||||||
return true
|
return true
|
||||||
|
@ -48,7 +48,7 @@ func (s *EventsStream) shouldDumpHttpResponse(res HTTPResponse) bool {
|
||||||
return true
|
return true
|
||||||
}
|
}
|
||||||
// search for interesting headers
|
// search for interesting headers
|
||||||
for name, _ := range res.Headers {
|
for name := range res.Headers {
|
||||||
headerName := strings.ToLower(name)
|
headerName := strings.ToLower(name)
|
||||||
if strings.Contains(headerName, "auth") || strings.Contains(headerName, "token") || strings.Contains(headerName, "cookie") {
|
if strings.Contains(headerName, "auth") || strings.Contains(headerName, "token") || strings.Contains(headerName, "cookie") {
|
||||||
return true
|
return true
|
||||||
|
|
|
@ -2,8 +2,8 @@ package network
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"strings"
|
|
||||||
"math/big"
|
"math/big"
|
||||||
|
"strings"
|
||||||
)
|
)
|
||||||
|
|
||||||
var manuf = map[string]string{
|
var manuf = map[string]string{
|
||||||
|
@ -35139,7 +35139,6 @@ var manuf = map[string]string {
|
||||||
"12.123917679357952": "Key Chemical & Equipment Company",
|
"12.123917679357952": "Key Chemical & Equipment Company",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
func ManufLookup(mac string) string {
|
func ManufLookup(mac string) string {
|
||||||
macHex := strings.Replace(mac, ":", "", -1)
|
macHex := strings.Replace(mac, ":", "", -1)
|
||||||
macInt := new(big.Int)
|
macInt := new(big.Int)
|
||||||
|
|
|
@ -84,7 +84,7 @@ func NewMDNSProbe(from net.IP, from_hw net.HardwareAddr) (error, []byte) {
|
||||||
RD: true,
|
RD: true,
|
||||||
OpCode: layers.DNSOpCodeQuery,
|
OpCode: layers.DNSOpCodeQuery,
|
||||||
Questions: []layers.DNSQuestion{
|
Questions: []layers.DNSQuestion{
|
||||||
layers.DNSQuestion{
|
{
|
||||||
Name: []byte("_services._dns-sd._udp.local"),
|
Name: []byte("_services._dns-sd._udp.local"),
|
||||||
Type: layers.DNSTypePTR,
|
Type: layers.DNSTypePTR,
|
||||||
Class: layers.DNSClassIN,
|
Class: layers.DNSClassIN,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue