Trapped Source

Challenge Description

Intergalactic Ministry of Spies tested Pandora’s movement and intelligence abilities. She found herself locked in a room with no apparent means of escape. Her task was to unlock the door and make her way out. Can you help her in opening the door?

Categoria: Web
Dificultad: Muy Fácil

Solution

Este reto es bastante sencillo solo es necesario revisar el view-source de la pagina y veremos el codigo correcto.

<script>
		window.CONFIG = window.CONFIG || {
			buildNumber: "v20190816",
			debug: false,
			modelName: "Valencia",
			correctPin: "5955",
		}
	</script>

Ingresamos el codigo y nos dara la flag.

POST /flag HTTP/1.1
Host: 94.237.50.156:32705
User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:128.0) Gecko/20100101 Firefox/128.0
Accept: */*
Accept-Language: en-US,en;q=0.5
Accept-Encoding: gzip, deflate, br
Referer: http://94.237.50.156:32705/
Content-Type: application/json
Content-Length: 14
Origin: http://94.237.50.156:32705
Connection: keep-alive
Priority: u=0

{"pin":"5955"}
HTTP/1.1 200 OK
Server: Werkzeug/2.3.4 Python/3.8.16
Date: Tue, 18 Feb 2025 13:23:52 GMT
Content-Type: application/json
Content-Length: 50
Connection: close

{"message":"HTB{vi3w_cli13nt_s0urc3_S3cr3ts!}\n"}