diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..491deae --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,7 @@ +version: 2 +updates: +- package-ecosystem: pip + directory: "/" + schedule: + interval: daily + open-pull-requests-limit: 10 diff --git a/.gitignore b/.gitignore index 0d20b64..077e0eb 100644 --- a/.gitignore +++ b/.gitignore @@ -1 +1,5 @@ *.pyc + +# macOS system files +.DS_Store +._* diff --git a/.whitesource b/.whitesource new file mode 100644 index 0000000..55b922e --- /dev/null +++ b/.whitesource @@ -0,0 +1,12 @@ +{ + "scanSettings": { + "baseBranches": [] + }, + "checkRunSettings": { + "vulnerableCheckRunConclusionLevel": "failure", + "displayMode": "diff" + }, + "issueSettings": { + "minSeverityLevel": "LOW" + } +} \ No newline at end of file diff --git a/README.md b/README.md index c860b29..64c880b 100644 --- a/README.md +++ b/README.md @@ -9,10 +9,16 @@ Sublist3r is a python tool designed to enumerate subdomains of websites using OS ![Sublist3r](http://www.secgeek.net/images/Sublist3r.png "Sublist3r in action") -## Installation +## Installation in Debian distros ``` -git clone https://github.com/aboul3la/Sublist3r.git +cd /usr/share && git clone https://github.com/aboul3la/Sublist3r.git && cd /usr/share/Sublist3r && chmod +x *.* && sudo pip install ebcdic && sudo pip3 install ebcdic && sudo pip install -r requirements.txt && python setup.py install && cd +``` + +## Usage in Debian Distros + +``` +sublist3r -b -d yourdomain.com -t 37 -v -o /root/sublist3r_yourdomain_com ``` ## Recommended Python Version: @@ -32,10 +38,7 @@ These dependencies can be installed using the requirements file: ``` c:\python27\python.exe -m pip install -r requirements.txt ``` -- Installation on Linux -``` -sudo pip install -r requirements.txt -``` + Alternatively, each module can be installed independently as shown below. @@ -46,20 +49,11 @@ Alternatively, each module can be installed independently as shown below. c:\python27\python.exe -m pip install requests ``` -- Install for Ubuntu/Debian: -``` -sudo apt-get install python-requests -``` - - Install for Centos/Redhat: ``` sudo yum install python-requests ``` -- Install using pip on Linux: -``` -sudo pip install requests -``` #### dnspython Module (http://www.dnspython.org/) @@ -68,33 +62,12 @@ sudo pip install requests c:\python27\python.exe -m pip install dnspython ``` -- Install for Ubuntu/Debian: -``` -sudo apt-get install python-dnspython -``` - -- Install using pip: -``` -sudo pip install dnspython -``` - -#### argparse Module - -- Install for Ubuntu/Debian: -``` -sudo apt-get install python-argparse -``` - Install for Centos/Redhat: ``` sudo yum install python-argparse ``` -- Install using pip: -``` -sudo pip install argparse -``` - **for coloring in windows install the following libraries** ``` c:\python27\python.exe -m pip install win_unicode_console colorama diff --git a/project.json b/project.json new file mode 100644 index 0000000..040538a --- /dev/null +++ b/project.json @@ -0,0 +1,93 @@ +{ + "name": "repo-repos-sublist3r", + "root": "repos/Sublist3r", + "projectType": "library", + "targets": { + "status": { + "executor": "nx:run-commands", + "options": { + "command": "git -C repos/Sublist3r status --short || true" + }, + "metadata": { + "supervisorRequired": true + } + }, + "fetch": { + "executor": "nx:run-commands", + "options": { + "command": "git -C repos/Sublist3r fetch --all --prune || true" + }, + "metadata": { + "supervisorRequired": true + } + }, + "log": { + "executor": "nx:run-commands", + "options": { + "command": "git -C repos/Sublist3r log --oneline -10 || true" + }, + "metadata": { + "supervisorRequired": true + } + }, + "manifests": { + "executor": "nx:run-commands", + "options": { + "command": "find repos/Sublist3r \\( -name package.json -o -name pyproject.toml -o -name Cargo.toml -o -name go.mod -o -name setup.py \\) -not -path '*/node_modules/*' -not -path '*/testdata/*' -not -path '*/fixtures/*' -print | sort" + }, + "metadata": { + "supervisorRequired": true + } + }, + "python-test": { + "executor": "nx:run-commands", + "options": { + "command": "sh -lc 'cd repos/Sublist3r && pytest -q || python -m pytest -q || true'" + }, + "metadata": { + "supervisorRequired": true + } + }, + "python-lint": { + "executor": "nx:run-commands", + "options": { + "command": "sh -lc 'cd repos/Sublist3r && ruff check . || flake8 . || true'" + }, + "metadata": { + "supervisorRequired": true + } + }, + "python-build": { + "executor": "nx:run-commands", + "options": { + "command": "sh -lc 'cd repos/Sublist3r && python -m build || true'" + }, + "metadata": { + "supervisorRequired": true + } + }, + "security-python": { + "executor": "nx:run-commands", + "options": { + "command": "sh -lc 'cd repos/Sublist3r && pip-audit || true'" + }, + "metadata": { + "supervisorRequired": true + } + }, + "security": { + "executor": "nx:run-commands", + "options": { + "command": "sh -lc 'printf \"security targets: security-python\\n\"'" + }, + "metadata": { + "supervisorRequired": true + } + } + }, + "tags": [ + "scope:repos", + "type:subrepo", + "lang:python" + ] +} \ No newline at end of file diff --git a/requirements.txt b/requirements.txt index 498ea9d..efee5e7 100644 --- a/requirements.txt +++ b/requirements.txt @@ -1,3 +1,3 @@ -argparse -dnspython -requests +argparse==1.4.0 +dnspython==2.8.0 +requests==2.32.5