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