Skip to content

Commit 2a6225c

Browse files
committed
Land rapid7#1918, change s.message to s.message.to_i
2 parents b34c3fb + da4b18c commit 2a6225c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

modules/exploits/windows/local/trusted_service_path.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ def exploit
145145
tried = true
146146
end
147147

148-
case s.message
148+
case s.message.to_i
149149
when 1
150150
# Service already started, restart again
151151
service_stop(svr_name)

0 commit comments

Comments
 (0)