Guest User

Untitled

a guest
Jun 18th, 2018
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.16 KB | None | 0 0
  1. root@debian-armel:/tmp/squashfs-root/usr/bin# ./my_arm_bin
  2. Illegal instruction
  3.  
  4. Warning: Cannot initialize dynamic strings
  5. arch arm
  6. binsz 44831825
  7. bintype elf
  8. bits 32
  9. canary false
  10. class ELF32
  11. crypto false
  12. endian little
  13. havecode true
  14. lang c
  15. linenum false
  16. lsyms false
  17. machine ARM
  18. maxopsz 16
  19. minopsz 1
  20. nx false
  21. os linux
  22. pcalign 0
  23. pic false
  24. relocs false
  25. rpath NONE
  26. static true
  27. stripped true
  28. subsys linux
  29. va true
  30.  
  31. gef> x/20i $pc
  32. => 0x796a0: mov r11, #0
  33. 0x796a4: mov lr, #0
  34. 0x796a8: pop {r1} ; (ldr r1, [sp], #4)
  35. 0x796ac: mov r2, sp
  36. 0x796b0: push {r2} ; (str r2, [sp, #-4]!)
  37. 0x796b4: push {r0} ; (str r0, [sp, #-4]!)
  38. 0x796b8: ldr r12, [pc, #16] ; 0x796d0
  39. 0x796bc: push {r12} ; (str r12, [sp, #-4]!)
  40. 0x796c0: ldr r0, [pc, #12] ; 0x796d4
  41. 0x796c4: ldr r3, [pc, #12] ; 0x796d8
  42. 0x796c8: bl 0x4021a0
  43. 0x796cc: bl 0x401fa0
  44. 0x796d0: andeq r2, r12, #200, 2 ; 0x32
  45. 0x796d4: andeq r10, r1, r12, lsl #11
  46. 0x796d8: andeq r2, r12, #40, 2
  47. 0x796dc: ldr r3, [pc, #20] ; 0x796f8
  48. 0x796e0: ldr r2, [pc, #20] ; 0x796fc
  49. 0x796e4: add r3, pc, r3
  50. 0x796e8: ldr r2, [r3, r2]
  51. 0x796ec: cmp r2, #0
  52. gef>
  53.  
  54. -> 0x796c8 bl 0x4021a0
  55. -> 0x4021a0 ldr pc, [pc, #-4] ; 0x4021a4
  56.  
  57. gef> x/20i $pc
  58. => 0x20c1b30: push {r4, r5, r6, r7, lr}
  59. 0x20c1b34: sub sp, sp, #300 ; 0x12c
  60. 0x20c1b38: movw r12, #0
  61. 0x20c1b3c: mov r5, r3 --> Here is our illegal instruction
  62. 0x20c1b40: movt r12, #0
  63. 0x20c1b44: str r1, [sp, #4]
  64. 0x20c1b48: movw r1, #65336 ; 0xff38
  65. 0x20c1b4c: cmp r12, #0
  66. 0x20c1b50: ldr r3, [sp, #4]
  67. 0x20c1b54: str r2, [sp, #8]
  68. 0x20c1b58: ldrne r12, [r12]
  69. 0x20c1b5c: add r2, r3, #1
  70. 0x20c1b60: str r0, [sp, #12]
  71. 0x20c1b64: movw r3, #56376 ; 0xdc38
  72. 0x20c1b68: ldr r7, [sp, #8]
  73. 0x20c1b6c: movw r0, #3092 ; 0xc14
  74. 0x20c1b70: ldr lr, [sp, #328] ; 0x148
  75. 0x20c1b74: clzne r12, r12
  76. 0x20c1b78: movt r0, #685 ; 0x2ad
  77. 0x20c1b7c: movt r1, #827 ; 0x33b
Add Comment
Please, Sign In to add comment