-
Notifications
You must be signed in to change notification settings - Fork 13.8k
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
Add hp_sys_mgmt_exec module for Linux and enhance module for Windows #2181
Conversation
The hp_sys_mgmt_exec module for Linux is a port of the Windows module with minor changes due to the requirement of quotes. It also uses Perl instead of PHP as PHP may not always be in the environment PATH. Although the Windows module works perfectly, it now uses the same technique to encode the command (thankfully, PHP adopted major syntax characteristics and functions from Perl).
Thanks for the patch. It looks like you can really just merge the linux targets to the existing hp_sys_mgmt_exec module, and then move the file to multi/http/hp_sys_mgmt_exec.rb. |
I’ve already tried that but I didn’t get it to work properly. I tried it with dynamically including the corresponding CmdStager module depending on the target. It worked for CmdStagerBourne but it didn’t work for CmdStagerVBS as it registers the advanced option DECODERSTUB during initialization. But I’ll give your suggestion a try: I’ll dynamically include the CmdStagerBourne into the existing Windows exploit. That should work as the latter does only overwrite the |
I’ve managed to merge both exploits in a multi platform exploit as described before. This is way more better. |
Beautiful, thanks for the merge! Module works for me, merging to master now:
|
The hp_sys_mgmt_exec module for Linux is a port of the Windows module with minor changes due to the requirement of quotes. It also uses Perl instead of PHP as PHP may not always be in the environment PATH. Although the Windows module works perfectly, it now uses the same technique to encode the command (thankfully, PHP adopted major syntax characteristics and functions from Perl).