File tree Expand file tree Collapse file tree 1 file changed +6
-8
lines changed
Expand file tree Collapse file tree 1 file changed +6
-8
lines changed Original file line number Diff line number Diff line change 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
153151func validateFlags () bool {
You can’t perform that action at this time.
0 commit comments