Skip to content

Commit 4530066

Browse files
committed
return nil
1 parent 55d9e9c commit 4530066

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

modules/exploits/unix/webapp/actualanalyzer_ant_cookie_exec.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ def get_analytics_host_view
123123
else
124124
vprint_status("#{peer} - Could not find any hosts on view.php")
125125
end
126+
nil
126127
end
127128

128129
#
@@ -144,6 +145,7 @@ def get_analytics_host_code
144145
else
145146
vprint_status("#{peer} - Could not find any hosts on code.php")
146147
end
148+
nil
147149
end
148150

149151
#
@@ -207,6 +209,7 @@ def get_analytics_host_admin
207209
else
208210
vprint_status("#{peer} - Could not find any hosts on admin.php")
209211
end
212+
nil
210213
end
211214

212215
def execute_command(cmd, opts = { :analytics_host => vhost })
@@ -228,6 +231,7 @@ def execute_command(cmd, opts = { :analytics_host => vhost })
228231
else
229232
fail_with(Failure::Unknown, "#{peer} - Something went wrong")
230233
end
234+
nil
231235
end
232236

233237
def exploit
@@ -243,6 +247,7 @@ def exploit
243247
analytics_hosts << datastore['ANALYZER_HOST']
244248
end
245249
analytics_hosts.uniq.each do |host|
250+
next if host.nil?
246251
vprint_status("#{peer} - Trying hostname '#{host}' - Sending payload (#{payload.encoded.length} bytes)...")
247252
break if execute_command(payload.encoded, { :analytics_host => host })
248253
end

0 commit comments

Comments
 (0)