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

Add a hex_double_quoted option to the echo cmdstager #3

Merged
merged 4 commits into from
Dec 6, 2016

Conversation

todb-r7
Copy link

@todb-r7 todb-r7 commented Dec 1, 2016

This appears to be needed for rapid7/metasploit-framework#7626

Also, might be nice to have in general, since it can help keep the
stager size down.

This PR includes some updated spec's to exercise some of the functionality a little better, but of course, my spec writing is still quite innocent and child-like.

This appears to be needed for rapid7/metasploit-framework#7626

Also, might be nice to have in general, since it can help keep the
stager size down.
@todb-r7
Copy link
Author

todb-r7 commented Dec 1, 2016

Since @wvu-r7 is already involved in rapid7/metasploit-framework#7626, I'd love his help on figuring out how to test and land this thing (I haven't contributed an update to the rex libraries since the split).

'hex' => "\\\\x",
'octal' => "\\\\",
'hex_quoted' => "\\x",
'hex_single_quoted' => "\\x",
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it necessary to have a duplicate?

Copy link
Contributor

Choose a reason for hiding this comment

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

Oh, it's for enc_format. Nvm.

Copy link
Author

Choose a reason for hiding this comment

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

@todb-r7
Copy link
Author

todb-r7 commented Dec 2, 2016

So looking at PR #2 and talking to @bcook-r7 , it looks like I'm not supposed to bump the version on my own; @msjenkins-r7 will do that. With that, order of operations here looks to be:

Seem right?

(And it needn't be @wvu-r7 or @bcook-r7 -- anyone in @rapid7/metasploit-committers is welcome. :) )

'octal' => "\\\\"
'hex' => "\\\\x",
'octal' => "\\\\",
'hex_quoted' => "\\x",
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe call this hex_double_quoted?

Copy link
Author

Choose a reason for hiding this comment

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

Sure why not

@busterb
Copy link
Member

busterb commented Dec 2, 2016

Yes @todb-r7 that's the right order of operations.

@bcook-r7 bcook-r7 self-assigned this Dec 6, 2016
@bcook-r7 bcook-r7 changed the title Add a hex_quoted option to the echo cmdstager Add a hex_double_quoted option to the echo cmdstager Dec 6, 2016
@bcook-r7 bcook-r7 merged commit 96565bb into rapid7:master Dec 6, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants