Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Import-Module DomainPasswordSpray.ps1'. #36

Open
Moesamar1985 opened this issue Dec 8, 2022 · 5 comments
Open

Import-Module DomainPasswordSpray.ps1'. #36

Moesamar1985 opened this issue Dec 8, 2022 · 5 comments

Comments

@Moesamar1985
Copy link

No description provided.

@Moesamar1985
Copy link
Author

Invoke-DomainPasswordSpray -Password Mesmith99

@Moesamar1985
Copy link
Author

  • What I do after

@muelli
Copy link

muelli commented Oct 1, 2023

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 :(

@muelli
Copy link

muelli commented Oct 1, 2023

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

@nwafdes
Copy link

nwafdes commented Mar 21, 2024

Edit the line 261 to be like this
$($Message): Waiting for $($Seconds/60) minutes.[snipits....]

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants