Open Moesamar1985 opened 1 year ago
PS C:\> dir DomainPasswordSpray.ps1
dir DomainPasswordSpray.ps1
Directory: C:\
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 9/30/2023 6:02 PM 19675 DomainPasswordSpray.ps1
PS C:\> Import-Module DomainPasswordSpray.ps1
Import-Module DomainPasswordSpray.ps1
Import-Module : The specified module 'DomainPasswordSpray.ps1' was not loaded because no valid module file was found
in any module directory.
At line:1 char:1
+ Import-Module DomainPasswordSpray.ps1
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : ResourceUnavailable: (DomainPasswordSpray.ps1:String) [Import-Module], FileNotFoundExcep
tion
+ FullyQualifiedErrorId : Modules_ModuleNotFound,Microsoft.PowerShell.Commands.ImportModuleCommand
PS C:\>
That does not seem to work :(
PS C:\DevelopmentExecutables> . .\DomainPasswordSpray.ps1
. .\DomainPasswordSpray.ps1
At C:\DevelopmentExecutables\DomainPasswordSpray.ps1:261 char:21
PS C:\DevelopmentExecutables> + Write-Host "$Message: Waiting for $($Seconds/60) minutes. $($ ...
+ ~~~~~~~~~
Variable reference is not valid. ':' was not followed by a valid variable name character. Consider using ${} to
delimit the name.
+ CategoryInfo : ParserError: (:) [], ParseException
+ FullyQualifiedErrorId : InvalidVariableReferenceWithDrive
Edit the line 261 to be like this
$($Message): Waiting for $($Seconds/60) minutes.[snipits....]
Invoke-DomainPasswordSpray -Password Mesmith99