aboutsummaryrefslogtreecommitdiff
path: root/Recon
diff options
context:
space:
mode:
authorHarmJ0y <will@harmj0y.net>2016-04-24 12:17:48 +0200
committerHarmJ0y <will@harmj0y.net>2016-04-24 12:17:48 +0200
commit7ed5343431691f0d066c0be06f3056ef354f6170 (patch)
treefd7ee38de4c309a655644609e7178e5e655281b0 /Recon
parent69a2cd1e33abe312166cdbfd67b04d6e58e9fabe (diff)
parent6daaef2706953caabbce44e788493c99de8970eb (diff)
downloadPowerSploit-7ed5343431691f0d066c0be06f3056ef354f6170.tar.gz
PowerSploit-7ed5343431691f0d066c0be06f3056ef354f6170.zip
Merge pull request #128 from Meatballs1/fix_groups_xml
//Group -> //Groups
Diffstat (limited to 'Recon')
-rw-r--r--Recon/PowerView.ps14
1 files changed, 2 insertions, 2 deletions
diff --git a/Recon/PowerView.ps1 b/Recon/PowerView.ps1
index f921e03..c6ce1d2 100644
--- a/Recon/PowerView.ps1
+++ b/Recon/PowerView.ps1
@@ -5633,7 +5633,7 @@ function Get-GroupsXML {
$FolderPath = $Parts[0..($Parts.length-2)] -join '\'
$FilePath = $Parts[-1]
$RandDrive = ("abcdefghijklmnopqrstuvwxyz".ToCharArray() | Get-Random -Count 7) -join ''
-
+
Write-Verbose "Mounting path $GroupsXMLPath using a temp PSDrive at $RandDrive"
try {
@@ -5655,7 +5655,7 @@ function Get-GroupsXML {
[xml] $GroupsXMLcontent = Get-Content $GroupsXMLPath -ErrorAction Stop
# process all group properties in the XML
- $GroupsXMLcontent | Select-Xml "//Group" | Select-Object -ExpandProperty node | ForEach-Object {
+ $GroupsXMLcontent | Select-Xml "//Groups" | Select-Object -ExpandProperty node | ForEach-Object {
$Members = @()
$MemberOf = @()