Advertisement
Guest User

Untitled

a guest
Oct 23rd, 2017
84
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 6.73 KB | None | 0 0
  1. The LockIT Pro b.01 is the first of a new series of locks. It is
  2. controlled by a MSP430 microcontroller, and is the most advanced
  3. MCU-controlled lock available on the market. The MSP430 is a very
  4. low-power device which allows the LockIT Pro to run in almost any
  5. environment.
  6.  
  7. The LockIT Pro contains a Bluetooth chip allowing it to
  8. communiciate with the LockIT Pro App, allowing the LockIT Pro to
  9. be inaccessable from the exterior of the building.
  10.  
  11. There is no default password on the LockIT Pro HSM-1. Upon
  12. receiving the LockIT Pro, a new password must be set by first
  13. connecting the LockitPRO HSM to output port two, connecting it to
  14. the LockIT Pro App, and entering a new password when prompted, and
  15. then restarting the LockIT Pro using the red button on the back.
  16.  
  17. LockIT Pro Hardware Security Module 1 stores the login password,
  18. ensuring users can not access the password through other means.
  19. The LockIT Pro can send the LockIT Pro HSM-1 a password, and the
  20. HSM will return if the password is correct by setting a flag in
  21. memory.
  22.  
  23. This is Hardware Version B. It contains the Bluetooth connector
  24. built in, and two available ports: the LockIT Pro Deadbolt should
  25. be connected to port 1, and the LockIT Pro HSM-1 should be
  26. connected to port 2.
  27.  
  28. This is Software Revision 01, allowing it to communicate with the
  29. LockIT Pro HSM-1
  30.  
  31.  
  32. 0010 <__trap_interrupt>
  33. 0010: 3041 ret
  34. 4400 <__init_stack>
  35. 4400: 3140 0044 mov #0x4400, sp
  36. 4404 <__low_level_init>
  37. 4404: 1542 5c01 mov &0x015c, r5
  38. 4408: 75f3 and.b #-0x1, r5
  39. 440a: 35d0 085a bis #0x5a08, r5
  40. 440e <__do_copy_data>
  41. 440e: 3f40 0000 clr r15
  42. 4412: 0f93 tst r15
  43. 4414: 0724 jz #0x4424 <__do_clear_bss+0x0>
  44. 4416: 8245 5c01 mov r5, &0x015c
  45. 441a: 2f83 decd r15
  46. 441c: 9f4f 0c46 0024 mov 0x460c(r15), 0x2400(r15)
  47. 4422: f923 jnz #0x4416 <__do_copy_data+0x8>
  48. 4424 <__do_clear_bss>
  49. 4424: 3f40 2200 mov #0x22, r15
  50. 4428: 0f93 tst r15
  51. 442a: 0624 jz #0x4438 <main+0x0>
  52. 442c: 8245 5c01 mov r5, &0x015c
  53. 4430: 1f83 dec r15
  54. 4432: cf43 0024 mov.b #0x0, 0x2400(r15)
  55. 4436: fa23 jnz #0x442c <__do_clear_bss+0x8>
  56. 4438 <main>
  57. 4438: b012 2045 call #0x4520 <login>
  58. 443c: 0f43 clr r15
  59. 443e <__stop_progExec__>
  60. 443e: 32d0 f000 bis #0xf0, sr
  61. 4442: fd3f jmp #0x443e <__stop_progExec__+0x0>
  62. 4444 <__ctors_end>
  63. 4444: 3040 0a46 br #0x460a <_unexpected_>
  64. 4448 <unlock_door>
  65. 4448: 3012 7f00 push #0x7f
  66. 444c: b012 7a45 call #0x457a <INT>
  67. 4450: 2153 incd sp
  68. 4452: 3041 ret
  69. 4454 <test_password_valid>
  70. 4454: 0412 push r4
  71. 4456: 0441 mov sp, r4
  72. 4458: 2453 incd r4
  73. 445a: 2183 decd sp
  74. 445c: c443 fcff mov.b #0x0, -0x4(r4)
  75. 4460: 3e40 fcff mov #0xfffc, r14
  76. 4464: 0e54 add r4, r14
  77. 4466: 0e12 push r14
  78. 4468: 0f12 push r15
  79. 446a: 3012 7d00 push #0x7d
  80. 446e: b012 7a45 call #0x457a <INT>
  81. 4472: 5f44 fcff mov.b -0x4(r4), r15
  82. 4476: 8f11 sxt r15
  83. 4478: 3152 add #0x8, sp
  84. 447a: 3441 pop r4
  85. 447c: 3041 ret
  86. 447e .strings:
  87. 447e: "Enter the password to continue."
  88. 449e: "Remember: passwords are between 8 and 16 characters."
  89. 44d3: "Testing if password is valid."
  90. 44f1: "Access granted."
  91. 4501: "That password is not correct."
  92. 451f: ""
  93. 4520 <login>
  94. 4520: c243 1024 mov.b #0x0, &0x2410
  95. 4524: 3f40 7e44 mov #0x447e "Enter the password to continue.", r15
  96. 4528: b012 de45 call #0x45de <puts>
  97. 452c: 3f40 9e44 mov #0x449e "Remember: passwords are between 8 and 16 characters.", r15
  98. 4530: b012 de45 call #0x45de <puts>
  99. 4534: 3e40 1c00 mov #0x1c, r14
  100. 4538: 3f40 0024 mov #0x2400, r15
  101. 453c: b012 ce45 call #0x45ce <getsn>
  102. 4540: 3f40 0024 mov #0x2400, r15
  103. 4544: b012 5444 call #0x4454 <test_password_valid>
  104. 4548: 0f93 tst r15
  105. 454a: 0324 jz $+0x8
  106. 454c: f240 a800 1024 mov.b #0xa8, &0x2410
  107. 4552: 3f40 d344 mov #0x44d3 "Testing if password is valid.", r15
  108. 4556: b012 de45 call #0x45de <puts>
  109. 455a: f290 5f00 1024 cmp.b #0x5f, &0x2410
  110. 4560: 0720 jne #0x4570 <login+0x50>
  111. 4562: 3f40 f144 mov #0x44f1 "Access granted.", r15
  112. 4566: b012 de45 call #0x45de <puts>
  113. 456a: b012 4844 call #0x4448 <unlock_door>
  114. 456e: 3041 ret
  115. 4570: 3f40 0145 mov #0x4501 "That password is not correct.", r15
  116. 4574: b012 de45 call #0x45de <puts>
  117. 4578: 3041 ret
  118. 457a <INT>
  119. 457a: 1e41 0200 mov 0x2(sp), r14
  120. 457e: 0212 push sr
  121. 4580: 0f4e mov r14, r15
  122. 4582: 8f10 swpb r15
  123. 4584: 024f mov r15, sr
  124. 4586: 32d0 0080 bis #0x8000, sr
  125. 458a: b012 1000 call #0x10
  126. 458e: 3241 pop sr
  127. 4590: 3041 ret
  128. 4592 <putchar>
  129. 4592: 2183 decd sp
  130. 4594: 0f12 push r15
  131. 4596: 0312 push #0x0
  132. 4598: 814f 0400 mov r15, 0x4(sp)
  133. 459c: b012 7a45 call #0x457a <INT>
  134. 45a0: 1f41 0400 mov 0x4(sp), r15
  135. 45a4: 3150 0600 add #0x6, sp
  136. 45a8: 3041 ret
  137. 45aa <getchar>
  138. 45aa: 0412 push r4
  139. 45ac: 0441 mov sp, r4
  140. 45ae: 2453 incd r4
  141. 45b0: 2183 decd sp
  142. 45b2: 3f40 fcff mov #0xfffc, r15
  143. 45b6: 0f54 add r4, r15
  144. 45b8: 0f12 push r15
  145. 45ba: 1312 push #0x1
  146. 45bc: b012 7a45 call #0x457a <INT>
  147. 45c0: 5f44 fcff mov.b -0x4(r4), r15
  148. 45c4: 8f11 sxt r15
  149. 45c6: 3150 0600 add #0x6, sp
  150. 45ca: 3441 pop r4
  151. 45cc: 3041 ret
  152. 45ce <getsn>
  153. 45ce: 0e12 push r14
  154. 45d0: 0f12 push r15
  155. 45d2: 2312 push #0x2
  156. 45d4: b012 7a45 call #0x457a <INT>
  157. 45d8: 3150 0600 add #0x6, sp
  158. 45dc: 3041 ret
  159. 45de <puts>
  160. 45de: 0b12 push r11
  161. 45e0: 0b4f mov r15, r11
  162. 45e2: 073c jmp #0x45f2 <puts+0x14>
  163. 45e4: 1b53 inc r11
  164. 45e6: 8f11 sxt r15
  165. 45e8: 0f12 push r15
  166. 45ea: 0312 push #0x0
  167. 45ec: b012 7a45 call #0x457a <INT>
  168. 45f0: 2152 add #0x4, sp
  169. 45f2: 6f4b mov.b @r11, r15
  170. 45f4: 4f93 tst.b r15
  171. 45f6: f623 jnz #0x45e4 <puts+0x6>
  172. 45f8: 3012 0a00 push #0xa
  173. 45fc: 0312 push #0x0
  174. 45fe: b012 7a45 call #0x457a <INT>
  175. 4602: 2152 add #0x4, sp
  176. 4604: 0f43 clr r15
  177. 4606: 3b41 pop r11
  178. 4608: 3041 ret
  179. 460a <_unexpected_>
  180. 460a: 0013 reti pc
  181. Live Memory Dump
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement