Skip to content

Commit

Permalink
Merge pull request #1405 from zrquan/async
Browse files Browse the repository at this point in the history
update README and config.ini for async mode
  • Loading branch information
maurosoria authored Oct 14, 2024
2 parents ca61f77 + a3e858f commit 50df678
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -258,6 +258,7 @@ Options:
Advanced Settings:
--crawl Crawl for new paths in responses
--async Enable asynchronous mode
View Settings:
--full-url Full URLs in the output (enabled automatically in
Expand Down Expand Up @@ -339,6 +340,7 @@ max-retries = 1

[advanced]
crawl = False
async = False

[view]
full-url = False
Expand Down Expand Up @@ -414,6 +416,12 @@ In spite of that, the speed still depends a lot on the response time of the serv
python3 dirsearch.py -e php,htm,js,bak,zip,tgz,txt -u https://target -t 20
```

----
### Asynchronous
You can switch to asynchronous mode by `--async`, let dirsearch use coroutines instead of threads to handle concurrent requests.

In theory, asynchronous mode offers better performance and lower CPU usage since it doesn't require switching between different thread contexts. Additionally, pressing CTRL+C will immediately pause progress without needing to wait for threads to suspend.

----
### Prefixes / Suffixes
- **--prefixes**: Add custom prefixes to all entries
Expand Down
1 change: 1 addition & 0 deletions config.ini
Original file line number Diff line number Diff line change
Expand Up @@ -63,6 +63,7 @@ max-retries = 1

[advanced]
crawl = False
async = False

[view]
full-url = False
Expand Down

0 comments on commit 50df678

Please sign in to comment.