Skip to content

Commit

Permalink
Add files via upload
Browse files Browse the repository at this point in the history
Fixed:
- Domain Parameter was ignored, current domain was always used
- Corrected Issue dafthack#31
- Merged PR dafthack#22
  • Loading branch information
bluecurby authored and lenhart committed Feb 11, 2024
1 parent a7ec09c commit 4ebe4ec
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions DomainPasswordSpray.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -484,7 +484,7 @@ function Get-DomainUserList
}

$UserSearcher = New-Object System.DirectoryServices.DirectorySearcher([ADSI]$CurrentDomain)
$DirEntry = New-Object System.DirectoryServices.DirectoryEntry
$DirEntry = New-Object System.DirectoryServices.DirectoryEntry($CurrentDomain)
$UserSearcher.SearchRoot = $DirEntry

$UserSearcher.PropertiesToLoad.Add("samaccountname") > $Null
Expand Down Expand Up @@ -603,7 +603,7 @@ function Invoke-SpraySinglePassword
$curr_user = 0
if ($OutFile -ne ""-and -not $Quiet)
{
Write-Host -ForegroundColor Yellow "[*] Writing successes to $OutFile"
Write-Host -ForegroundColor Yellow "[*] Writing successes to $OutFile"
}
$RandNo = New-Object System.Random

Expand Down

0 comments on commit 4ebe4ec

Please # to comment.