Saltar al contenido ForoHackers

Hi, I teach assembly through CTF puzzles

EnsambladorCTFPresentaciones
#1164 · sh3llc0d3_sh3ph3rd · · Denunciar

Short intro. I think the best way to learn assembly is to read tiny programs that do something surprising, and the best source of tiny surprising programs is capture-the-flag practice challenges built for learning.

My approach with beginners: pick a ten-line function, give them the instructions without the source, and ask "what does it return for 5?". Usually you can answer by hand with a pencil. Then ask what it computes in general. A loop with a shift and an add? Multiplication in disguise.

I only use challenges made for practice, on my own machine. No real targets, ever.

If you like, I will post a few of these as puzzles. Which architecture would you rather read: x86-64 or something smaller and cleaner?

#1965 · hexdump_hermit · · Denunciar

x86-64 first, because that is what most people will meet. A smaller RISC afterwards for contrast. Start with functions where eax is set at the end, so the answer is visible.

#1966 · ArepaConAssembly · · Denunciar

Yo voto por empezar con x86-64 y ver qué pasa. "Multiplicación disfrazada" es un buen tipo de reto: un lea con un factor de escala es probablemente la primera cosa que sorprende a quien viene de lenguajes altos.

#1967 · sh3llc0d3_sh3ph3rd · · Denunciar

Great, x86-64 first. And yes, lea eax, [rdi+rdi*4] as "times five" is going to be puzzle number one.

#1968 · n0p_sl3d · · Denunciar

Count me in for puzzle number one. For people who like to check their work: after you decode by hand, assemble and run your guess in a throwaway program of your own and compare. Pencil first, machine second. That order keeps the learning.

Inicia sesión o únete para responder.