File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
lib/msf/core/auxiliary/web Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ def timed_out
70
70
attr_reader :parent
71
71
72
72
attr_accessor :redirect_limit
73
- attr_accessor :username , :password
73
+ attr_accessor :username , :password , :domain
74
74
75
75
def initialize ( opts = { } )
76
76
@opts = opts . dup
@@ -89,6 +89,7 @@ def initialize( opts = {} )
89
89
if opts [ :auth ] . is_a? Hash
90
90
@username = opts [ :auth ] [ :user ] . to_s
91
91
@password = opts [ :auth ] [ :password ] . to_s
92
+ @domain = opts [ :auth ] [ :domain ] . to_s
92
93
end
93
94
94
95
self . redirect_limit = opts [ :redirect_limit ] || 20
@@ -117,6 +118,7 @@ def connect
117
118
c . set_config ( {
118
119
'vhost' => opts [ :target ] . vhost ,
119
120
'agent' => opts [ :user_agent ] || 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)' ,
121
+ 'domain' => domain
120
122
} )
121
123
c
122
124
end
You can’t perform that action at this time.
0 commit comments