Skip to content

Commit

Permalink
Merge pull request #1354 from ajcriado/1305-Issue-fix
Browse files Browse the repository at this point in the history
1305 Issue fix - delay applied to all requests
  • Loading branch information
maurosoria authored Jan 5, 2024
2 parents bca5d53 + 0efc6f9 commit 6be2421
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions CONTRIBUTORS.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,7 @@
- [Ovi3](https://github.com/Ovi3)
- [u21h2](https://www.github.com/u21h2)
- [Valentijn Scholten](https://www.github.com/valentijnscholten)
- [ajcriado](https://www.github.com/ajcriado)

Special thanks to all the people who are named here!

Expand Down
6 changes: 5 additions & 1 deletion lib/core/scanner.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,11 @@
# Author: Mauro Soria

import re
import time

from urllib.parse import unquote

from lib.core.data import options
from lib.core.logger import logger
from lib.core.settings import (
REFLECTED_PATH_MARKER,
Expand Down Expand Up @@ -52,7 +54,8 @@ def setup(self):
rand_string(TEST_PATH_LENGTH),
)
first_response = self.requester.request(first_path)
self.response = first_response
self.response = first_response
time.sleep(options["delay"])

duplicate = self.get_duplicate(first_response)
# Another test was performed before and has the same response as this
Expand All @@ -67,6 +70,7 @@ def setup(self):
rand_string(TEST_PATH_LENGTH, omit=first_path),
)
second_response = self.requester.request(second_path)
time.sleep(options["delay"])

if first_response.redirect and second_response.redirect:
self.wildcard_redirect_regex = self.generate_redirect_regex(
Expand Down

0 comments on commit 6be2421

Please sign in to comment.