Skip to content

Commit

Permalink
Merge pull request #1391 from zrquan/async
Browse files Browse the repository at this point in the history
Support asynchronous mode
  • Loading branch information
maurosoria authored Oct 11, 2024
2 parents 31ed8f8 + e179332 commit 87343d3
Show file tree
Hide file tree
Showing 15 changed files with 844 additions and 269 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ jobs:
strategy:
fail-fast: false
matrix:
python-version: [3.7, 3.9]
python-version: [3.8, 3.9]
os: ['ubuntu-latest', 'windows-latest']

steps:
Expand Down
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
- Support non-default network interface
- Remove unused dependencies (urllib3, cryptography, cffi, idna, chardet)
- Load targets from a Nmap XML report
- Added --async option to enable asynchronous mode (use coroutines instead of threads)

## [0.4.3] - October 2nd, 2022
- Automatically detect the URI scheme (`http` or `https`) if no scheme is provided
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ Table of Contents
Installation & Usage
------------

**Requirement: python 3.7 or higher**
**Requirement: python 3.8 or higher**

Choose one of these installation options:

Expand Down
11 changes: 7 additions & 4 deletions dirsearch.py
Original file line number Diff line number Diff line change
Expand Up @@ -19,19 +19,22 @@
# Author: Mauro Soria

import sys

from pkg_resources import DistributionNotFound, VersionConflict
import warnings

from lib.core.data import options
from lib.core.exceptions import FailedDependenciesInstallation
from lib.core.installation import check_dependencies, install_dependencies
from lib.core.settings import OPTIONS_FILE
from lib.parse.config import ConfigParser

if sys.version_info < (3, 7):
sys.stderr.write("Sorry, dirsearch requires Python 3.7 or higher\n")
if sys.version_info < (3, 8):
sys.stderr.write("Sorry, dirsearch requires Python 3.8 or higher\n")
sys.exit(1)

# silence pkg_resources deprecation warnings
warnings.simplefilter("ignore", DeprecationWarning)
from pkg_resources import DistributionNotFound, VersionConflict # noqa: E402


def main():
config = ConfigParser()
Expand Down
Loading

0 comments on commit 87343d3

Please sign in to comment.