Skip to content

Commit 9f98d4a

Browse files
committed
Fix undefined method error
[FixRM rapid7#8349]
1 parent 35b15b6 commit 9f98d4a

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

modules/auxiliary/admin/http/jboss_seam_exec.rb

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,8 @@ def run
9090
'method' => 'GET',
9191
}, 20)
9292

93-
if (res.headers['Location'] =~ %r(pwned=java.lang.UNIXProcess))
93+
94+
if (res and res.headers['Location'] =~ %r(pwned=java.lang.UNIXProcess))
9495
print_status("Exploited successfully")
9596
else
9697
print_status("Exploit failed.")

0 commit comments

Comments
 (0)