Permalink
Cannot retrieve contributors at this time
Name already in use
A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
WAMpage/src/shellcode/shellcode.s
Go to fileThis commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
15 lines (11 sloc)
273 Bytes
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| .text | |
| .global _start | |
| _start: | |
| ldr r0, target | |
| mov r1, #0x4000 @ should be more than enough space (TODO: calculate based on python shellcode len) | |
| mov r2, #7 @ rwx | |
| mov r7, #125 @ mprotect | |
| swi #0 | |
| ldr r0, target | |
| mov pc, r0 | |
| target: .word 0xdeadbeef |