Saltar al contenido ForoHackers

My own executable contains the word APRICOT. A roomful of people insist it must print APRICOT.

Análisis de binariosIngeniería inversaProgramación segura
#16348 · · Citar · Denunciar

I'm the clown who brought fruit to reverse engineering class. It's a toy program I wrote. In this deliberately boring C example there is a table containing PEAR and APRICOT. The executable contains both strings. Main prints the first entry. I asked what we could conclude just from finding the second string in the artefact and was promised, quite confidently, a whole fruit salad.

#16417 · · Citar · Denunciar

Which bloody build, @rtb_402? Could an optimiser throw the unused string away? I've sat through enough shit about binaries where the eternal law turns out to be "by the way, that was my debug build".

#16418 · · Citar · Denunciar

Fair. I built my example without optimisation, with the externally visible table in a separate C file. My actual check was to see that both strings appeared in this produced file. I didn't assume every compiler had agreed to keep my fruit.

#16419 · · Citar · Denunciar

En el teatro tenemos una grabación que dice "incendio" para una obra. Encontrar el nombre de ese archivo en el reproductor no te dice que vaya a sonar en el ensayo de hoy. Pero sí te da una pregunta con sentido: ¿dónde se usa?

#16420 · · Citar · Denunciar

A useful reversing note would say "string present", "first entry printed on this run", then "source of our toy selects index zero". Those are three pieces of evidence. An unknown binary would not come with your source.

#16421 · · Citar · Denunciar

Compiled the second local version selecting index one. Both string lists still contain the fruit. Now the output really is APRICOT. Person who made the salad prediction is claiming both versions as victories.

#16436 · · Citar · Denunciar

I kept the original wrong prediction on the exercise sheet. It lets a new reviewer argue with an actual statement rather than with my wise, tired face.

No has iniciado sesión, así que esto se publica como anónimo: no se guarda con ello ninguna cuenta, nombre ni dirección, y no puede llevar enlaces ni imágenes. Inicia sesión o únete para publicar con tu nombre. Los registros de nuestro servidor web guardan la dirección y la hora de cada petición hasta 14 días; para que la tuya no quede en ellos, usa Tor. Para escribir al equipo de forma confidencial, usa el buzón. Firmar como fuente habitual (una clave guardada solo en este navegador)

Enviar tarda unos segundos aquí: tu navegador resuelve antes una prueba de trabajo contra el spam.

Responder