Skip to content

Commit a85e6aa

Browse files
committed
fix regex anchoring
1 parent 2f91a54 commit a85e6aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

msfvenom

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -427,7 +427,7 @@ if opts[:format] !~/ruby|rb|perl|pl|bash|sh|c|csharp|js|dll|elf/i
427427
end
428428

429429
case opts[:format]
430-
when /ruby|rb|perl|pl|bash|^sh$|^c$|^csharp$|js_le|raw|^py/i
430+
when /^ruby$|^rb$|^perl$|^pl$|^bash$|^sh$|^c$|^csharp$|^js_le$|^raw$|^py$/i
431431
$stdout.write Msf::Simple::Buffer.transform(payload_raw, opts[:format])
432432
when /asp$/
433433
asp = Msf::Util::EXE.to_win32pe_asp($framework, payload_raw, exeopts)

0 commit comments

Comments
 (0)