We need oxygen: Difference between revisions

From Pessin randon wiki
No edit summary
No edit summary
 
(4 intermediate revisions by the same user not shown)
Line 11: Line 11:


====Solution 1====
====Solution 1====
Open the link in a new tab. Right click on the slider element witch won't change status on clicking, then "Inspect". Local source code with the following line: <code><input type="checkbox" id="check0" name="pump" disabled></code>
Open the link in a new tab. Right click on the slider element witch won't change status on clicking, then "Inspect". Local source code with the following line: <code><input type="checkbox" id="check0" name="pump" disabled=""></code>


Right click "Edit as HTML" on that line. Remove <code>disabled> from code. The code should now read <code><input type="checkbox" id="check0" name="pump"></code>
Right click "Edit as HTML" on that line. Remove <code>disabled=""</code> from code. The code should now read <code><input type="checkbox" id="check0" name="pump"></code>


Repeat steps for the next 3 sliders. You should now be able to toggle the Admin sliders to on and update settings. The flag is shown as a pop-up message
Repeat steps for the next 3 sliders. You should now be able to toggle the Admin sliders to on and update settings. The flag is shown as a pop-up message


====Solution 2====
====Solution 2====
Explore the source file for some interesting looking javascript code. You will find a obfuscated source file at the end of the source file. In that source file, a table catches your eye with some clearly Base64 encoded information. By decoding this data, you get a flag directly.
[[File:We-need-oxygen-js.PNG|center|We need oxygen javascript|frame]]


===Tools===
===Tools===

Latest revision as of 09:26, 16 September 2022

Description

You get access to the Intensive Care Ward, where the situation is chaotic. A number of patients are suffering, because the central oxygen delivery system is malfunctioning. IT-technician is losing his mind, because he is stuck with the following system which should deliver oxygen to patients. You offer your help.

50 p

Question

Turn ON oxygen to all rooms. The oxygen control system is located at: http://target04.i1.cybexer.io

Solution

Solution 1

Open the link in a new tab. Right click on the slider element witch won't change status on clicking, then "Inspect". Local source code with the following line: <input type="checkbox" id="check0" name="pump" disabled="">

Right click "Edit as HTML" on that line. Remove disabled="" from code. The code should now read <input type="checkbox" id="check0" name="pump">

Repeat steps for the next 3 sliders. You should now be able to toggle the Admin sliders to on and update settings. The flag is shown as a pop-up message

Solution 2

Explore the source file for some interesting looking javascript code. You will find a obfuscated source file at the end of the source file. In that source file, a table catches your eye with some clearly Base64 encoded information. By decoding this data, you get a flag directly.

We need oxygen javascript

Tools

Flag

ctftech{cb002044-109b}