working on nim shellcode generator

This commit is contained in:
husky 2022-09-02 07:55:39 -04:00 committed by Spencer McIntyre
parent 21c01406c5
commit 8646fd6e39
1 changed files with 6 additions and 0 deletions

View File

@ -63,6 +63,8 @@ module Buffer
buf = Rex::Text.encode_base64(buf)
when 'go','golang'
buf = Rex::Text.to_golang(buf)
when 'nim','nimlang'
buf = Rex::Text.to_nim(buf)
else
raise BufferFormatError, "Unsupported buffer format: #{fmt}", caller
end
@ -97,6 +99,8 @@ module Buffer
buf = Rex::Text.to_psh_comment(buf)
when 'go','golang'
buf = Rex::Text.to_golang_comment(buf)
when 'nim','nimlang'
buf = Rex::Text.to_nim_comment(buf)
else
raise BufferFormatError, "Unsupported buffer format: #{fmt}", caller
end
@ -122,6 +126,8 @@ module Buffer
'java',
'js_be',
'js_le',
'nim',
'nimlang',
'num',
'perl',
'pl',