Skip to content

Apply Powershell Import comments#18

Open
Meatballs1 wants to merge 5367 commits into
sempervictus:powershell_importfrom
Meatballs1:pr2075
Open

Apply Powershell Import comments#18
Meatballs1 wants to merge 5367 commits into
sempervictus:powershell_importfrom
Meatballs1:pr2075

Conversation

@Meatballs1

Copy link
Copy Markdown

I have removed the traces of ". " is not required on the command line after -c or -Command.

I have removed the usage of " around the executable. The main reasons for this is if " is filtered or ' is filtered it should be easier to gsub them in an exploit.

I have moved the byte buffer text creation to the Rex module and directed Rex::Text to this.

I have added -nop -ep bypass and -w hidden to all the commands

I have reverted Util::Exe to upstream

Comment thread lib/msf/core/exploit/powershell.rb Outdated

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note to self I probably dont need Execution Policy bypass on commands!

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

Successfully merging this pull request may close these issues.