File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
modules/auxiliary/scanner/http Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,7 @@ def initialize(info = {})
41
41
def get_sid_token
42
42
res = send_request_raw ( {
43
43
'method' => 'GET' ,
44
- 'uri' => @uri . path
44
+ 'uri' => normalize_uri ( @uri . path )
45
45
} )
46
46
47
47
return [ nil , nil ] if not ( res and res . headers [ 'Set-Cookie' ] )
@@ -74,7 +74,7 @@ def do_login(user, pass)
74
74
begin
75
75
res = send_request_cgi ( {
76
76
'method' => 'POST' ,
77
- 'uri' => "#{ @uri . path } index.php" ,
77
+ 'uri' => normalize_uri ( "#{ @uri . path } index.php" ) ,
78
78
'cookie' => sid ,
79
79
'vars_post' => {
80
80
'token' => token ,
@@ -117,7 +117,7 @@ def do_login(user, pass)
117
117
end
118
118
119
119
def run
120
- @uri = normalize_uri ( target_uri . path )
120
+ @uri = target_uri . path
121
121
@uri . path << "/" if @uri . path [ -1 , 1 ] != "/"
122
122
@peer = "#{ rhost } :#{ rport } "
123
123
You can’t perform that action at this time.
0 commit comments