mirror of
https://github.com/OJ/gobuster.git
synced 2024-05-28 04:56:03 +02:00
Compare commits
2 Commits
b2d15b82c7
...
c99e164923
Author | SHA1 | Date | |
---|---|---|---|
firefart | c99e164923 | ||
firefart | 591136d4da |
|
@ -10,11 +10,11 @@ tasks:
|
|||
- go mod tidy -v
|
||||
|
||||
build:
|
||||
aliases: [default, linux]
|
||||
aliases: [default]
|
||||
cmds:
|
||||
- go fmt ./...
|
||||
- go vet ./...
|
||||
- go build -o {{.PROGRAM}}
|
||||
- go build -o {{.OUTPUT_FILE | default .PROGRAM}}
|
||||
env:
|
||||
CGO_ENABLED: 0
|
||||
|
||||
|
@ -29,6 +29,8 @@ tasks:
|
|||
windows:
|
||||
cmds:
|
||||
- task: build
|
||||
vars:
|
||||
OUTPUT_FILE: "{{.PROGRAM}}.exe"
|
||||
env:
|
||||
CGO_ENABLED: 0
|
||||
GOOS: windows
|
||||
|
|
|
@ -36,7 +36,7 @@ func resultWorker(g *libgobuster.Gobuster, filename string, wg *sync.WaitGroup)
|
|||
}
|
||||
if s != "" {
|
||||
s = strings.TrimSpace(s)
|
||||
if g.Opts.NoProgress {
|
||||
if g.Opts.NoProgress || g.Opts.Quiet {
|
||||
_, _ = fmt.Printf("%s\n", s)
|
||||
} else {
|
||||
// only print the clear line when progress output is enabled
|
||||
|
@ -89,7 +89,6 @@ func messageWorker(g *libgobuster.Gobuster, wg *sync.WaitGroup) {
|
|||
}
|
||||
|
||||
func printProgress(g *libgobuster.Gobuster) {
|
||||
if !g.Opts.Quiet && !g.Opts.NoProgress {
|
||||
requestsIssued := g.Progress.RequestsIssued()
|
||||
requestsExpected := g.Progress.RequestsExpected()
|
||||
if g.Opts.Wordlist == "-" {
|
||||
|
@ -100,7 +99,6 @@ func printProgress(g *libgobuster.Gobuster) {
|
|||
s := fmt.Sprintf("%sProgress: %d / %d (%3.2f%%)", TERMINAL_CLEAR_LINE, requestsIssued, requestsExpected, float32(requestsIssued)*100.0/float32(requestsExpected))
|
||||
_, _ = fmt.Fprint(os.Stderr, s)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// progressWorker outputs the progress every tick. It will stop once cancel() is called
|
||||
|
|
Loading…
Reference in New Issue