Remote Access & Lateral Movement

Remote Access & Lateral Movement

Linux OS

SSH

# Normal connection
ssh mara@192.168.0.191
# With Private Key
chmod 700 key.txt
ssh -i key.txt stinky@192.168.142.219

# If you have a shell issue at login
ssh -t  margo@192.168.103.110 /bin/sh

# XForward
ssh -X fox@$RHOST 

When you see the following error - Too many authentication failures in ssh,

Try the following tricks.

Windows OS

pth-winexe

Impacket: PsExe.py

Impacket:smbclient.py

Impacket:Scretsdump.py

Impacket: dcomexec.py

Impacket: smbexec.py

Impacket: wmiexec.py

Impacket: Atexec.py

Microsoft: PsExect

Crackmapexec

Evil-WinRM

Mimikatz

PowerShell Remoting

Remote Desktop

WMI (Windows Management Instrumentation)

Remote Service Creation

Password Spray

RDP Hijack

https://riccardoancarani.github.io/2019-10-04-lateral-movement-megaprimer/

Last updated