diff --git a/lib/msf/base/simple/buffer.rb b/lib/msf/base/simple/buffer.rb index 55aff6b5e19a..abc129127ce7 100644 --- a/lib/msf/base/simple/buffer.rb +++ b/lib/msf/base/simple/buffer.rb @@ -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 @@ -138,6 +140,7 @@ def self.transform_formats 'nim', 'nimlang', 'num', + 'octal', 'perl', 'pl', 'powershell',