Skip to content

Commit 6a83220

Browse files
author
wolfthefallen
committed
cleaned up travis errors
1 parent 0943eb2 commit 6a83220

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

modules/exploits/linux/http/dcos_marathon.rb

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
##
2-
# This module requires Metasploit: http//metasploit.com/download
2+
# This module requires Metasploit: http://metasploit.com/download
33
# Current source: https://github.com/rapid7/metasploit-framework
44
##
55

@@ -22,7 +22,7 @@ def initialize(info = {})
2222
by the host operating system allowing the attacker to edit/create
2323
files owed by root. This exploit abuses this to creates a cron job
2424
in the '/etc/cron.d/' path of the host server.
25-
25+
2626
*Notes: The docker image must be a valid docker image from
2727
hub.docker.com. Further more the docker container will only
2828
deploy if there are resources available in the DC/OS cluster.
@@ -88,7 +88,7 @@ def del_container(container_id)
8888

8989
def make_container_id
9090
return datastore['CONTAINER_ID'] unless datastore['CONTAINER_ID'].nil?
91-
91+
9292
rand_text_alpha_lower(8)
9393
end
9494

@@ -169,16 +169,16 @@ def exploit
169169
wait_time = datastore['WAIT_TIMEOUT']
170170
deleted_container = false
171171
print_status("Waiting up to #{wait_time} seconds for docker container to start")
172-
172+
173173
while wait_time > 0
174174
sleep(sleep_time)
175175
wait_time -= sleep_time
176176
apps_status = get_apps
177-
fail_with(Failure::Unkown, 'No apps returned') unless apps_status
178-
177+
fail_with(Failure::Unknown, 'No apps returned') unless apps_status
178+
179179
apps_status['apps'].each do |app|
180180
next if app['id'] != "/#{container_id}"
181-
181+
182182
if app['tasksRunning'] == 1
183183
print_status('The docker container is running, removing it')
184184
del_container(container_id)
@@ -190,7 +190,7 @@ def exploit
190190
break
191191
end
192192
end
193-
193+
194194
# If the docker container does not deploy remove it and fail out.
195195
unless deleted_container
196196
del_container(container_id)

0 commit comments

Comments
 (0)