BC-SECURITY / Empire

Empire is a post-exploitation and adversary emulation framework that is used to aid Red Teams and Penetration Testers.
https://bc-security.gitbook.io/empire-wiki/
BSD 3-Clause "New" or "Revised" License
4.21k stars 575 forks source link

E: Package 'powershell' has no installation candidate #700

Open joeldeleep opened 1 year ago

joeldeleep commented 1 year ago

Is there an existing issue for this?

Empire Version

5.6.4

Python Version

3.11.4

Operating System

Linux kali 6.3.0-kali1-arm64 #1 SMP Debian 6.3.7-1kali1 (2023-06-29) aarch64 GNU/Linux

Database

SQLite

Current Behavior

While trying to install using the GitHub repository, the installation is stopped by displaying the below message

E: Package 'powershell' has no installation candidate

It was successful installed using the apt package manager, however while running the powershell-empire server, it responded with the below message and didn't start the server.

[INFO]: Checking submodules... 
[INFO]: No .git directory found. Skipping submodule check. 
[INFO]: v2: Loading listener templates from: /usr/share/powershell-empire/empire/server/listeners/ 
[INFO]: v2: Loading stager templates from: /usr/share/powershell-empire/empire/server/stagers/ 
[INFO]: v2: Loading bypasses from: /usr/share/powershell-empire/empire/server/bypasses/ 
[INFO]: v2: Loading malleable profiles from: /usr/share/powershell-empire/empire/server/data/profiles/ 
[INFO]: v2: Loading modules from: /usr/share/powershell-empire/empire/server/modules/ 
[INFO]: Searching for plugins at /usr/share/powershell-empire/empire/server/plugins 
[INFO]: Initializing plugin: csharpserver 
[INFO]: Initializing plugin: websockify_server 
[INFO]: Initializing plugin: basic_reporting 
[INFO]: Initializing plugin: reverseshell_stager_server 
[INFO]: Initializing plugin: chiselserver 
[INFO]: Initializing plugin: socksproxyserver 
[WARNING]: Plugin csharpserver does not support db session or user_id, falling back to old method 
[ERROR]: [Errno 2] No such file or directory: 'dotnet' 
[INFO]: csharpserver: [!] [Errno 2] No such file or directory: 'dotnet' 
[ERROR]: Plugin failed to run: csharpserver 
[INFO]: Empire starting up... 
[INFO]: Starkiller served at http://localhost:1337/index.html 
[INFO]: Started server process [470413] 
[INFO]: Waiting for application startup. 
[INFO]: Application startup complete. 
[INFO]: Uvicorn running on http://0.0.0.0:1337 (Press CTRL+C to quit) 

Expected Behavior

Successful starting of the empire server

Steps To Reproduce

Install using GitHub repository or APT package manager.

git clone --recursive https://github.com/BC-SECURITY/Empire.git
cd Empire
./setup/checkout-latest-tag.sh
sudo ./setup/install.sh
apt install powershell-empire

Anything else?

No response

vinnybod commented 1 year ago

We need to add arm support. I don't think Kali has arm support for powershell in their apt repo, possibly the other OS too.