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
|
||||||
|
|
70291
network/manuf.go
70291
network/manuf.go
File diff suppressed because it is too large
Load diff
|
@ -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