fix error when encoder is nil

bug/bundler_fix
agix 2016-06-23 15:44:35 +02:00
parent 9bb5577320
commit 3105ff3626
1 changed files with 2 additions and 1 deletions

View File

@ -340,7 +340,8 @@ module Msf
else
raw_payload = generate_raw_payload
raw_payload = add_shellcode(raw_payload)
if encoder.start_with?("@")
if encoder != nil and encoder.start_with?("@")
encoded_payload = multiple_encode_payload(raw_payload)
else
encoded_payload = encode_payload(raw_payload)