Skip to content
Permalink
master
Switch branches/tags
Go to file
 
 
Cannot retrieve contributors at this time
20 lines (16 sloc) 418 Bytes
/* execve() assembly code from the tutorial 'Writing ARM Shellcode' (https://azeria-labs.com/writing-arm-shellcode/),
second example containing one null-byte */
.section .text
.global _start
_start:
.code 32
add r3, pc, #1
bx r3
.code 16
add r0, pc, #8
eor r1, r1, r1
eor r2, r2, r2
mov r7, #11
svc #1
mov r5, r5
.ascii "/bin/sh\0"