@@ -23,8 +23,8 @@ def initialize(info = {})
23
23
OptInt . new ( 'MAX_PAGES' , [ true , 'The maximum number of pages to crawl per URL' , 500 ] ) ,
24
24
OptInt . new ( 'MAX_MINUTES' , [ true , 'The maximum number of minutes to spend on each URL' , 5 ] ) ,
25
25
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' ] ) ,
28
28
OptString . new ( 'DOMAIN' , [ true , 'The domain to use for windows authentication' , 'WORKSTATION' ] ) ,
29
29
OptBool . new ( 'SSL' , [ false , 'Negotiate SSL/TLS for outgoing connections' , false ] )
30
30
@@ -123,9 +123,9 @@ def run
123
123
:info => ""
124
124
} )
125
125
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
129
129
t [ :domain ] = datastore [ 'DOMAIN' ] . to_s
130
130
end
131
131
0 commit comments