eternal_blue_powershell
eternal_blue_powershell copied to clipboard
Running from command line
Has anyone succeeded running it from a command line? I renamed it to e.ps1 for my convenience.
C:>powershell -ExecutionPolicy ByPass Windows PowerShell Copyright (C) 2009 Microsoft Corporation. All rights reserved.
PS C:> .\e.ps1 PS C:>
And thats it...
If you look at the code, it takes the following arguments:
function Invoke-EternalBlue($target, $initial_grooms,$max_attempts)
So you need to Import-Module and then invoke the function with proper arguments.
There is no Readme instructions at all. How many people will scratch their heads trying to figure out what to do?
Lets write it together?
Readme.Howto.txt:
- Have Powershell Empire installed
- Download the script
- Put it... where? ~/Empire/data/module_source/exploitation ? code_execution/ ?
- ...
If you can't figure it out, you can just use the dev branch of Empire, which has this script integrated.
See: https://github.com/EmpireProject/Empire/pull/575