
Durchsucht .onion-Seiten über Tor, um Seitentitel, Hostnamen und Linkbeziehungen zu sammeln, und exportiert JSON-Bäume und Visualisierungen für Dark-Web-OSINT-Untersuchungen.
<pre>
████████╗ ██████╗ ██████╗ ██████╗ ██████╗ ████████╗
╚══██╔══╝██╔═══██╗██╔══██╗ ██╔══██╗██╔═████╗╚══██╔══╝
██║ ██║ ██║██████╔╝ ██████╔╝██║██╔██║ ██║
██║ ██║ ██║██╔══██╗ ██╔══██╗████╔╝██║ ██║
██║ ╚██████╔╝██║ ██║ ██████╔╝╚██████╔╝ ██║
╚═╝ ╚═════╝ ╚═╝ ╚═╝ ╚═════╝ ╚═════╝ ╚═╝
Open Source Intelligence Tool for the Dark Web
</pre>
<p align="center">
<a href="https://owasp.org/www-project-torbot/">
<img src="https://assets.kitploit.com/production/public/readmes/58461/8902e5836a324eae0ab281a9be7d62683e025d503ce6778cce6768fb908c1089/44f87cefbeddabc12e5302f46a08c8c511e4ec48c814d7fbb70dc1c317e73552-display-v1.webp" width="270" title="OWASP Foundation">
</a>
<img src="https://assets.kitploit.com/production/public/readmes/58461/1cc64251df7a699491fb27a2d732f724bf9fe989efb8dd3f7fe750e316f2b333/2a88ed821677ed3b033b12c0815ff31e60d4e86357dbbfc127253fe018096b96-display-v1.webp" width="250" title="Hacktoberfest 2022">
<img src="https://assets.kitploit.com/production/public/readmes/58461/54bda09bea5708a8bec2bc836b8decebec80caecd37906f84e76799af642bb6a/159aa0dc48e84a932700c3326470bd3053551554561821e67f78d3db2982e745-display-v1.webp" width="160" title="OpenSource">
</p>
### Status-/Social-Links
[](https://github.com/DedSecInside/TorBot/actions/workflows/pytest.yml)
[](https://github.com/DedSecInside/TorBot/actions/workflows/flake8.yml)
[](https://join.slack.com/t/dedsec-inside/shared_invite/zt-i4jcgj8w-1ecHiSdRubwuppAzz8~yfg)
[](https://www.codetriage.com/dedsecinside/torbot)
[]()
[]()
### Funktionen
1. Onion-Crawler (.onion)
2. Gibt den Seitentitel oder, falls kein Seitentitel verfügbar ist, den Hostnamen sowie die Adresse mit einer kurzen Beschreibung der Website zurück.
3. Speichert Links in einer Datenbank (nicht umgesetzt)
4. Gibt das HTML einer Website aus oder speichert es in einer HTML-Datei. (nicht umgesetzt)
5. Speichert den Linkbaum als JSON-Datei.
6. Durchsucht benutzerdefinierte Domains
7. Prüft, ob der Link erreichbar ist
8. Integrierter Updater
9. Erstellt einen visuellen Baum der Linkbeziehungen, der schnell angezeigt oder in einer Datei gespeichert werden kann
### Aktuelle Verbesserungen
- Die CLI erlaubt es nun, `--version` und `--update` ohne Angabe einer URL auszuführen.
- Der Crawler löst relative Links nun gegen die aktuelle Seite auf und überspringt nicht unterstützte oder fehlerhafte hrefs auf elegantere Weise.
- Die optionale Desktop-Oberfläche TorBotApp kann über die CLI mit `torbot app` gestartet werden, wenn sie als benachbarter Checkout installiert ist.
...(wird aktualisiert)
### Abhängigkeiten
- Tor (optional)
- Python 3.10+
- pip
## Schnellstart
### Lokale Einrichtung
```sh
python3 -m venv .venv
source .venv/bin/activate
python -m pip install --upgrade pip
python -m pip install -r requirements.txt
python -m pip install -e .
```
### Installation mit OTinstaller (Linux)
[OTinstaller](https://github.com/OSINTVerseHQ/OTinstaller) ist ein Drittanbieter-Tool-Manager, der die `torbot`-PyPI-Version in einer eigenen virtualenv installiert. Er wird nicht vom TorBot-Team gepflegt, daher melden Sie Probleme damit bitte [im OTinstaller-Tracker](https://github.com/OSINTVerseHQ/OTinstaller/issues).
```sh
pipx install otinstaller
otinstaller init
otinstaller install torbot
# url:... is passed to TorBot as -u; the other flags go through unchanged
otinstaller run torbot -- url:https://example.com --depth 2 --visualize table
```
### CLI ausführen
```sh
python main.py --help
python main.py --version
python main.py -u https://example.com --depth 2 --visualize table
```
### Häufige Beispiele
```sh
# Gather basic site information
python main.py -u https://example.com --info
# Save the crawl tree as JSON
python main.py -u https://example.com --depth 2 --save json
# Disable SOCKS5 if you are not using Tor locally
python main.py -u https://example.com --disable-socks5 --visualize tree
# Launch the optional desktop app when TorBotApp is installed
torbot app
```
### Evidenzbasierte KI-Analyse
Speichern Sie ein versioniertes Crawl-Ergebnis und verwandeln Sie es in ein zitiertes Untersuchungspaket:
```sh
torbot --url https://example.com --disable-socks5 \
--save result --result-file crawl-result.json
torbot analyze crawl-result.json --provider ollama --model qwen3 \
--output investigation/
```
Analyst verwendet standardmäßig einen lokalen Ollama-Endpunkt. Remote-Anbieter, die mit OpenAI kompatibel sind, erfordern das explizite Flag `--allow-remote`. Jeder unterstützte Befund muss erfasste Belege zitieren, und ein Ausfall eines Anbieters verhindert niemals, dass das deterministische Belegpaket geschrieben wird. Siehe [TorBot Analyst](https://github.com/dedsecinside/torbot/blob/dev/docs/ANALYST.md) für den Offline-Schnellstart, Ausgabeformate, die Datenschutzgrenze und Schemas.
### Optionen
```text
usage: Gather and analyze data from Tor sites.
optional arguments:
-u URL, --url URL Specify a website link to crawl
--depth DEPTH Specify max depth of crawler (default 1)
-h, --help Show this help message and exit
--host Set IP address for SOCKS5 proxy (defaults to 127.0.0.1)
--port Set port for SOCKS5 proxy (defaults to 9050)
-v Displays DEBUG level logging, default is INFO
--version Show the current version of TorBot.
--update Update TorBot to the latest stable version
--app Run optional TorBot desktop app
--app-dir APP_DIR Path to a TorBotApp checkout
-q, --quiet Prevents display of header and IP address
--save FORMAT Save results in a file. (tree, JSON)
--visualize FORMAT Visualizes tree of data gathered. (tree, JSON, table)
-i, --info Info displays basic info of the scanned site
--disable-socks5 Executes HTTP requests without using SOCKS5 proxy
```
> `-u/--url` ist für crawl-bezogene Befehle wie `--info`, `--save` und `--visualize` erforderlich.
Wenn du Tor lokal verwendest, lass den SOCKS5-Proxy aktiviert. Wenn du Tor nicht verwendest, füge `--disable-socks5` hinzu, um Proxy-Verbindungsfehler zu vermeiden.
Mehr über torrc erfährst du hier: [Torrc](https://github.com/DedSecInside/TorBoT/blob/master/Tor.md)
## Optionale Desktop-App
TorBot bleibt ein CLI-first Python-Tool. Die Desktop-UI befindet sich im separaten
[TorBotApp](https://github.com/KingAkeem/TorBotApp) Electron-Projekt, sodass Node und
Electron für CLI-Nutzer nicht erforderlich sind.
Um sie von dieser CLI aus zu starten, installiere TorBotApp als benachbarten Checkout:
```text
code/
+-- TorBot/
+-- TorBotApp/
```
Dann ausführen:
```sh
torbot app
```
Wenn sich TorBotApp an einem anderen Ort befindet, verwenden Sie entweder:
```sh
TORBOT_APP_DIR=/path/to/TorBotApp torbot app
torbot --app --app-dir /path/to/TorBotApp
```
Siehe [Desktop App Architecture](https://github.com/dedsecinside/torbot/blob/dev/docs/DESKTOP_APP.md) für das Zusammenspiel von CLI, optionaler UI und Backend-Diensten.
## Kuratierte Funktionen
- [x] Überarbeitung des Visualisierungsmoduls
- [x] Implementierung der BFS-Suche für den Webcrawler
- [x] Verbesserung der Stabilität (Fehler ordnungsgemäß behandeln, Testabdeckung erweitern usw.)
- [x] Erhöhung der Testabdeckung
- [ ] Speichern der neuesten Suchergebnisse in einer Datenbank
- [ ] Randomisierung der Tor-Verbindung (zufälliger Header und Identität)
- [ ] Keyword-/Phrasensuche
- [ ] Integration sozialer Medien
- [ ] Erhöhung der Anonymität
- [ ] Screenshot-Erfassung
## Beitragsrichtlinien
### Ein Problem gefunden?
Wenn Sie auf Probleme im Projekt stoßen, lassen Sie es uns bitte wissen, indem Sie [hier](https://github.com/DedSecInside/TorBot/issues/new/choose) ein neues Issue erstellen.
### Entwicklerrichtlinien
Wir freuen uns über Beiträge zu diesem Projekt! Hier sind einige Richtlinien, die Sie befolgen sollten:
1. Forken Sie das Repository und erstellen Sie einen neuen Branch für Ihren Beitrag.
2. Stellen Sie sicher, dass Ihr Code alle Tests besteht, indem Sie `pytest` ausführen, bevor Sie einen Pull Request an den `dev`-Branch einreichen.
3. Befolgen Sie den [PEP8](https://www.python.org/dev/peps/pep-0008/)-Styleguide für Python-Code.
4. Stellen Sie sicher, dass Sie für alle neuen Funktionen oder Änderungen eine angemessene Dokumentation hinzufügen.
5. Wenn Sie einen Pull Request einreichen, geben Sie bitte eine detaillierte Beschreibung der vorgenommenen Änderungen an.
## Referenzen
1. M. Glassman und M. J. Kang, „Intelligence in the internet age: The emergence and evolution of Open Source Intelligence (OSINT)“, Comput. Human Behav., Bd. 28, Nr. 2, S. 673–682, 2012.
2. D. Bradbury, „In plain view: open source intelligence“, Comput. Fraud Secur., Bd. 2011, Nr. 4, S. 5–9, 2011.
3. B. Butler, B. Wardman und N. Pratt, „REAPER: an automated, scalable solution for mass credential harvesting and OSINT“, 2016 APWG Symp. Electron. Crime Res., S. 1–10, 2016.
4. B. Zantout und R. A. Haraty, „I2P Data Communication System I2P Data Communication System“, Nr. April 2002, 2014.
5. J. Qin, Y. Zhou, G. Lai, E. Reid, M. Sageman und H. Chen, „The dark web portal project: collecting and analyzing the presence of terrorist groups on the web“, in Proceedings of the 2005 IEEE international conference on Intelligence and Security Informatics, 2005, S. 623–624.
6. D. Moore, T. Rid, D. Moore und T. Rid, „Cryptopolitik and the Darknet Cryptopolitik and the Darknet“, Bd. 6338, 2016.
7. G. Weimann, „Going dark: Terrorism on the dark Web“, Stud. Confl. Terror., Bd. 39, Nr. 3, S. 195–206, 2016.
8. A. T. Zulkarnine, R. Frank, B. Monk, J. Mitchell und G. Davies, „Surfacing collaborated networks in dark web to find illicit and criminal content“, in Intelligence and Security Informatics (ISI), 2016 IEEE Conference on, 2016, S. 109–114.
9. T. Minárik und A.-M. Osula, „Tor does not stink: Use and abuse of the Tor anonymity network from the perspective of law“, Comput. Law Secur. Rev., Bd. 32, Nr. 1, S. 111–127, 2016.
10. K. Loesing, S. J. Murdoch und R. Dingledine, „A Case Study on Measuring Statistical Data in the {T}or Anonymity Network“, in Proceedings of the Workshop on Ethics in Computer Security Research (WECSR 2010), 2010.
11. B. Nafziger, „Data Mining in the Dark : Darknet Intelligence Automation“, 2017.
12. I. Sanchez-Rola, D. Balzarotti und I. Santos, „The onions have eyes: A comprehensive structure and privacy analysis of tor hidden services“, in Proceedings of the 26th International Conference on World Wide Web, 2017, S. 1251–1260.
13. Mouli VR, Jevitha KP. „Web Services Attacks and Security-A Systematic Literature Review.“, Procedia Computer Science. 2016 Jan 1;93:870-7.
14. Cova M, Felmetsger V, Vigna G. „Vulnerability analysis of web-based applications. InTest and Analysis of Web Services“ 2007 (S. 363-394). Springer, Berlin, Heidelberg.
15. B. R. Holland, „Enabling Open Source Intelligence (OSINT) in private social networks“, 2012.
16. S. Nakamoto, „Bitcoin: A Peer-to-Peer Electronic Cash System“, Cryptogr. Mail. List https//metzdowd.com, 2009.
17. M. Wesam, A. Nabki, E. Fidalgo, E. Alegre und I. De Paz, „Classifying Illegal Activities on Tor Network Based on Web Textual Contents“, Bd. 1, S. 35–43, 2017.
18. Sathyadevan S, Gangadharan S. „Crime analysis and prediction using data mining“. In Networks & Soft Computing (ICNSC), 2014 First International Conference on 2014 Aug 19 (S. 406-412). IEEE.
19. Chau M, Chen H. „A machine learning approach to web page filtering using content and structure analysis. Decision Support Systems.“ 2008 Jan 1;44(2):482-94.
20. Ani R, Jose J, Wilson M, Deepa OS. „Modified Rotation Forest Ensemble Classifier for Medical Diagnosis in Decision Support Systems“, In Progress in Advanced Computing and Intelligent Engineering 2018 (S. 137-146). Springer, Singapore.
21. Ani R, Augustine A, Akhil N.C. und Deepa O.S., 2016. „Random Forest Ensemble Classifier to Predict the Coronary Heart Disease Using Risk Factors“, In Proceedings of the International Conference on Soft Computing Systems (S. 701-710). Springer, New Delhi.
## Maintainer
- [X] [PS Narayanan](https://github.com/PSNAppz) - Mitinhaber
- [X] [KingAkeem](https://github.com/KingAkeem) - Mitinhaber
## Vielen Dank an alle unsere Mitwirkenden
<a href="https://github.com/DedSecInside/TorBot/graphs/contributors">
<img src="https://contrib.rocks/image?repo=DedSecInside/TorBot" />
</a>
## Lizenz
[GNU Public License](https://github.com/DedSecInside/TorBot/blob/dev/LICENSE.md)