[*] Binary protection state of agetty
Full RELRO Canary found NX enabled PIE enabled No RPATH No RUNPATH No Symbols
[*] Function fprintf tear down of agetty
uxtb r3, r7
mov sb, r0
ldrh.w r3, [r1, r3, lsl 1]
lsls r0, r3, 0x12
bpl 0x5ef8
mov r3, r6
ldrsb r7, [r3, 1]!
uxtb r2, r7
ldrh.w r2, [r1, r2, lsl 1]
lsls r2, r2, 0x12
bmi 0x5eea
cmp r7, 0x2d
beq.w 0x6000
ldr r4, [sp]
movs r2, 0
add r1, sp, 0x28
mov r0, r6
str r2, [sp, 0x28]
str r2, [r4]
str r1, [sp, 0xc]
blx sym.imp.__fprintf_chk
ldr.w r8, [sp, 0x28]
mov r3, r0
--
mov r5, r4
ldrsb r3, [r4, 1]!
cmp r3, 0x30
beq 0x5f9a
adds r6, 1
subs r6, r6, r2
add r6, r5
ldr.w r2, [sb]
ldrh.w r3, [r2, r3, lsl 1]
lsls r3, r3, 0x14
itt pl
movpl r8, r4
strpl r4, [sp, 0x28]
bpl 0x5f3e
ldr r3, [sp]
movs r2, 0
ldr r1, [sp, 0xc]
mov r0, r4
str r2, [sp, 0x28]
str r2, [r3]
blx sym.imp.__fprintf_chk
ldr.w r8, [sp, 0x28]
mov fp, r0
--
itt lt
movlt r3, 0x22
strlt r3, [r5]
bge 0x65f2
mvn r0, 0x15
ldr r2, [0x00006630]
ldr r3, [0x0000662c]
add r2, pc
ldr r3, [r2, r3]
ldr r2, [r3]
ldr r3, [sp, 4]
eors r2, r3
mov.w r3, 0
bne 0x6622
add sp, 0xc
pop.w {r4, r5, r6, r7, r8, sb, pc}
mov r2, r7
mov r1, r6
mov r0, r4
str.w sb, [r5]
blx sym.imp.__fprintf_chk
mov r2, r0
ldr r0, [r5]
[*] Function fprintf used 3 times agetty