Skip to content

Conversation

ByteMastermind
Copy link

This pull request introduces two major improvements to dotdotslash.py:

Parallelize HTTP Requests:

  • Implements Python’s ThreadPoolExecutor to run HTTP requests concurrently, reducing the overall execution time for network-bound operations.
  • Refactors URL generation and request processing into a dedicated task function.
  • Uses a set to avoid duplicate URL requests during iteration while preserving colored output and verbose logging.

Fix Regex Replacement Error:

  • Addresses the 'bad escape \w' error encountered in dotdotslash.py.
  • Modifies the re.sub call to use a lambda function, ensuring that the replacement string is returned literally and preventing Python’s regex engine from misinterpreting escape sequences.
  • This fix resolves issues when the replacement string contains backslashes (for example, file paths provided by match.py).

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

Successfully merging this pull request may close these issues.

1 participant