Skip to content

Commit 0b9b7a4

Browse files
committed
Add response check
1 parent b068997 commit 0b9b7a4

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

modules/exploits/linux/http/empire_skywalker.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,7 @@ def exploit
286286
'uri' => normalize_uri(target_uri.path, datastore['STAGE_PATH']),
287287
'headers' => {'user-agent' => datastore['AGENT']}
288288
})
289+
fail_with(Failure::Unknown, "Failed to communicate with STAGE2") unless res and res.code == 200
289290
aes_decrypt(session_key, res.body)
290291

291292
log_path = "/var/lib/powershell-empire/empire/server/downloads/#{session_id}/agent.log"

0 commit comments

Comments
 (0)