fix error when encoder is nil
parent
9bb5577320
commit
3105ff3626
|
@ -340,7 +340,8 @@ module Msf
|
||||||
else
|
else
|
||||||
raw_payload = generate_raw_payload
|
raw_payload = generate_raw_payload
|
||||||
raw_payload = add_shellcode(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)
|
encoded_payload = multiple_encode_payload(raw_payload)
|
||||||
else
|
else
|
||||||
encoded_payload = encode_payload(raw_payload)
|
encoded_payload = encode_payload(raw_payload)
|
||||||
|
|
Loading…
Reference in New Issue