Skip to content

Commit 2b59063

Browse files
committed
Updated based on feedback
1 parent 84f4fa5 commit 2b59063

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

modules/auxiliary/scanner/http/ipboard_login.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ def do_login(user, pass, ip)
4848
# into IP Board
4949
res = send_request_cgi({
5050
'uri' => normalize_uri(target_uri.path),
51-
'method' => 'GET',
51+
'method' => 'GET'
5252
}, 10)
5353

5454
unless res
@@ -73,7 +73,7 @@ def do_login(user, pass, ip)
7373
'vars_post' => {
7474
'auth_key' => server_nonce,
7575
'ips_username' => user,
76-
'ips_password' => pass,
76+
'ips_password' => pass
7777
}
7878
})
7979

@@ -94,8 +94,8 @@ def do_login(user, pass, ip)
9494
register_creds(user, pass, ip)
9595
return :next_user
9696
else
97-
print_error "Username: #{user} and Password: #{pass} are invalid credentials!"
98-
return :skip_user
97+
vprint_error "Username: #{user} and Password: #{pass} are invalid credentials!"
98+
return nil
9999
end
100100

101101
rescue ::Timeout::Error

0 commit comments

Comments
 (0)