If the issue is a request please specify that it is a request in the title (Example: [REQUEST] more features). If this is a question regarding 'onioningestor' please specify that it's a question in the title (Example: [QUESTION] What is x?). Please only submit issues related to 'onioningestor'. Thanks.
Make sure you've checked the following:
[] Python version is 3.10.6
OnionIngestor Output
Please provide the output of OnionIngestor
OnionIngestor Yaml file
This is an example ThreatIngestor config file with some preconfigured RSS
sources, feeding extracted artifacts into a CSV file.
general:
Run forever, check feeds once an hour.
daemon: True
sleep: 10
onion_validation: ([a-z2-7]{16,56}\.onion)
blacklist: blacklist,keywords,go,here
interestingKeywords: Interesting,Keywords,Go,Here
save-thread: no # Use a separate thread to save onions
TorController:
port: 9051
password: mine password
server: 127.0.0.1 # Address of the server (hostname or IP)
port: 25 # Outgoing SMTP port: 25, 587, ...
tls: no # Enable/disable tls support
username: '' # (optional) Username for authentication. Leave blank for no authentication.
password: '' # (optional) Password for authentication. Leave blank for no authentication.
subject: '[onioningestor] - {subject}'
size-limit: 1048576 # Size limit for pastie, above it's sent as attachement
Description of Issue
sudo python3 -m onioningestor -c config.yml
[30 Mar 2023 21:48:00] - INFO - Starting OnionScraper
Traceback (most recent call last):
File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main
return _run_code(code, main_globals, None,
File "/usr/lib/python3.10/runpy.py", line 86, in _run_code
exec(code, run_globals)
File "/home/Desktop/tools/OnionIngestor/onioningestor/main.py", line 47, in
app = Ingestor(args)
File "/home/Desktop/tools/OnionIngestor/onioningestor/init.py", line 27, in init
self.config = config.Config(args.configFile, self.logger)
File "/home/Desktop/tools/OnionIngestor/onioningestor/config.py", line 26, in init
with io.open(self.filename, "r") as f:
FileNotFoundError: [Errno 2] No such file or directory: 'config.yml'
Environment Details
Linux Ubuntu 22.04
Additional context
Add any other context about the problem here.
Issue Template
Please use this template!
Initial Check
OnionIngestor Output
OnionIngestor Yaml file
This is an example ThreatIngestor config file with some preconfigured RSS
sources, feeding extracted artifacts into a CSV file.
general:
Run forever, check feeds once an hour.
monitor: filename: monitoring.txt
sources:
operators:
- name: onionscan-go
module: onionscan
binpath: /PATH/TO/YOUR/ONIONSCAN/GO/BINARY
- name: simple-screenshot
module: screenshot
screenshots_path: null
- name: yara-rule
module: yara
filename: categories.yar
base_score: 50
database_Engines:
- name: elasticsearch
module: elasticsearch
index: YOUR-ELASTICSEARCH-INDEX_NAME
port : 9200
host : 127.0.0.1
- name: email
module: send_email
alert: no # Enable/disable email alerts
from: alert@example.com
to: alert@example.com
server: 127.0.0.1 # Address of the server (hostname or IP)
port: 25 # Outgoing SMTP port: 25, 587, ...
tls: no # Enable/disable tls support
username: '' # (optional) Username for authentication. Leave blank for no authentication.
password: '' # (optional) Password for authentication. Leave blank for no authentication.
subject: '[onioningestor] - {subject}'
size-limit: 1048576 # Size limit for pastie, above it's sent as attachement
Description of Issue
sudo python3 -m onioningestor -c config.yml [30 Mar 2023 21:48:00] - INFO - Starting OnionScraper Traceback (most recent call last): File "/usr/lib/python3.10/runpy.py", line 196, in _run_module_as_main return _run_code(code, main_globals, None, File "/usr/lib/python3.10/runpy.py", line 86, in _run_code exec(code, run_globals) File "/home/Desktop/tools/OnionIngestor/onioningestor/main.py", line 47, in
app = Ingestor(args)
File "/home/Desktop/tools/OnionIngestor/onioningestor/init.py", line 27, in init
self.config = config.Config(args.configFile, self.logger)
File "/home/Desktop/tools/OnionIngestor/onioningestor/config.py", line 26, in init
with io.open(self.filename, "r") as f:
FileNotFoundError: [Errno 2] No such file or directory: 'config.yml'
Environment Details