You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When running sudo empire server with starkiller enabled, the process returns:
[INFO]: Starkiller enabled. Loading.
[INFO]: Starkiller: directory not found. Cloning Starkiller
fatal: could not create work tree dir '/usr/share/empire/empire/server/api/v2/starkiller': Permission denied
[ERROR]: Failed to execute command: Command '['sudo', '-u', 'athena', 'git', 'clone', 'https://github.com/BC-SECURITY/Starkiller.git', PosixPath('/usr/share/empire/empire/server/api/v2/starkiller')]' returned non-zero exit status 128.
I installed Empire in the standard system-level installation dir (to make it accessible for all users) in /usr/share/empire. So, the issue occurs because git is trying to clone starkiller repository as my user despite I run sudo. It must be managed in a different way at code level.
In summary, the command sudo -u athena git clone https://github.com/BC-SECURITY/Starkiller.git /usr/share/empire/empire/server/api/v2/starkiller is useless because it could not have sudo permissions if run as user.
Expected Behavior
No permission denied when I run empire server by sudo while I want to clone StarKiller in a system-level directory.
Steps To Reproduce
Enable StarKiller in config.yaml, install Empire in /usr/share/empire and run sudo empire server.
Anything else?
No response
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
Empire Version
5.11.5
Python Version
3.12
Operating System
Arch Linux
Database
SQLite
Current Behavior
When running
sudo empire server
with starkiller enabled, the process returns:I installed Empire in the standard system-level installation dir (to make it accessible for all users) in
/usr/share/empire
. So, the issue occurs because git is trying to clone starkiller repository as my user despite I runsudo
. It must be managed in a different way at code level.In summary, the command
sudo -u athena git clone https://github.com/BC-SECURITY/Starkiller.git /usr/share/empire/empire/server/api/v2/starkiller
is useless because it could not have sudo permissions if run as user.Expected Behavior
No permission denied when I run empire server by sudo while I want to clone StarKiller in a system-level directory.
Steps To Reproduce
Enable StarKiller in config.yaml, install Empire in
/usr/share/empire
and runsudo empire server
.Anything else?
No response
The text was updated successfully, but these errors were encountered: