Skip to content

Commit

Permalink
Merge pull request #918 from projectdiscovery/use_request_to_ctor
Browse files Browse the repository at this point in the history
disable headless auto form filling
  • Loading branch information
Mzack9999 authored Jun 11, 2024
2 parents 38d052c + 3618c92 commit 7808bcc
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions internal/runner/options.go
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,13 @@ func validateOptions(options *types.Options) error {
return errorutil.New("no inputs specified for crawler")
}

// Disabling automatic form fill (-aff) for headless navigation due to incorrect implementation.
// Form filling should be handled via headless actions within the page context
if options.Headless && options.AutomaticFormFill {
options.AutomaticFormFill = false
gologger.Info().Msgf("Automatic form fill (-aff) has been disabled for headless navigation.")
}

if options.Headless && options.Passive {
return errorutil.New("headless mode (-headless) and passive mode (-passive) cannot be used together")
}
Expand Down

0 comments on commit 7808bcc

Please sign in to comment.