1
1
Fork 0
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:
Christian Mehlmauer 2018-09-22 06:40:23 +02:00
commit 180f5e4186
No known key found for this signature in database
GPG Key ID: DCF54A05D6E62591
2 changed files with 3 additions and 3 deletions

View File

@ -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("")

View File

@ -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
}