Skip to content

Commit da4b18c

Browse files
committed
[FixRM:rapid7#8012] - Fix message data type to int
This patch makes sure s.message is actually an int, that way we can properly stop or enable the service.
1 parent b34c3fb commit da4b18c

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)