detecti-cli 2.0.0__tar.gz
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- detecti_cli-2.0.0/.env.example +20 -0
- detecti_cli-2.0.0/.github/workflows/publish.yml +37 -0
- detecti_cli-2.0.0/.gitignore +54 -0
- detecti_cli-2.0.0/PKG-INFO +554 -0
- detecti_cli-2.0.0/README.md +521 -0
- detecti_cli-2.0.0/__init__.py +14 -0
- detecti_cli-2.0.0/__main__.py +16 -0
- detecti_cli-2.0.0/banner +12 -0
- detecti_cli-2.0.0/detecti/__init__.py +0 -0
- detecti_cli-2.0.0/detecti/cli.py +649 -0
- detecti_cli-2.0.0/detecti/config.py +188 -0
- detecti_cli-2.0.0/detecti/core/__init__.py +1 -0
- detecti_cli-2.0.0/detecti/core/database/__init__.py +5 -0
- detecti_cli-2.0.0/detecti/core/database/config_db.py +73 -0
- detecti_cli-2.0.0/detecti/core/database/schema.py +136 -0
- detecti_cli-2.0.0/detecti/core/database/storage.py +1388 -0
- detecti_cli-2.0.0/detecti/core/engine.py +1032 -0
- detecti_cli-2.0.0/detecti/core/models.py +278 -0
- detecti_cli-2.0.0/detecti/data/config.sqlite +0 -0
- detecti_cli-2.0.0/detecti/data/dbs/.gitkeep +2 -0
- detecti_cli-2.0.0/detecti/data/dbs/example.com.sqlite +0 -0
- detecti_cli-2.0.0/detecti/modules/__init__.py +29 -0
- detecti_cli-2.0.0/detecti/modules/base.py +57 -0
- detecti_cli-2.0.0/detecti/modules/censys.py +813 -0
- detecti_cli-2.0.0/detecti/modules/crtsh.py +98 -0
- detecti_cli-2.0.0/detecti/modules/exploitdb.py +138 -0
- detecti_cli-2.0.0/detecti/modules/masscan.py +561 -0
- detecti_cli-2.0.0/detecti/modules/nuclei.py +449 -0
- detecti_cli-2.0.0/detecti/modules/nvd.py +300 -0
- detecti_cli-2.0.0/detecti/modules/reverse_whois.py +225 -0
- detecti_cli-2.0.0/detecti/modules/shodan.py +412 -0
- detecti_cli-2.0.0/detecti/reporters/__init__.py +7 -0
- detecti_cli-2.0.0/detecti/reporters/csv_reporter.py +74 -0
- detecti_cli-2.0.0/detecti/reporters/html_reporter.py +356 -0
- detecti_cli-2.0.0/detecti/reporters/json_reporter.py +26 -0
- detecti_cli-2.0.0/detecti/reporters/markdown_reporter.py +203 -0
- detecti_cli-2.0.0/detecti/utils/__init__.py +1 -0
- detecti_cli-2.0.0/detecti/utils/http.py +294 -0
- detecti_cli-2.0.0/detecti/utils/logger.py +378 -0
- detecti_cli-2.0.0/detecti/utils/setup.py +453 -0
- detecti_cli-2.0.0/detecti/web/__init__.py +6 -0
- detecti_cli-2.0.0/detecti/web/api/__init__.py +1 -0
- detecti_cli-2.0.0/detecti/web/api/auth.py +109 -0
- detecti_cli-2.0.0/detecti/web/api/graph_builder.py +901 -0
- detecti_cli-2.0.0/detecti/web/api/routes.py +1602 -0
- detecti_cli-2.0.0/detecti/web/process_manager.py +283 -0
- detecti_cli-2.0.0/detecti/web/server.py +183 -0
- detecti_cli-2.0.0/detecti/web/static/android-chrome-192x192.png +0 -0
- detecti_cli-2.0.0/detecti/web/static/android-chrome-512x512.png +0 -0
- detecti_cli-2.0.0/detecti/web/static/apple-touch-icon.png +0 -0
- detecti_cli-2.0.0/detecti/web/static/css/__init__.py +1 -0
- detecti_cli-2.0.0/detecti/web/static/css/dashboard.css +3802 -0
- detecti_cli-2.0.0/detecti/web/static/favicon-16x16.png +0 -0
- detecti_cli-2.0.0/detecti/web/static/favicon-32x32.png +0 -0
- detecti_cli-2.0.0/detecti/web/static/favicon.ico +0 -0
- detecti_cli-2.0.0/detecti/web/static/img/DetecTI_Security_Logo.png +0 -0
- detecti_cli-2.0.0/detecti/web/static/img/detecti-ico.png +0 -0
- detecti_cli-2.0.0/detecti/web/static/index.html +677 -0
- detecti_cli-2.0.0/detecti/web/static/js/__init__.py +1 -0
- detecti_cli-2.0.0/detecti/web/static/js/api.js +177 -0
- detecti_cli-2.0.0/detecti/web/static/js/cytoscape-cose-bilkent.js +458 -0
- detecti_cli-2.0.0/detecti/web/static/js/cytoscape-dagre.js +397 -0
- detecti_cli-2.0.0/detecti/web/static/js/cytoscape.min.js +31 -0
- detecti_cli-2.0.0/detecti/web/static/js/dagre.min.js +3809 -0
- detecti_cli-2.0.0/detecti/web/static/js/graph.js +7439 -0
- detecti_cli-2.0.0/detecti/web/static/js/lucide.min.js +12 -0
- detecti_cli-2.0.0/detecti/web/static/login.html +290 -0
- detecti_cli-2.0.0/detecti/web/static/site.webmanifest +1 -0
- detecti_cli-2.0.0/install.py +104 -0
- detecti_cli-2.0.0/pyproject.toml +69 -0
- detecti_cli-2.0.0/requirements.txt +18 -0
- detecti_cli-2.0.0/tests/__init__.py +1 -0
- detecti_cli-2.0.0/tests/conftest.py +14 -0
- detecti_cli-2.0.0/tests/test_engine_cli.py +462 -0
- detecti_cli-2.0.0/tests/test_http.py +61 -0
- detecti_cli-2.0.0/tests/test_masscan.py +270 -0
- detecti_cli-2.0.0/tests/test_models.py +266 -0
- detecti_cli-2.0.0/tests/test_modules.py +493 -0
- detecti_cli-2.0.0/tests/test_nuclei.py +193 -0
- detecti_cli-2.0.0/tests/test_reporters.py +102 -0
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# ==============================================================================
|
|
2
|
+
# DetecTI - Cyber Lead Intelligence Configuration Environment Template
|
|
3
|
+
# Copy this file to .env and insert your API keys as needed.
|
|
4
|
+
# ==============================================================================
|
|
5
|
+
|
|
6
|
+
# [Required for Shodan Queries, Subnets, DNS & Banner Reconnaissance]
|
|
7
|
+
SHODAN_API_KEY=
|
|
8
|
+
|
|
9
|
+
# [Optional: Censys Platform API v3 Personal Access Token & Org ID]
|
|
10
|
+
CENSYS_PAT_TOKEN=
|
|
11
|
+
CENSYS_ORG_ID=
|
|
12
|
+
|
|
13
|
+
# [Optional: NVD API Key for Accelerated CVSS & CWE Enrichment]
|
|
14
|
+
NVD_API_KEY=
|
|
15
|
+
|
|
16
|
+
# [Optional: WhoisFreaks API Key for Structured Reverse WHOIS Domain Mapping]
|
|
17
|
+
WHOISFREAKS_API_KEY=
|
|
18
|
+
|
|
19
|
+
# [Optional: GitHub Personal Access Token for Public Exploit & PoC Hunting]
|
|
20
|
+
GITHUB_TOKEN=
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
name: Publish Python Package to PyPI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
release:
|
|
5
|
+
types: [published]
|
|
6
|
+
|
|
7
|
+
jobs:
|
|
8
|
+
pypi-publish:
|
|
9
|
+
name: Build and publish to PyPI
|
|
10
|
+
runs-on: ubuntu-latest
|
|
11
|
+
|
|
12
|
+
# Required for Trusted Publishing (OIDC)
|
|
13
|
+
permissions:
|
|
14
|
+
id-token: write
|
|
15
|
+
contents: read
|
|
16
|
+
|
|
17
|
+
steps:
|
|
18
|
+
- name: Checkout Repository
|
|
19
|
+
uses: actions/checkout@v4
|
|
20
|
+
|
|
21
|
+
- name: Set up Python
|
|
22
|
+
uses: actions/setup-python@v5
|
|
23
|
+
with:
|
|
24
|
+
python-version: "3.11"
|
|
25
|
+
|
|
26
|
+
- name: Install dependencies
|
|
27
|
+
run: |
|
|
28
|
+
python -m pip install --upgrade pip
|
|
29
|
+
pip install build hatchling
|
|
30
|
+
|
|
31
|
+
- name: Build package
|
|
32
|
+
run: python -m build
|
|
33
|
+
|
|
34
|
+
- name: Publish package to PyPI
|
|
35
|
+
uses: pypa/gh-action-pypi-publish@release/v1
|
|
36
|
+
with:
|
|
37
|
+
verbose: true
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
# Environment & Secrets
|
|
2
|
+
.env
|
|
3
|
+
.env.*
|
|
4
|
+
!.env.example
|
|
5
|
+
|
|
6
|
+
# Aider & LLM logs / Drafts / Local Context
|
|
7
|
+
.aider*
|
|
8
|
+
BLOG_POST.md
|
|
9
|
+
AGY_CONTEXT.md
|
|
10
|
+
AGY_CONTEXT*
|
|
11
|
+
|
|
12
|
+
# Python cache & artifacts
|
|
13
|
+
__pycache__/
|
|
14
|
+
*.py[cod]
|
|
15
|
+
*$py.class
|
|
16
|
+
*.so
|
|
17
|
+
.pytest_cache/
|
|
18
|
+
.coverage
|
|
19
|
+
htmlcov/
|
|
20
|
+
dist/
|
|
21
|
+
build/
|
|
22
|
+
*.egg-info/
|
|
23
|
+
detecti-venv/
|
|
24
|
+
.venv/
|
|
25
|
+
venv/
|
|
26
|
+
ENV/
|
|
27
|
+
|
|
28
|
+
# Node / JS temporary files
|
|
29
|
+
node_modules/
|
|
30
|
+
package.json
|
|
31
|
+
package-lock.json
|
|
32
|
+
test_browser.js
|
|
33
|
+
test_empty_db.js
|
|
34
|
+
|
|
35
|
+
# Temporary files & runtime state
|
|
36
|
+
.webserver.json
|
|
37
|
+
domain
|
|
38
|
+
testeip
|
|
39
|
+
Villa11_Ext
|
|
40
|
+
vila11*
|
|
41
|
+
Villa11*
|
|
42
|
+
validar*
|
|
43
|
+
*.log
|
|
44
|
+
|
|
45
|
+
# Databases: Ignore all test/scan databases except the default example dataset
|
|
46
|
+
data/dbs/*.sqlite
|
|
47
|
+
!data/dbs/example.com.sqlite
|
|
48
|
+
|
|
49
|
+
# Temporary AI / Agent scripts
|
|
50
|
+
fix_*.py
|
|
51
|
+
patch_*.py
|
|
52
|
+
update_*.py
|
|
53
|
+
scratch_*.py
|
|
54
|
+
temp_*.py
|