Skip to content

Commit ae1ffa5

Browse files
authored
Merge pull request #43 from pbarry-r7/enhance-6921
Update crawler with new auth key values.
2 parents 504a94b + 250e667 commit ae1ffa5

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/msf/core/auxiliary/crawler.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ def initialize(info = {})
2323
OptInt.new('MAX_PAGES', [ true, 'The maximum number of pages to crawl per URL', 500]),
2424
OptInt.new('MAX_MINUTES', [ true, 'The maximum number of minutes to spend on each URL', 5]),
2525
OptInt.new('MAX_THREADS', [ true, 'The maximum number of concurrent requests', 4]),
26-
OptString.new('USERNAME', [false, 'The HTTP username to specify for authentication']),
27-
OptString.new('PASSWORD', [false, 'The HTTP password to specify for authentication']),
26+
OptString.new('HttpUsername', [false, 'The HTTP username to specify for authentication']),
27+
OptString.new('HttpPassword', [false, 'The HTTP password to specify for authentication']),
2828
OptString.new('DOMAIN', [ true, 'The domain to use for windows authentication', 'WORKSTATION']),
2929
OptBool.new('SSL', [ false, 'Negotiate SSL/TLS for outgoing connections', false])
3030

@@ -123,9 +123,9 @@ def run
123123
:info => ""
124124
})
125125

126-
if datastore['USERNAME'] and datastore['USERNAME'] != ''
127-
t[:username] = datastore['USERNAME'].to_s
128-
t[:password] = datastore['PASSWORD'].to_s
126+
if datastore['HttpUsername'] and datastore['HttpUsername'] != ''
127+
t[:username] = datastore['HttpUsername'].to_s
128+
t[:password] = datastore['HttpPassword'].to_s
129129
t[:domain] = datastore['DOMAIN'].to_s
130130
end
131131

0 commit comments

Comments
 (0)