Skip to content

Commit

Permalink
Update scan.go
Browse files Browse the repository at this point in the history
  • Loading branch information
R4yGM authored Aug 10, 2021
1 parent 393f471 commit 973627b
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions cmd/scan.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,6 @@ func scan(i int) {
} else {
fmt.Println(fmt.Sprintf("Started scanning with %s\n=====================================", payload))
}
fmt.Println("88")
switch true {
case NormalResultsPath != "":
f, err := os.OpenFile(NormalResultsPath,
Expand All @@ -103,7 +102,6 @@ func scan(i int) {
}
i = i + 1
payload = text[i]
fmt.Println("89")
}

if target != "" {
Expand Down Expand Up @@ -186,8 +184,8 @@ func scan(i int) {
fmt.Println(payload, " nothing found")
fmt.Println("=====================================")

} else if strings.Contains(err.Error(), "proxyconnect") && strings.Contains(err.Error(), "connect: connection refused") {
log.Println(fmt.Sprintf("Can't connect to proxy : %s connection refused", proxy))
} else if strings.Contains(err.Error(), "connect: connection refused") {
log.Println(err.Error())
return
}
}
Expand Down

0 comments on commit 973627b

Please sign in to comment.