mirror of
https://github.com/carlospolop/PEASS-ng
synced 2025-02-14 08:54:27 +01:00
Merge branch 'master' of github.com:peass-ng/PEASS-ng
This commit is contained in:
commit
003b389c41
@ -1239,16 +1239,14 @@ Get-SmbShare | Get-SmbShareAccess | ForEach-Object {
|
|||||||
Write-Host ""
|
Write-Host ""
|
||||||
if ($TimeStamp) { TimeElapsed }
|
if ($TimeStamp) { TimeElapsed }
|
||||||
Write-Host -ForegroundColor Blue "=========|| USER INFO"
|
Write-Host -ForegroundColor Blue "=========|| USER INFO"
|
||||||
Write-Host "== || Generating List of all Administrators, Users and Backup Operators (if any exist)"
|
Write-Host "== || Generating List of all Local Administrators, Users and Backup Operators (if any exist)"
|
||||||
|
|
||||||
@("ADMINISTRATORS", "USERS") | ForEach-Object {
|
# Code has been modified to accomodate for any language by filtering only on the output and not looking for a string of text
|
||||||
Write-Host $_
|
# Foreach loop to get all local groups, then examine each group's members.
|
||||||
Write-Host "-------"
|
Get-LocalGroup | ForEach-Object {
|
||||||
Start-Process net -ArgumentList "localgroup $_" -Wait -NoNewWindow
|
"`n Group: $($_.Name) `n" ; if(Get-LocalGroupMember -name $_.Name){
|
||||||
}
|
(Get-LocalGroupMember -name $_.Name).Name}
|
||||||
Write-Host "BACKUP OPERATORS"
|
else{" {GROUP EMPTY}"}}
|
||||||
Write-Host "-------"
|
|
||||||
Start-Process net -ArgumentList 'localgroup "Backup Operators"' -Wait -NoNewWindow
|
|
||||||
|
|
||||||
|
|
||||||
Write-Host ""
|
Write-Host ""
|
||||||
|
Loading…
Reference in New Issue
Block a user