From a3e858f225d51a53ab88d83b97cb102dd61c4db2 Mon Sep 17 00:00:00 2001 From: 4shen0ne <4shen.01@gmail.com> Date: Sun, 13 Oct 2024 17:39:28 +0800 Subject: [PATCH] update README and config.ini for async mode --- README.md | 8 ++++++++ config.ini | 1 + 2 files changed, 9 insertions(+) diff --git a/README.md b/README.md index a21a3879e..a441dcba6 100644 --- a/README.md +++ b/README.md @@ -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 @@ -339,6 +340,7 @@ max-retries = 1 [advanced] crawl = False +async = False [view] full-url = False @@ -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 diff --git a/config.ini b/config.ini index 21b4413a6..fdec2dc9a 100644 --- a/config.ini +++ b/config.ini @@ -63,6 +63,7 @@ max-retries = 1 [advanced] crawl = False +async = False [view] full-url = False