Fix broken `ps1` and `powershell` transform
This commit is contained in:
parent
a386b2d503
commit
440c82b3e2
|
@ -88,6 +88,8 @@ module Buffer
|
||||||
buf = Rex::Text.to_js_comment(buf)
|
buf = Rex::Text.to_js_comment(buf)
|
||||||
when 'java'
|
when 'java'
|
||||||
buf = Rex::Text.to_c_comment(buf)
|
buf = Rex::Text.to_c_comment(buf)
|
||||||
|
when 'powershell','ps1'
|
||||||
|
buf = Rex::Text.to_psh_comment(buf)
|
||||||
else
|
else
|
||||||
raise BufferFormatError, "Unsupported buffer format: #{fmt}", caller
|
raise BufferFormatError, "Unsupported buffer format: #{fmt}", caller
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue