Skip to content

Commit 78b2a0a

Browse files
David MaloneyDavid Maloney
authored andcommitted
add domain support to web spider
1 parent 4edceea commit 78b2a0a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

lib/msf/core/auxiliary/web/http.rb

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ def timed_out
7070
attr_reader :parent
7171

7272
attr_accessor :redirect_limit
73-
attr_accessor :username , :password
73+
attr_accessor :username , :password, :domain
7474

7575
def initialize( opts = {} )
7676
@opts = opts.dup
@@ -89,6 +89,7 @@ def initialize( opts = {} )
8989
if opts[:auth].is_a? Hash
9090
@username = opts[:auth][:user].to_s
9191
@password = opts[:auth][:password].to_s
92+
@domain = opts[:auth][:domain].to_s
9293
end
9394

9495
self.redirect_limit = opts[:redirect_limit] || 20
@@ -117,6 +118,7 @@ def connect
117118
c.set_config({
118119
'vhost' => opts[:target].vhost,
119120
'agent' => opts[:user_agent] || 'Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.0)',
121+
'domain' => domain
120122
})
121123
c
122124
end

0 commit comments

Comments
 (0)