|
I have completely the same versions of powershell-empire and sqlalchemy as you.... but I got the following:
┌──(cohst@kali-linux)-[~]
└─$ sudo powershell-empire server
[sudo] password for cohst:
[*] Loading default config
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/sqlalchemy/engine/base.py", line 1276, in _execute_context
self.dialect.do_execute(
File "/usr/lib/python3/dist-packages/sqlalchemy/engine/default.py", line 609, in do_execute
cursor.execute(statement, parameters)
sqlite3.OperationalError: no such column: agents.host_id
The above exception was the direct cause of the following exception:
Traceback (most recent call last):
File "/usr/share/powershell-empire/empire.py", line 12, in <module>
server.run(args)
File "/usr/share/powershell-empire/empire/server/server.py", line 2356, in run
main = empire.MainMenu(args=args)
File "/usr/share/powershell-empire/empire/server/common/empire.py", line 91, in init
self.agents = agents.Agents(self, args=args)
File "/usr/share/powershell-empire/empire/server/common/agents.py", line 111, in init
dbAgents = self.get_agents_db()
File "/usr/share/powershell-empire/empire/server/common/agents.py", line 443, in get_agents_db
results = Session().query(models.Agent).all()
File "/usr/lib/python3/dist-packages/sqlalchemy/orm/query.py", line 3373, in all
return list(self)
File "/usr/lib/python3/dist-packages/sqlalchemy/orm/query.py", line 3535, in iter
return self._execute_and_instances(context)
File "/usr/lib/python3/dist-packages/sqlalchemy/orm/query.py", line 3560, in _execute_and_instances
result = conn.execute(querycontext.statement, self._params)
File "/usr/lib/python3/dist-packages/sqlalchemy/engine/base.py", line 1011, in execute
return meth(self, multiparams, params)
File "/usr/lib/python3/dist-packages/sqlalchemy/sql/elements.py", line 298, in _execute_on_connection
return connection._execute_clauseelement(self, multiparams, params)
File "/usr/lib/python3/dist-packages/sqlalchemy/engine/base.py", line 1124, in _execute_clauseelement
ret = self._execute_context(
File "/usr/lib/python3/dist-packages/sqlalchemy/engine/base.py", line 1316, in _execute_context
self._handle_dbapi_exception(
File "/usr/lib/python3/dist-packages/sqlalchemy/engine/base.py", line 1510, in _handle_dbapiexception
util.raise(
File "/usr/lib/python3/dist-packages/sqlalchemy/util/compat.py", line 182, in raise_
raise exception
File "/usr/lib/python3/dist-packages/sqlalchemy/engine/base.py", line 1276, in _execute_context
self.dialect.do_execute(
File "/usr/lib/python3/dist-packages/sqlalchemy/engine/default.py", line 609, in do_execute
cursor.execute(statement, parameters)
sqlalchemy.exc.OperationalError: (sqlite3.OperationalError) no such column: agents.host_id
[SQL: SELECT agents.id AS agents_id, agents.name AS agents_name, agents.host_id AS agents_host_id, agents.listener AS agents_listener, agents.session_id AS agents_session_id, agents.language AS agents_language, agents.language_version AS agents_language_version, agents.delay AS agents_delay, agents.jitter AS agents_jitter, agents.external_ip AS agents_external_ip, agents.internal_ip AS agents_internal_ip, agents.username AS agents_username, agents.high_integrity AS agents_high_integrity, agents.process_name AS agents_process_name, agents.process_id AS agents_process_id, agents.hostname AS agents_hostname, agents.os_details AS agents_os_details, agents.session_key AS agents_session_key, agents.nonce AS agents_nonce, agents.checkin_time AS agents_checkin_time, agents.lastseen_time AS agents_lastseen_time, agents.parent AS agents_parent, agents.children AS agents_children, agents.servers AS agents_servers, agents.profile AS agents_profile, agents.functions AS agents_functions, agents.kill_date AS agents_kill_date, agents.working_hours AS agents_working_hours, agents.lost_limit AS agents_lost_limit, agents.notes AS agents_notes, agents.architecture AS agents_architecture, agents.killed AS agents_killed, hosts_1.id AS hosts_1_id, hosts_1.name AS hosts_1_name, hosts_1.internal_ip AS hosts_1_internal_ip
FROM agents LEFT OUTER JOIN hosts AS hosts_1 ON hosts_1.id = agents.host_id]
(Background on this error at: http://sqlalche.me/e/13/e3q8)
┌──(cohst@kali-linux)-[~]
└─$ dpkg -l | grep -E '(python3-sqlalchemy |powershell-empire)' | awk '{print $1 " " $2 " " $3}' 1 ⨯
ii powershell-empire 4.1.3-0kali1
ii python3-sqlalchemy 1.3.22+ds1-1
┌──(cohst@kali-linux)-[~]
└─$ |