scripts icon indicating copy to clipboard operation
scripts copied to clipboard

Invoke-SMBAutoBrute hardcoded domain name

Open MarcOverIP opened this issue 8 years ago • 0 comments

You have a hardcoded domain name "lab.com" in the script. You might want to have the user enter it as a parameter., or auto discover it. Perhaps use [System.DirectoryServices.ActiveDirectory.Domain]::GetComputerDomain().Name.ToString() for this (haven't verified it).

MarcOverIP avatar Aug 09 '17 15:08 MarcOverIP