-
Notifications
You must be signed in to change notification settings - Fork 13.9k
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
Golang formatted byte array support payload generation. #16947
Golang formatted byte array support payload generation. #16947
Conversation
With the new version of rex-text pushed to https://rubygems.org/gems/rex-text/versions/0.2.41, with the added golang support, this pull request is (I think) ready for testing.
|
Looking good to me. We got the changes landed in Rex::Text along with fixes for properly wrapping things. I'm going to fix the conflicts myself since they're related to the version and then get this landed. Thanks for your contribution. Testing OutputGenerated from MSF, nicely formatted with the default wrapping at 60 chars:
Then built an executed successfully using go:
|
4ec1033
to
66ac389
Compare
Release NotesThis adds support for formatting buffers for golang. |
Not a huge problem, as Golang ignores it anyway, but the semicolon on the end is redundant. Running Otherwise, thank you for your help both here and in rex-text! I hope to contribute again soon! |
This PR cannot be merged until the PR in rex-text is merged
Adds support to golang array formatted output when generating payloads
Expected behavoiour:
Expected Output (payload may vary):
You can test this shellcode on windows using the following snippet although AV would need to be disabled first.