$ cat writeup.md…
$ cat writeup.md…
HackTheBox
The famous hacker Script K. Iddie has finally been caught after many years of cybercrime. Before he was caught, he released a server sending mysterious data, and promised his 0-days to anyone who could solve his multi-level hacking challenge. Now everyone is in an ARMs race to get his exploits. Can
$ cat /etc/rate-limit
Rate limit reached (20 reads/hour per IP). Showing preview only — full content returns at the next hour roll-over.
The famous hacker Script K. Iddie has finally been caught after many years of cybercrime. Before he was caught, he released a server sending mysterious data, and promised his 0-days to anyone who could solve his multi-level hacking challenge. Now everyone is in an ARMs race to get his exploits. Can you be the one to solve Iddie's puzzle?
Target: TCP service sending 50 levels of ARM machine code to emulate.
Level X/50: <hex_encoded_ARM_machine_code>\nRegister r0:movw/movt — loading 32-bit immediate values into registers r1, r2add, sub, mul, eor (xor), and, orr, rsb (reverse subtract), adc (add with carry), sbc (subtract with carry)Using Unicorn Engine to emulate ARM code on each level:
#!/usr/bin/env python3 from pwn import * from unicorn import * from unicorn.arm_const import * import binascii import re HOST = '94.237.63.176' PORT = 36131 ADDRESS = 0x10000 STACK_ADDR = 0x800000 ...
$ grep --similar