File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
modules/exploits/linux/http Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments