π SCP Upload
Sometimes, your target network might allow outbound SSH (TCP port 22) connections. If so β jackpot! π° You can use SCP (Secure Copy Protocol) to upload files from your Pwnbox to the target machine securely over SSH! ππ‘
π Uploading a File Using SCP
Letβs say we want to upload the sensitive /etc/passwd
file to our attacker target machine.
Hereβs the command you'd run from your Pwnbox:
π What Happens Next?
You'll be prompted for the target's SSH user password:
π If authenticated successfully, the file will be copied to the target!
β οΈ Heads-Up!
This only works if:
SSH is allowed outbound from the compromised host β
The target IP is running an SSH server and reachable π
You have valid credentials to log in π
Last updated