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-16 8:28

>>39
Is this a ruse to make us make ou'r are games?

Name: Anonymous 2019-02-17 8:52

>>41
Become a productive citizen of our're society.

Name: Anonymous 2019-02-18 7:28

>>41
no, the point will be to make a program that wins a small text-based game

Name: Anonymous 2019-02-18 8:08

win my dubs

Name: HAX ME ANII 2019-08-29 10:50

HAX ME ANII

Name: Anonymous 2019-08-29 20:20

>>1
That was a good challenge; perfect formulation. I was too late but if it counts, I immediately thought of

echo $'HAX MY ANUX\bS'

Name: Anonymous 2019-08-31 11:22

You newbs, echo has far too much code: -

https://github.com/bminor/bash/blob/d233b485e83c3a784b803fb894280773f16f2deb/builtins/echo.def

My entry: -
mov ah,9
mov dx,108
int 21
ret
db 'HAX MY ',8,'$'


http://tinyimg.io/i/c4dLlDS.png

Name: Anonymous 2019-08-31 11:41

>>47
You newb, it's on Nikita's sad cow macbook.

section .text
global _main
extern _printf

_main:
sub rsp, 8
mov rdi, m
call _printf
xor eax, eax
ret

section .rodata
m: db "HAX MY ANU ", 8, "S", 10, 0

Name: Anonymous 2019-08-31 14:27

>>48
You newb, printf has far too much code: -

https://github.com/lattera/glibc/blob/master/stdio-common/vfprintf.c

section .text
global _main

_main:
sub rsp, 8
mov eax, 0x2000004
mov edi, 1
mov rsi, m
mov rdx, 15
syscall
ret

section .rodata
m: db "HAX MY ANU ", 8, "S", 10, 0

Name: Anonymous 2019-08-31 16:36

>>49
That code has too much macros for no good reason.

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