-
Notifications
You must be signed in to change notification settings - Fork 14.1k
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 support to msfvenom for "-f octal" #18363
Conversation
Currently this doesn't work for me when testing this step:
I get the following error:
I believe this is due to rex-text needing to be updated as well. I took a quick look and it seems you'd need something similar to what was done here when Masm was added. Then a bump will be needed for the I suspect you'll also need to add another change to this PR, this is Masm PR for the |
Thanks for catching that. I am not familiar with what the |
Added a test for this scenario, which should fail atm. |
Looks like all the tests went green 👀 |
Whoops, got confused on the code path. Added a new in-progress spec for the situation of "valid transform without a corresponding to_comment method". |
* Adds failing test that discovers several additional violations.
@cgranleese-r7 after looking at this closely I think it's OK to just copy what is done for the I wrote a spec for invoking the code path that gets called from msfconsole's
I think |
I didn't spend a whole lot of time looking into it. Just when it wasn't working for me initially I took quick look at other format implementations.
It does seem to be working for me now. So seems the rex-text PR may not be required.
Yea, I think having it in with hex makes sense as well. |
* Explicitly documents lack of support for VB style comments.
Okay, I think this is ready for re-review. The |
Release NotesThis PR adds support to outputting payloads in octal in both framework and venom. |
This PR adds an octal transform format to msfvenom for use during payload generation. This is useful for
printf
in POSIX sh.Verification
List the steps needed to make sure this thing works
./msfvenom -p linux/aarch64/shell_reverse_tcp lhost=127.0.0.1 lport=5555 -f raw
./msfvenom -p linux/aarch64/shell_reverse_tcp lhost=127.0.0.1 lport=5555 -f octal
./msfconsole
use some_payload
generate -f octal