Importing domain and IP data directly into the database as well as managing target scoping via the Ingestor module
Armory2 throws an sqlite3 error and exits.
1.$ echo 'google.com'>>domains.txt
2.$ armory2 -m Ingestor -d domains.txt -a -p
Traceback (most recent call last):
File "/home/sfttw/pythons/3.7/bin/armory2", line 33, in
sys.exit(load_entry_point('depth-armory==2.0.0', 'console_scripts', 'armory2')())
File "/home/sfttw/pythons/3.7/lib/python3.7/site-packages/depth_armory-2.0.0-py3.7.egg/armory2/armory_cmd.py", line 511, in main
run_module(Module, mod_args, modules[0])
File "/home/sfttw/pythons/3.7/lib/python3.7/site-packages/depth_armory-2.0.0-py3.7.egg/armory2/armory_cmd.py", line 330, in run_module
m.run(args)
File "/home/sfttw/pythons/3.7/lib/python3.7/site-packages/depth_armory-2.0.0-py3.7.egg/armory2/armory_main/includsfttw/modules/Ingestor.py", line 137, in run
self.process_domain(line.strip())
File "/home/sfttw/pythons/3.7/lib/python3.7/site-packages/depth_armory-2.0.0-py3.7.egg/armory2/armory_main/includsfttw/modules/Ingestor.py", line 164, in process_domain
"passive_scope": self.passive_scope,
File "/home/sfttw/pythons/3.7/lib/python3.7/site-packages/django/db/models/manager.py", line 85, in manager_method
return getattr(self.get_queryset(), name)(*args, **kwargs)
File "/home/sfttw/pythons/3.7/lib/python3.7/site-packages/django/db/models/query.py", line 581, in get_or_create
return self.get(**kwargs), False
File "/home/sfttw/pythons/3.7/lib/python3.7/site-packages/django/db/models/query.py", line 431, in get
num = len(clone)
File "/home/sfttw/pythons/3.7/lib/python3.7/site-packages/django/db/models/query.py", line 262, in len
self._fetch_all()
File "/home/sfttw/pythons/3.7/lib/python3.7/site-packages/django/db/models/query.py", line 1324, in _fetch_all
self._result_cache = list(self._iterable_class(self))
File "/home/sfttw/pythons/3.7/lib/python3.7/site-packages/django/db/models/query.py", line 51, in iter
results = compiler.execute_sql(chunksfttw_fetch=self.chunksfttw_fetch, chunk_size=self.chunk_size)
File "/home/sfttw/pythons/3.7/lib/python3.7/site-packages/django/db/models/sql/compiler.py", line 1175, in execute_sql
cursor.execute(sql, params)
File "/home/sfttw/pythons/3.7/lib/python3.7/site-packages/django/db/backends/utils.py", line 98, in execute
return super().execute(sql, params)
File "/home/sfttw/pythons/3.7/lib/python3.7/site-packages/django/db/backends/utils.py", line 66, in execute
return self._execute_with_wrappers(sql, params, many=False, executor=self._execute)
File "/home/sfttw/pythons/3.7/lib/python3.7/site-packages/django/db/backends/utils.py", line 75, in _execute_with_wrappers
return executor(sql, params, many, context)
File "/home/sfttw/pythons/3.7/lib/python3.7/site-packages/django/db/backends/utils.py", line 84, in _execute
return self.cursor.execute(sql, params)
File "/home/sfttw/pythons/3.7/lib/python3.7/site-packages/django/db/utils.py", line 90, in exit
raise dj_exc_value.with_traceback(traceback) from exc_value
File "/home/sfttw/pythons/3.7/lib/python3.7/site-packages/django/db/backends/utils.py", line 84, in _execute
return self.cursor.execute(sql, params)
File "/home/sfttw/pythons/3.7/lib/python3.7/site-packages/django/db/backends/sqlite3/base.py", line 423, in execute
return Database.Cursor.execute(self, query, params)
django.db.utils.OperationalError: no such table: armory_main_domain