Skip to content

Commit 302e402

Browse files
committed
Removed unnecessary function
1 parent 2b59063 commit 302e402

File tree

1 file changed

+4
-12
lines changed

1 file changed

+4
-12
lines changed

modules/auxiliary/scanner/http/ipboard_login.rb

Lines changed: 4 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -24,14 +24,6 @@ def initialize
2424
], self.class)
2525
end
2626

27-
def rhost_or_vhost
28-
if datastore['VHOST']
29-
return datastore['VHOST']
30-
else
31-
return rhost
32-
end
33-
end
34-
3527
def run_host(ip)
3628
connect
3729

@@ -52,7 +44,7 @@ def do_login(user, pass, ip)
5244
}, 10)
5345

5446
unless res
55-
print_error "No response when trying to connect to #{rhost_or_vhost}"
47+
print_error "No response when trying to connect to #{vhost}"
5648
return :connection_error
5749
end
5850

@@ -62,7 +54,7 @@ def do_login(user, pass, ip)
6254
print_status "Server nonce found, attempting to log in..."
6355
else
6456
print_error "Server nonce not present, potentially not an IP Board install or bad URI."
65-
print_error "Skipping #{rhost_or_vhost}.."
57+
print_error "Skipping #{vhost}.."
6658
return :abort
6759
end
6860

@@ -99,11 +91,11 @@ def do_login(user, pass, ip)
9991
end
10092

10193
rescue ::Timeout::Error
102-
print_error "Connection timed out while attempting to reach #{rhost_or_vhost}!"
94+
print_error "Connection timed out while attempting to reach #{vhost}!"
10395
return :connection_error
10496

10597
rescue ::Errno::EPIPE
106-
print_error "Broken pipe error when connecting to #{rhost_or_vhost}!"
98+
print_error "Broken pipe error when connecting to #{vhost}!"
10799
return :connection_error
108100
end
109101
end

0 commit comments

Comments
 (0)