Very vulnerable ARM/AARCH64 application (CTF style exploitation tutorial with 29 vulnerability techniques)
Very vulnerable ARM/AARCH64 application (CTF style exploitation tutorial with 29 vulnerability techniques)
(c) B.Kerler 2018-2026
Some of my friends asked me if I could do some examples of exploitable stuff I've seen in real-world the past years for ARM/ARM64[AARCH64]/others.
So, for training purposes, I thought: Why not :)
…Download the repo
git clone https://github.com/bkerler/exploit_meInstall needed tools on host (Ubuntu)
~$ cd exploit_me
~/exploit_me $ ./script/setup.shSee hints.txt for a start.
For trying if it works : *** 32-Bit:
$ ./bin/exploit*** 64-Bit:
$ ./bin/exploit64Example debugging session:
$ sudo ./scripts/disableaslr.sh(Disable aslr, don't run if you want more fun) (Path dir1/dir2 needed in current exploit directory for Path Traversal vulnerability)
*** 32-Bit:
$ ./bin/arm exploit [levelpassword] [options] &
$ gdb-multiarch ./exploit
pwndbg> set architecture arminstead you can also add architecture in .gdbinit as "set architecture arm"*** 64-Bit:
$ ./arm64 exploit64 [levelpassword] [options] &
$ gdb-multiarch ./exploit64
pwndbg> set architecture aarch64instead you can also add architecture in .gdbinit as "set architecture aarch64"
*** Example .gdbinit
set endian little
#set architecture arm
#set architecture aarch64
target remote :1234
GDB Basics:
…After you've exploited correctly, you will see the password for the next level. So if level2 password would be "Level2": *** 32-Bit:
$ ./bin/exploit Level2*** 64-Bit:
$ ./bin/exploit64 Level2For cheaters or people trying to understand with less instruction knowledge :
See solutions/solutions.txt and source code in src/exploit.cppThere are more solutions possible, even with rop chains, not just my example solutions given
There are some hints printed to console (information leak), which you normally wouldn't have, but these make things easier for beginners, that's why I added it
MIT License (Share, modify and use as you like, but refer to the original author !)
No open issues yet, or sync has not completed.