Skip to content

Commit

Permalink
Add support to msfvenom for "-f octal".
Browse files Browse the repository at this point in the history
  • Loading branch information
j0ev committed Sep 13, 2023
1 parent 814484c commit 0b73e4c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions lib/msf/base/simple/buffer.rb
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,8 @@ def self.transform(buf, fmt = "ruby", var_name = 'buf', encryption_opts={})
buf = Rex::Text.to_nim(buf)
when 'rust', 'rustlang'
buf = Rex::Text.to_rust(buf)
when 'octal'
buf = Rex::Text.to_octal(buf)
else
raise BufferFormatError, "Unsupported buffer format: #{fmt}", caller
end
Expand Down Expand Up @@ -138,6 +140,7 @@ def self.transform_formats
'nim',
'nimlang',
'num',
'octal',
'perl',
'pl',
'powershell',
Expand Down

0 comments on commit 0b73e4c

Please sign in to comment.