From cc7320492293851702ca4e1df06b756762d24b57 Mon Sep 17 00:00:00 2001 From: benpturner Date: Thu, 2 Aug 2018 13:52:40 +0100 Subject: [PATCH] 'Updated Brute-AD Module' --- Modules/Brute-AD.ps1 | 14 +++++++++++--- 1 file changed, 11 insertions(+), 3 deletions(-) diff --git a/Modules/Brute-AD.ps1 b/Modules/Brute-AD.ps1 index 448a280..104d6b0 100644 --- a/Modules/Brute-AD.ps1 +++ b/Modules/Brute-AD.ps1 @@ -15,6 +15,8 @@ .EXAMPLE Brute-Ad -list Password1,password2,'$password$','$Pa55w0rd$',password12345 The provided list will be used: Password1 password2 $password$ $Pa55w0rd$ password12345 +.EXAMPLE + Brute-Ad -list Password1,password2 Username Password IsValid -------- -------- ------- @@ -26,17 +28,21 @@ function Brute-Ad [cmdletbinding()] Param ( - [string[]]$list + [string[]]$list, + [string[]]$domain ) + Write-Output "" + Write-Output "[+] Brute-ad module started" + Write-Output "" if ($list) { $allpasswords = $list - Write-Output -ForegroundColor Yellow 'The provided list will be used: '$allpasswords`n + Write-Output 'The provided list will be used: '$allpasswords`n } else { $allpasswords = @('Password1') - Write-Output -ForegroundColor Yellow 'The built-in list will be used: '$allpasswords`n + Write-Output 'The built-in list will be used: '$allpasswords`n } Function Get-LockOutThreshold @@ -91,4 +97,6 @@ Param $result | Where {$_.IsValid -eq $True} } } + + Write-Output "[+] Module completed" } \ No newline at end of file