Skip to content
This repository was archived by the owner on Oct 22, 2020. It is now read-only.

Commit ffe853a

Browse files
committed
Fail module execution if upload location returns nil
1 parent d8d3562 commit ffe853a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

lib/wpxf/wordpress/shell_upload.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,6 +85,7 @@ def run
8585
return false unless upload_payload(builder)
8686

8787
payload_url = uploaded_payload_location
88+
return false unless payload_url
8889
emit_success "Uploaded the payload to #{payload_url}", true
8990

9091
emit_info 'Executing the payload...'

0 commit comments

Comments
 (0)