[*] Binary protection state of lsattr

  
  	Full RELRO     Canary found      NX enabled   PIE enabled  No RPATH     No RUNPATH   No Symbols


[*] Function printf tear down of lsattr

bne 0xbe8
ldr r3, [0x00000c84]
add r3, pc
ldr r3, [r3, 4]
cmp r3, 0
bne 0xc04
ldr r5, [0x00000c88]
add r5, pc
ldr r2, [r5, 8]
ands r4, r2, 1
bne 0xbc2
ldr r3, [0x00000c8c]
ldr r1, [sp]
ldr r3, [r7, r3]
ldr r0, [r3]
blx sym.imp.print_flags
ldr r1, [0x00000c90]
mov r2, r6
movs r0, 1
add r1, pc
blx sym.imp.__printf_chk
ldr r2, [0x00000c94]
ldr r3, [0x00000c78]
add r2, pc
ldr r3, [r2, r3]
ldr r2, [r3]
ldr r3, [sp, 0xc]
eors r2, r3
mov.w r3, 0
bne 0xc70
mov r0, r4
add sp, 0x14
pop {r4, r5, r6, r7, pc}
ldr r1, [0x00000c98]
mov r2, r6
movs r0, 1
movs r4, 0
add r1, pc
blx sym.imp.__printf_chk
ldr r3, [0x00000c8c]
ldr r2, [r5, 8]
ldr r1, [sp]
ldr r5, [r7, r3]
ldr r0, [r5]
blx sym.imp.print_flags
ldr r1, [r5]
movs r0, 0xa
blx sym.imp.fputc
b 0xba8
add r1, sp, 8
mov r0, r6
blx sym.imp.fgetproject
adds r2, r0, 1
mov r4, r0
beq 0xc3c
ldr r1, [0x00000c9c]
movs r0, 1
ldr r2, [sp, 8]
add r1, pc
blx sym.imp.__printf_chk
b 0xb7a
add r1, sp, 4
mov r0, r6
blx sym.imp.fgetversion
adds r3, r0, 1
mov r4, r0
beq 0xc56
ldr r1, [0x00000ca0]
movs r0, 1
ldr r2, [sp, 4]
add r1, pc
blx sym.imp.__printf_chk
b 0xb84
ldr r3, [0x00000ca4]
--
mov r0, r8
blx sym.imp.strlen
add r0, r5
add sb, pc
adds r0, 2
blx sym.imp.malloc
cmp r0, 0
beq 0xe76
mov r4, r0
cbz r5, 0xda6
add r5, r7
ldrb r3, [r5, -0x1]
cmp r3, 0x2f
beq 0xe5e
ldr r3, [0x00000e9c]
mov.w r2, -1
movs r1, 1
mov r0, r4
strd r7, r8, [sp]
add r3, pc
blx sym.imp.__sprintf_chk
add r1, sp, 8
mov r0, r4
--
beq 0xdd4
ldrb r3, [r6, 0xb]
cmp r3, 0x2e
bne 0xe20
ldrb.w r3, [r8, 1]
cmp r3, 0
beq 0xdd4
ldrb r3, [r6, 0xb]
cmp r3, 0x2e
bne 0xe36
ldrb.w r3, [r8, 1]
cmp r3, 0x2e
bne 0xe36
ldrb.w r3, [r8, 2]
cmp r3, 0
beq 0xdd4
ldr r1, [0x00000eac]
mov r2, r4
movs r0, 1
add r1, pc
blx sym.imp.__printf_chk
ldr r1, [0x00000eb0]
movs r2, 0
mov r0, r4
add r1, pc
blx sym.imp.iterate_on_dir
movs r0, 0xa
blx sym.imp.putchar
b 0xdd4
mov r0, r4
blx sym.imp.perror
b 0xdd4
ldr r3, [0x00000eb4]
mov.w r2, -1
movs r1, 1
strd r7, r8, [sp]
add r3, pc
blx sym.imp.__sprintf_chk
b 0xdba
blx sym.imp.__stack_chk_fail

[*] Function printf used 7 times lsattr