Skip to content

Commit dc0549d

Browse files
committed
Use #wait
1 parent c1234e0 commit dc0549d

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

modules/auxiliary/gather/apple_safari_ftp_url_cookie_theft.rb

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@ def run
5454
start_service
5555
print_status("Local FTP: #{lookup_lhost}:#{datastore['SRVPORT']}")
5656
start_http
57+
@http_service.wait
5758
end
5859

5960

@@ -114,11 +115,6 @@ def start_http(opts={})
114115
# Add path to resource
115116
@service_path = uopts['Path']
116117
@http_service.add_resource(uopts['Path'], uopts)
117-
118-
# As long as we have the http_service object, we will keep the ftp server alive
119-
while @http_service
120-
select(nil, nil, nil, 1)
121-
end
122118
end
123119

124120
#

0 commit comments

Comments
 (0)