aboutsummaryrefslogtreecommitdiff
path: root/Recon/Get-GPPPassword.ps1
diff options
context:
space:
mode:
authorbitform <matt@exploit-monday.com>2013-01-21 08:33:51 -0500
committerbitform <matt@exploit-monday.com>2013-01-21 08:33:51 -0500
commit40eb187bca6a985ce7d24b19ac54c47ade285858 (patch)
tree1c3254a0eb82a9595690fed0900075044356252b /Recon/Get-GPPPassword.ps1
parent46aead39c6f8d04b00b3c3f2aad10b7948aa003f (diff)
downloadPowerSploit-40eb187bca6a985ce7d24b19ac54c47ade285858.tar.gz
PowerSploit-40eb187bca6a985ce7d24b19ac54c47ade285858.zip
Consistency improvements in comment-based help
Diffstat (limited to 'Recon/Get-GPPPassword.ps1')
-rw-r--r--Recon/Get-GPPPassword.ps140
1 files changed, 24 insertions, 16 deletions
diff --git a/Recon/Get-GPPPassword.ps1 b/Recon/Get-GPPPassword.ps1
index 99a694b..b22fb74 100644
--- a/Recon/Get-GPPPassword.ps1
+++ b/Recon/Get-GPPPassword.ps1
@@ -1,31 +1,39 @@
-function Get-GPPPassword {
-
+function Get-GPPPassword
+{
<#
-.Synopsis
+.SYNOPSIS
+
+Retrieves the plaintext password for accounts pushed through Group Policy in groups.xml.
- Get-GPPPassword retrieves the plaintext password for accounts pushed through Group Policy in groups.xml.
- Author: Chris Campbell (@obscuresec)
- License: BSD 3-Clause
+PowerSploit Function: Get-GPPPassword
+Author: Chris Campbell (@obscuresec)
+License: BSD 3-Clause
+Required Dependencies: None
+Optional Dependencies: None
-.Description
+.DESCRIPTION
- Get-GPPPassword imports the encoded and encrypted password string from groups.xml and then decodes and decrypts the plaintext password.
+Get-GPPPassword imports the encoded and encrypted password string from groups.xml and then decodes and decrypts the plaintext password.
-.Parameter Path
+.PARAMETER Path
- The path to the targeted groups.xml file.
+The path to the targeted groups.xml file.
-.Example
+.EXAMPLE
- Get-GPPPassword -path c:\demo\groups.xml
+Get-GPPPassword -path c:\demo\groups.xml
-.Link
+.LINK
- http://esec-pentest.sogeti.com/exploiting-windows-2008-group-policy-preferences
- http://www.obscuresecurity.blogspot.com/2012/05/gpp-password-retrieval-with-powershell.html
+http://esec-pentest.sogeti.com/exploiting-windows-2008-group-policy-preferences
+http://www.obscuresecurity.blogspot.com/2012/05/gpp-password-retrieval-with-powershell.html
#>
-Param ( [Parameter(Position = 0, Mandatory = $True)] [String] $Path = "$PWD\groups.xml" )
+ Param (
+ [Parameter(Position = 0, Mandatory = $True)]
+ [String]
+ $Path = "$PWD\groups.xml"
+ )
#Function to pull encrypted password string from groups.xml
function Parse-cPassword {