lunes, 23 de septiembre de 2013

Writeup Network 200. CTF Mugar2 2013



Network 200

Esta prueba de network es un homenaje a las comunicaciones retro.

La introducción a la prueba era esta:

"Al parecer algunos de nuestros sistemas de comunicación han sido reutilizados por los aliens, afortunadamente parece que solo han conseguido adaptar los más antiguos, pero ¿cuánto tiempo llevan entonces entre nosotros? Este es un interface que hemos conseguido hasta uno de esos aparatos, en la carcasa pone V.21 .. ctf.adaformacion.es 9000"

¿Por donde empezar?

Pues a ver, antes de conectarnos a nada vamos a buscar información sobre V.21, por si lo que aparece por ahí está relacionado.

Una ojeada a google nos devuelve varios resultados, y el único relacionado con la tecnología parece ser este


Módem dúplex a 300 bit/s normalizado para uso en la red telefónica general con conmutación  

Bueno, aunque no nos vale para nada (aún), nos quedamos con la información y pasamos a la siguiente parte, la del nc


En este caso cuando ejecutamos el comando del enunciado nos salen una serie de caracteres imprimibles y no imprimibles que posiblemente estropearán la configuración de la consola (lo siento!, pero reset es un comando muy útil en estos casos, vuelve a poner la consola como nueva :D)

Entonces, si son datos binarios, realmente no podemos interactuar con ellos, así que la mejor idea en estos casos es guardarlos y luego ya utilizaremos alguna herramienta para analizarlos, abrirlos o ver al menos que son.

Así que en vez de ejecutar directamente el nc ctf.adaformacion.es 9000, lo redirigimos quedando así

nc ctf.adaformacion.es 9000 > ficherodesconocido

Y luego miramos lo que es con el comando file

# file ficherodesconocido 
ficherodesconocido: FLAC audio bitstream data, 16 bit, mono, 48 kHz, length unknown


¿Un fichero de audio?

Pues nada, lo escuchamos (lo subo a soundcloud para que podais probarlo sin hacer lo del nc, porque el servicio lo apagamos despues del CTF).



Parece un sonido de.. .¿un modem? A lo mejor esta parte a los más jóvenes les ha costado un poco más pero muchos tenemos ese sonido grabado a fuego en nuestras cabezas, pero eh espera.. no hablaba además la introducción de la prueba de V.21, un modem a 300bps

¡Pues entonces esta podría ser una transmisión hecha con ese modem!

Y llegados aquí tenemos dos opciones, conseguir un modem (je je) o buscar un emulador por internet, en los propios repositorios de debian hay uno así que..

apt-get install minimodem

Y mi recomendación, para hacerlo más realista, es que si quereis probarlo useis soundcloud y pongais cerca el micrófono y..


minimodem -r 300


Si lo haceis así cualquier sonido de fondo podrá interferir, así que si estais en un lugar ruidoso y no os importa el "glamour" de la prueba ;)

minimodem -r 300 -f ficherodesconocido

En cualquiera de los dos casos el resultado es el hacker's manifesto con la key que buscamos al final :) 

Espero que os haya gustado!


### CARRIER 300 @ 1250.0 Hz ###
Another one got caught today, it's all over the papers. "Teenager 
Arrested in Computer Crime Scandal", "Hacker Arrested after Bank Tampering"... 

Damn kids. They're all alike. 

But did you, in your three-piece psychology and 1950's technobrain, 
ever take a look behind the eyes of the hacker? Did you ever wonder what 
made him tick, what forces shaped him, what may have molded him? 

I am a hacker, enter my world... 

Mine is a world that begins with school... I'm smarter than most of 
the other kids, this crap they teach us bores me... 

Damn underachiever. They're all alike. 

I'm in junior high or high school. I've listened to teachers explain 
for the fifteenth time how to reduce a fraction. I understand it. "No, Ms. 
Smith, I didn't show my work. I did it in my head..." 

Damn kid. Probably copied it. They're all alike. 

I made a discovery today. I found a computer. Wait a second, this is 
cool. It does what I want it to. If it makes a mistake, it's because I 
screwed it up. Not because it doesn't like me... 

Or feels threatened by me... 
Or thinks I'm a smart ass... 
Or doesn't like teaching and shouldn't be here... 

Damn kid. All he does is play games. They're all alike. 
And then it happened... a door opened to a world... rushing through 
the phone line like heroin through an addict's veins, an electronic pulse is 
sent out, a refuge from the day-to-day incompetencies is sought... a board is 
found. 

"This is it... this is where I belong..." 

I know everyone here... even if I've never met them, never talked to 
them, may never hear from them again... I know you all... 

Damn kid. Tying up the phone line again. They're all alike... 

You bet your ass we're all alike... we've been spoon-fed baby food at 
school when we hungered for steak... the bits of meat that you did let slip 
through were pre-chewed and tasteless. We've been dominated by sadists, or 
ignored by the apathetic. The few that had something to teach found us will- 
ing pupils, but those few are like drops of water in the desert. 

This is our world now... the world of the electron and the switch, the 
beauty of the baud. We make use of a service already existing without paying 
for what could be dirt-cheap if it wasn't run by profiteering gluttons, and 
you call us criminals. We explore... and you call us criminals. We seek 
after knowledge... and you call us criminals. We exist without skin color, 
without nationality, without religious bias... and you call us criminals. 
You build atomic bombs, you wage wars, you murder, cheat, and lie to us 
and try to make us believe it's for our own good, yet we're the criminals. 

Yes, I am a criminal. My crime is that of curiosity. My crime is 
that of judging people by what they say and think, not what they look like. 
My crime is that of outsmarting you, something that you will never forgive me 
for. 

I am a hacker, and this is my manifesto. You may stop this individual, 
but you can't stop us all... after all, we're all alike. 

And the key is "the_key_is_a_lie"
### NOCARRIER ndata=3041 confidence=0.77 throughput=300.00 (0.0% slow) ###












No hay comentarios:

Publicar un comentario