ARM 32-bit Raspberry Pi Char Pointer example in Kali Linux.
Join DC540 Discord HERE
FREE Reverse Engineering Self-Study Course HERE
Raspberry Pi 4
64GB Micro SD Card
Micro SD Card Reader/Writer
Download [https://www.offensive-security.com/kali-linux-arm-images/]
POWER UP DEVICE AND LOGIN AS KALI AND SET UP SSH
#include <stdio.h>
int main()
{
char *x;
x = "hello world!";
printf("%s\n", x);
return 0;
}
gcc -o 0x06_arm_32_hacking_char_pointer 0x06_arm_32_hacking_char_pointer.c
./0x06_arm_32_hacking_char_pointer
hello world!
r2 -d ./0x06_arm_32_hacking_char_pointer
aaa
s main
vv
q
[0x004e7500]> px @ 0x4e7528
- offset - 0 1 2 3 4 5 6 7 8 9 A B C D E F 0123456789ABCDEF
0x004e7528 6400 0000 2de9 f843 0746 0c4e 0c4d 8846 d...-..C.F.N.M.F
0x004e7538 7e44 9146 7d44 fff7 30ef 761b b610 0ad0 ~D.F}D..0.v.....
0x004e7548 043d 0024 55f8 043f 4a46 4146 3846 0134 .=.$U..?JFAF8F.4
0x004e7558 9847 a642 f6d1 bde8 f883 00bf d009 0100 .G.B............
0x004e7568 c809 0100 7047 00bf 0840 2de9 0880 bde8 ....pG...@-.....
0x004e7578 0100 0200 6865 6c6c 6f20 776f 726c 6421 ....hello world!
0x004e7588 0000 0000 70fe ff7f 0100 0000 0000 0000 ....p...........
0x004e7598 0000 0000 0000 0000 0000 0000 0000 0000 ................
0x004e75a8 0000 0000 0000 0000 0000 0000 0000 0000 ................
0x004e75b8 0000 0000 0000 0000 0000 0000 0000 0000 ................
0x004e75c8 0000 0000 0000 0000 0000 0000 0000 0000 ................
0x004e75d8 0000 0000 0000 0000 0000 0000 0000 0000 ................
0x004e75e8 0000 0000 0000 0000 0000 0000 0000 0000 ................
0x004e75f8 0000 0000 0000 0000 0000 0000 0000 0000 ................
0x004e7608 0000 0000 0000 0000 0000 0000 0000 0000 ................
0x004e7618 0000 0000 0000 0000 0000 0000 0000 0000 ................
[0x004e7500]>
[0x004e7500]> w hacked world @0x004e757c
[0xb6e43c66]> ps @0x004e757c
hacked world
q
r2 -w ./0x06_arm_32_hacking_char_pointer
[0x000003fc]> aaa
[0x000003fc]> s main
[0x000003fc]> vv
q
[0x0000053c]> w hacked world @0x0000057c
./0x06_arm_32_hacking_char_pointer
hacked world
Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.
Please make sure to update tests as appropriate.