Skip to content

Commit 8d1babf

Browse files
committed
Remove unneeded prints and fix formatting.
1 parent 13f404c commit 8d1babf

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

main.go

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
// go-out
22
//
33
// egress busting using:
4-
// letmeoutofyour.net by @mubix
5-
// allports.exposed by @bhinfosecurity
4+
// letmeoutofyour.net by @mubix
5+
// allports.exposed by @bhinfosecurity
66
//
77
// 2018 @leonjza
88

@@ -122,17 +122,16 @@ func (service *service) testHTTPEgress(port int) {
122122
}
123123

124124
timeout := time.Duration(*timeoutPtr) * time.Second
125-
126-
client := http.Client {
125+
126+
client := http.Client{
127127
Timeout: timeout,
128128
Transport: transport,
129129
}
130130
resp, err := client.Get(url.String())
131131
if err != nil {
132132
if *invertPtr {
133133
_, err := client.Get(url.String())
134-
if err != nil {
135-
fmt.Fprint(os.Stdout, "\x1b[2K")
134+
if err != nil {
136135
fmt.Printf("[!] Looks like we have no egress using %s on port %d\n", url.String(), port)
137136
}
138137
return
@@ -145,9 +144,8 @@ func (service *service) testHTTPEgress(port int) {
145144
panic(err)
146145
}
147146
if strings.Contains(string(body), service.match) && !*invertPtr {
148-
fmt.Fprint(os.Stdout, "\x1b[2K")
149147
fmt.Printf("[!] Looks like we have egress using %s on port %d\n", url.String(), port)
150-
}
148+
}
151149
}
152150

153151
func validateFlags() bool {

0 commit comments

Comments
 (0)