IF YOU ARE DOING THIS ON REAL SYSTEM, CREATE BACKUP OF ORIGINAL EXE BEFORE EXPLOITING
Check for service exe writable for everyone. Shown by winpeas
Verify withaccess check to see if we can start stop
.\accesschk.exe /accepteula -quvw servicename
If yes then copy malicious exe
copy source destination
DLL
Kernel Exploits
Github/secWiki/Windows Kernel Exploits
All depends on enumeration
Identify kernel version and search for relevant exploits
-:Tools
Windows Exploit Suggestor
Takes Sysinfo output file as input
Watson
Scheduled Tasks
cmd:- schtasks /query /fo LIST /v
ps:- Get-ScheduledTask | where {$_.TaskPath -notlike "Microsoft* | ft Taskname,TaskPath,State"}
Find scripts running every minuite. if found add shell command to it to get a shelll as Nt authority
To check Permission:- .\accesschk.exe /accepteula -uqv user filename/scri[pt name
Give it a path to malicious executable
Insecure GUI APPS
Since parent process is run as admin, Child process will also run as admin
To see privilages:-tasklist /v | findstr processname
StartUp Apps
C:\ProgramData\Microsoft\Windows\Start Menu\Programs\StartUp :- All programs starting at boot are placd here
If reverse shell is placed in this directory, then it will get executed once system starts
.\accesschk.exe /accepteula -d path
To check access privilages
Builtin Users Groups has write access to this directory by default
USe a VB script available on net to make a shortcut in startup directory
Installed Apps
Exploits can be foun specific to the apps running on the system. Simply search for them on Exploit-db
Hot Potato
Works on win 7 8 and early win10
It is a spoofing attack
It involves authenticating Windows user to a fake HTTP server using NTLM
Ntlm credentials are then used to get command execution using SMB
Requires to have a shell as normal user, then privilages are escalated using potato.exe by giving arguments as IP and Reverse shell.exe generated with MSF Venom
Juicy Potato
Takes advantage of service Accounts
Intercepts System Tickets and uses it to impersonate System User
Check if SetImpersonation Privilage is enabled or SeAssignPrimaryToken is enabled. IF YES THEN JUICY POTATO
Hacktricks has awesome info about its usage
Port Forwarding
Plink
Priv Esc Strategy
Check Your user and Group you are into using netuser command