Skip to content

Commit a39c407

Browse files
committed
cleanup
cleanup
1 parent 018b041 commit a39c407

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

modules/exploits/linux/http/traccar_rce_upload.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ def execute_command(cmd)
125125

126126
json = res.get_json_document
127127

128-
unless json.dig('name') == datastore['USERNAME'] && json.dig('email') == datastore['EMAIL']
128+
unless json['name'] == datastore['USERNAME'] && json['email'] == datastore['EMAIL']
129129
fail_with(Failure::UnexpectedReply, 'Received unexpected reply:\n' + json.to_s)
130130
end
131131

@@ -149,7 +149,7 @@ def execute_command(cmd)
149149
vprint_status("JSESSIONID: #{jsessionid}")
150150

151151
json = res.get_json_document
152-
unless res.code == 200 && json.dig('name') == datastore['USERNAME'] && json.dig('email') == datastore['EMAIL']
152+
unless res.code == 200 && json['name'] == datastore['USERNAME'] && json['email'] == datastore['EMAIL']
153153
fail_with(Failure::UnexpectedReply, 'Received unexpected reply:\n' + json.to_s)
154154
end
155155

@@ -178,7 +178,7 @@ def execute_command(cmd)
178178

179179
json = res.get_json_document
180180

181-
unless res.code == 200 && json.dig('name') == name_v && json.dig('uniqueId') == unique_id_v && json.key?('id')
181+
unless res.code == 200 && json['name'] == name_v && json['uniqueId'] == unique_id_v && json.key?('id')
182182
fail_with(Failure::UnexpectedReply, 'Received unexpected reply:\n' + json.to_s)
183183
end
184184

0 commit comments

Comments
 (0)