Skip to content

Commit

Permalink
minor text changes
Browse files Browse the repository at this point in the history
  • Loading branch information
milo2012 committed Apr 26, 2018
1 parent 61da30a commit 1e99bc6
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions pathBrute.go
Original file line number Diff line number Diff line change
Expand Up @@ -235,8 +235,8 @@ func getUrlWorker(urlChan chan string) {
//resp, err := client.Get(newUrl)
initialStatusCode := ""
var tmpTitle = ""
if err!=nil{
if (strings.Contains(err.Error(),"Client.Timeout exceeded") || strings.Contains(err.Error(),"TLS handshake timeout")) {
if err!=nil{
if (strings.Contains(err.Error(),"i/o timeout") || strings.Contains(err.Error(),"Client.Timeout exceeded") || strings.Contains(err.Error(),"TLS handshake timeout")) {
fmt.Printf("%s [%s] [%d of %d]\n",newUrl, color.RedString("Timeout"),currentListCount,totalListCount)
log.Printf("%s [%s] [%d of %d]\n",newUrl, color.RedString("Timeout"),currentListCount,totalListCount)
} else if strings.Contains(err.Error(),"connection refused") {
Expand Down Expand Up @@ -573,7 +573,7 @@ func main() {
if len(pFilename)>0 {
_, err1 := os.Stat(pFilename)
if os.IsNotExist(err1) {
log.Printf("File %s not exists", pFilename)
fmt.Printf("[*] File %s not exists\n", pFilename)
os.Exit(3)
}
_ = err1
Expand Down Expand Up @@ -918,11 +918,10 @@ func main() {
if len(argv.Filename)>0 {
_, err := os.Stat(filename1)
if os.IsNotExist(err) {
log.Printf("File %s not exists", filename1)
fmt.Printf("[*] File %s not exists\n", filename1)
os.Exit(3)
}
lines, err := readLines(filename1)
fmt.Println(lines)
if err!=nil {
fmt.Println("Error: ",err)
} else {
Expand Down
Binary file modified pathBrute_linux
Binary file not shown.
Binary file modified pathBrute_osx
Binary file not shown.

0 comments on commit 1e99bc6

Please sign in to comment.