Skip to content

Is the replace with FUZZ hard coded or can that be enabled/disabled? #1

Description

@aleff-github

From https://discord.com/channels/695645237418131507/1451994700025298957/1452992894247108660

It is not hard-coded - it's configurable and can be enabled/disabled.

  1. Default

By default, wayparam replaces all query parameter values with a placeholder, which is FUZZ.

Example (default):

https://example.com/search?q=test&page=2
→ https://example.com/search?page=FUZZ&q=FUZZ

but you can decide to use --placeholder:

wayparam -d example.com --placeholder X

output:

https://example.com/search?page=X&q=X
  1. Disable replacement entirely (keep real values)

Use --keep-values:

wayparam -d example.com --keep-values

Output:

https://example.com/search?page=2&q=test

This completely disables FUZZ replacement.

Internal logic (for clarity)

Internally this is controlled by NormalizeOptions:

keep_values = False -> replace values with placeholder
keep_values = True -> preserve original values
placeholder = "FUZZ" -> configurable string

So the behavior is explicitly user-controlled, not implicit or hard-coded.

Behavior Option
Default (replace values) (default)
Change placeholder --placeholder VALUE
Keep original values --keep-values
Keep URLs without params --all-urls

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions