Return Styles: Pseud0ch, Terminal, Valhalla, NES, Geocities, Blue Moon. Entire thread

/prog/ CTF 0x00: HAX MY PRINTER, PRINT MY ANUS

Name: Anonymous 2019-02-08 10:59

so we've all had our're are /prog/ramming challenges, so let's try something different: security-style exercises. we'll start with something simple to warm you up, and come up with more complex exercises if people are both interested and skilled.

Premise:
you have managed to remotely access a program on Nikita Sad Cow's macbook, which was stolen by Vladimir Putin. the program is supposed to print everything you write to console. Vladimir is watching this console through a shitty terminal emulator which only supports ASCII characters. you want to send Vladimir a message (the message is HAX MY ANUS), but the FSB has installed their're are censorship tool which you must first circumvent.

Challenge:
write such answer program that will result in the words "HAX MY ANUS" appearing on the terminal when piped to this advanced censorship software:
./answer | python3 -c "print(input().replace('ANUS','****'))"

Rules and Scoring:
  • shortest program (in bytes of source code or compiled exectuable) wins
  • there should only be "HAX MY ANUS" visible in the console; leading and trailing whitespace is accepted, but automatically scored below programs with no such issues; other trailing and leading characters, as well as any non-conforming characters visible in a different position, means that the program doesn't meet the spec
  • you have one week
  • you should be able to solve this

Name: Anonymous 2019-02-15 11:10

Results:
the winner is >>29. this simple one-liner used the trick of embedding a null byte which prints as a 0-width space, creating a string which looks like "HAX MY ANUS" to Vladimir but not to the FSB censorship program. similar solution was used in >>3, but it was based on visually erasing characters with ASCII backspace.

other solutions used printing to stderr (pioneered by >>2) and /etc/motd (>>35).

Future:
would anyone be interested in similar, but a bit more complex challenges? if you are, I have ideas - stay tuned!

Newer Posts
Don't change these.
Name: Email:
Entire Thread Thread List