Skip to content

Commit bd646de

Browse files
committed
fixed the check function
1 parent fc5be2d commit bd646de

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

modules/exploits/multi/http/rails_dynamic_render_code_exec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def check
7373

7474
# if the page controller is dynamically rendering, its for sure vuln
7575
if res and res.body =~ /render params/
76-
return Exploit::CheckCode::Vulnerable
76+
return CheckCode::Vulnerable
7777
end
7878

7979
# this is the check for the prod environment
@@ -82,11 +82,11 @@ def check
8282
'method' => 'GET',
8383
}, 60)
8484

85-
# maybe its exploitable
85+
# if we can read files, its likley we can execute code
8686
if res and res.body =~ /ruby/
87-
return Exploit::CheckCode::Appears
87+
return CheckCode::Appears
8888
end
89-
return Exploit::CheckCode::Safe
89+
return CheckCode::Safe
9090
end
9191

9292
def on_request_uri(cli, request)

0 commit comments

Comments
 (0)