Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Feature request: Read file or run command every n requests/seconds #184

Open
n0kovo opened this issue May 24, 2022 · 1 comment
Open

Feature request: Read file or run command every n requests/seconds #184

n0kovo opened this issue May 24, 2022 · 1 comment

Comments

@n0kovo
Copy link

n0kovo commented May 24, 2022

While doing HTTP fuzzing, I'm using a script to grab a CSRF token from a page and save it to a file every minute. It would be very handy to have Patator be able to read from this file while running and include the updated token in the requests.

It would probably provide the most flexibility if there was a function to run a command every n requests or every n seconds, and use the output in subsequent requests. In the case of reading a file, it could simply be done with cat.

Example:
patator http_fuzz url="http://localhost/test.php" method=POST body="csrf-token=SCRIPT0" 0="./get_token.sh:60S"
Where one could specify 0="[command]:N[S|R] where N is the number, and S or R specifies either seconds or requests.

@lanjelot
Copy link
Owner

Can you please try using what is already implemented:

  • the before_* options
  • the PROG keyword

and let me know how you go thanks

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants