We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c71b577 commit 96104c5Copy full SHA for 96104c5
lib/msf/base/simple/buffer.rb
@@ -22,8 +22,8 @@ module Buffer
22
def self.transform(buf, fmt = "ruby")
23
case fmt
24
when 'raw'
25
- when 'python', 'py'
26
- buf = Rex::Text.to_python(buf)
+ when 'python', 'py'
+ buf = Rex::Text.to_python(buf)
27
when 'ruby', 'rb'
28
buf = Rex::Text.to_ruby(buf)
29
when 'perl', 'pl'
msfpayload
@@ -129,7 +129,7 @@ if (cmd =~ /^(p|y|r|d|c|j|x|b|v|w|n)/)
129
fmt = 'js_le' if (cmd =~ /^j/ and ! fmt)
130
fmt = 'java' if (cmd =~ /^b/)
131
fmt = 'raw' if (cmd =~ /^w/)
132
- fmt = 'python' if (cmd =~ /^n/)
+ fmt = 'python' if (cmd =~ /^n/)
133
enc = options['ENCODER']
134
135
begin
0 commit comments