Skip to content

Commit

Permalink
fix colors in logs
Browse files Browse the repository at this point in the history
  • Loading branch information
milo2012 committed Apr 22, 2018
1 parent 6f3b846 commit 8854e14
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Binary file modified pathBrute
Binary file not shown.
4 changes: 2 additions & 2 deletions pathBrute.go
Original file line number Diff line number Diff line change
Expand Up @@ -265,10 +265,10 @@ func getUrlWorker(urlChan chan string) {
//fmt.Println(each[2])
if tmpStatusCode=="200"{
fmt.Printf("%s [%s] [%d] [%s] [%d of %d]\n",newUrl, color.BlueString(initialStatusCode), lenBody, tmpTitle,currentListCount,totalListCount)
log.Printf("%s [%s] [%d] [%s] [%d of %d]\n",newUrl, color.RedString(initialStatusCode), lenBody, tmpTitle, currentListCount,totalListCount)
log.Printf("%s [%s] [%d] [%s] [%d of %d]\n",newUrl, color.BlueString(initialStatusCode), lenBody, tmpTitle, currentListCount,totalListCount)
} else if tmpStatusCode=="401"{
fmt.Printf("%s [%s] [%d] [%s] [%d of %d]\n",newUrl, color.GreenString(initialStatusCode), lenBody, tmpTitle, currentListCount,totalListCount)
log.Printf("%s [%s] [%d] [%s] [%d of %d]\n",newUrl, color.RedString(initialStatusCode), lenBody, tmpTitle, currentListCount,totalListCount)
log.Printf("%s [%s] [%d] [%s] [%d of %d]\n",newUrl, color.GreenString(initialStatusCode), lenBody, tmpTitle, currentListCount,totalListCount)
} else {
fmt.Printf("%s [%s] [%d] [%s] [%d of %d]\n",newUrl, color.RedString(initialStatusCode), lenBody, tmpTitle, currentListCount,totalListCount)
log.Printf("%s [%s] [%d] [%s] [%d of %d]\n",newUrl, color.RedString(initialStatusCode), lenBody, tmpTitle, currentListCount,totalListCount)
Expand Down

0 comments on commit 8854e14

Please sign in to comment.