mirror of
https://github.com/OJ/gobuster.git
synced 2024-05-19 02:36:02 +02:00
merge working branch
This commit is contained in:
commit
180f5e4186
|
@ -178,7 +178,7 @@ func parseDirOptions() (*libgobuster.Options, *gobusterdir.OptionsDir, error) {
|
|||
// Prompt for PW if not provided
|
||||
if plugin.Username != "" && plugin.Password == "" {
|
||||
fmt.Printf("[?] Auth Password: ")
|
||||
passBytes, err := terminal.ReadPassword(syscall.Stdin)
|
||||
passBytes, err := terminal.ReadPassword(int(syscall.Stdin))
|
||||
// print a newline to simulate the newline that was entered
|
||||
// this means that formatting/printing after doesn't look bad.
|
||||
fmt.Println("")
|
||||
|
|
|
@ -137,7 +137,7 @@ func (d *GobusterDir) ResultToString(r *libgobuster.Result) (*string, error) {
|
|||
|
||||
if d.options.StatusCodesParsed.Contains(r.Status) || d.globalopts.Verbose {
|
||||
if d.options.Expanded {
|
||||
if _, err := fmt.Fprintf(buf, d.options.URL); err != nil {
|
||||
if _, err := fmt.Fprintf(buf, "%s", d.options.URL); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
} else {
|
||||
|
@ -145,7 +145,7 @@ func (d *GobusterDir) ResultToString(r *libgobuster.Result) (*string, error) {
|
|||
return nil, err
|
||||
}
|
||||
}
|
||||
if _, err := fmt.Fprintf(buf, r.Entity); err != nil {
|
||||
if _, err := fmt.Fprintf(buf, "%s", r.Entity); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue