Skip to content

Commit e0e7c67

Browse files
authored
Remove jsessionid parsing now that keep_cookies is being used
1 parent 30e6af7 commit e0e7c67

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

modules/exploits/linux/http/traccar_rce_upload.rb

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -137,10 +137,6 @@ def prepare_setup
137137
fail_with(Failure::Unreachable, 'Failed to receive a reply from the server.')
138138
end
139139

140-
jsessionid = res.get_cookies.scan(/JSESSIONID=([^;]+)/).flatten[0]
141-
fail_with(Failure::UnexpectedReply, 'JSESSIONID not found.') unless jsessionid
142-
vprint_status("JSESSIONID: #{jsessionid}")
143-
144140
json = res.get_json_document
145141
unless res.code == 200 && json['name'] == datastore['USERNAME'] && json['email'] == datastore['EMAIL']
146142
print_status('Provide the correct password for the existing E-Mail address, or provide a new E-Mail address.')
@@ -178,10 +174,6 @@ def prepare_setup
178174
fail_with(Failure::Unreachable, 'Failed to receive a reply from the server.')
179175
end
180176

181-
jsessionid = res.get_cookies.scan(/JSESSIONID=([^;]+)/).flatten[0]
182-
fail_with(Failure::UnexpectedReply, 'JSESSIONID not found.') unless jsessionid
183-
vprint_status("JSESSIONID: #{jsessionid}")
184-
185177
json = res.get_json_document
186178
unless res.code == 200 && json['name'] == datastore['USERNAME'] && json['email'] == datastore['EMAIL']
187179
fail_with(Failure::UnexpectedReply, 'Received unexpected reply:\n' + json.to_s)

0 commit comments

Comments
 (0)