We need oxygen: Difference between revisions

From Pessin randon wiki
No edit summary
 
(7 intermediate revisions by 2 users not shown)
Line 9: Line 9:


===Solution===
===Solution===
Open the link in a new tab. Right click on the slider, then "Inspect". Check out the source code. There's a line for enabling the slider: <input type="checkbox" id="check0" name="pump" disabled=""> right click "Edit as HTML". replace disabled with enabled. The code should now read <input type="checkbox" id="check0" name="pump" enabled="">
 
====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>
 
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====
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===


===Flag===
===Flag===
<code>ctftech{cb002044-109b}</code>


===Links===
===Links===
*[[CTF Challenges | Back to CTF Challenges page]]
*[[CTF Challenges | Back to CTF Challenges page]]

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}