commit
fdbfaacdf6
|
@ -330,6 +330,9 @@ module Auxiliary::AuthBrute
|
|||
end
|
||||
|
||||
creds = [ [], [], [], [] ] # userpass, pass, user, rest
|
||||
remaining_pairs = combined_array.length # counter for our occasional output
|
||||
interval = 60 # seconds between each remaining pair message reported to user
|
||||
next_message_time = Time.now + interval # initial timing interval for user message
|
||||
# Move datastore['USERNAME'] and datastore['PASSWORD'] to the front of the list.
|
||||
# Note that we cannot tell the user intention if USERNAME or PASSWORD is blank --
|
||||
# maybe (and it's often) they wanted a blank. One more credential won't kill
|
||||
|
@ -344,6 +347,14 @@ module Auxiliary::AuthBrute
|
|||
else
|
||||
creds[3] << pair
|
||||
end
|
||||
if Time.now > next_message_time
|
||||
print_brute(
|
||||
:level => :vstatus,
|
||||
:msg => "Pair list is still building with #{remaining_pairs} pairs left to process"
|
||||
)
|
||||
next_message_time = Time.now + interval
|
||||
end
|
||||
remaining_pairs -= 1
|
||||
end
|
||||
return creds[0] + creds[1] + creds[2] + creds[3]
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue