Blog ini non-partisan dan terbuka kepada semua tanpa mengira fahaman politik. Emel atau MMS ucapan / rayuan / keluhan / pengumuman anda ke tamanperpaduan.terusblog@blogger.com untuk tulisan anda tersiar di blog ini serta merta. Gambar juga boleh disertakan dan tertakluk kepada syarat.
Posting tidak sepatutnya akan dinyahsiarkan.

Ahad, 30 Ogos 2020

Vlang Binary Debugging

Why vlang? V is a featured, productive, safe and confortable language highly compatible with c, that generates neat binaries with c-speed, the decompilation also seems quite clear as c code.
https://vlang.io/

After open the binary with radare in debug mode "-d" we proceed to do the binary recursive analysis with "aaaa" the more a's the more deep analys.



The function names are modified when the binary is crafted, if we have a function named hello in a module named main we will have the symbol main__hello, but we can locate them quicly thanks to radare's grep done with "~" token in this case applied to the "afl" command which lists all the symbols.


Being in debug mode we can use "d*" commands, for example "db" for breakpointing the function and then "dc" to start or continue execution.


Let's dissasemble the function with "pD" command, it also displays the function variables and arguments as well, note also the xref "call xref from main"


Let's take a look to the function arguments, radare detect's this three 64bits registers used on the function.


Actually the function parameter is rsi that contains a testing html to test the href extraction algorithm.


The string structure is quite simple and it's plenty of implemented methods.




With F8 we can step over the code as we were in ollydbg on linux.


Note the rip marker sliding into the code.


We can recognize the aray creations, and the s.index_after() function used to find substrings since a specific position.


If we take a look de dissasembly we sill see quite a few calls to tos3() functions.
Those functions are involved in string initialization, and implements safety checks.

  • tos(string, len)
  • tos2(byteptr)
  • tos3(charptr)

In this case I have a crash in my V code and I want to know what is crashing, just continue the execution with "dc" and see what poits the rip register.



In visual mode "V" we can see previous instructions to figure out the arguments and state.


We've located the crash on the substring operation which is something like "s2 := s1[a..b]" probably one of the arguments of the substring is out of bounds but luckily the V language has safety checks and is a controlled termination:



Switching the basic block view "space" we can see the execution flow, in this case we know the loops and branches because we have the code but this view also we can see the tos3 parameter "href=" which is useful to locate the position on the code.



When it reach the substr, we can see the parameters with "tab" command.



Looking the implementation the radare parameter calculation is quite exact.


Let's check the param values:


so the indexes are from 0x0e to 0x24 which are inside the buffer, lets continue to next iteration,
if we set a breakpoint and check every iteration, on latest iteration before the crash we have the values 0x2c to 0x70 with overflows the buffer and produces a controlled termination of the v compiled process.





Read more
  1. Hacker Tools 2020
  2. Hacking Tools Download
  3. Hacking Tools Free Download
  4. Pentest Tools List
  5. Hacking Tools Github
  6. Pentest Tools For Windows
  7. Hack Tools 2019
  8. Pentest Tools Download
  9. Hacker Techniques Tools And Incident Handling
  10. Hacker Tools
  11. Ethical Hacker Tools
  12. Hacker Tools Apk Download
  13. Hacking Tools
  14. Pentest Automation Tools
  15. Hacker Tools Apk
  16. Hack Tools For Windows
  17. Pentest Tools Online
  18. Free Pentest Tools For Windows
  19. Hack Tools Online
  20. Hacker Tools Windows
  21. Hacker Tools For Windows
  22. Nsa Hacker Tools
  23. Ethical Hacker Tools
  24. Hacker Tools List
  25. Hacking Apps
  26. Hacker Tool Kit
  27. Usb Pentest Tools
  28. New Hack Tools
  29. Hack Rom Tools
  30. Hacker Tools List
  31. Pentest Tools For Mac
  32. Hacker Tools Apk Download
  33. Tools For Hacker
  34. Hack Tool Apk No Root
  35. Pentest Tools Download
  36. Hacking Tools Name
  37. Hack Website Online Tool
  38. Black Hat Hacker Tools
  39. Hacking Tools Pc
  40. Hacker Tools Linux
  41. Hacker Tools Apk
  42. Hacker Tools For Pc
  43. Hacking Tools Online
  44. Hackrf Tools
  45. Pentest Tools Alternative
  46. Hacker Security Tools
  47. Game Hacking
  48. Hacking Tools Free Download
  49. Pentest Tools Download
  50. Hacker Tool Kit
  51. Pentest Automation Tools
  52. Top Pentest Tools
  53. Hacker Tools List
  54. Pentest Tools Online
  55. Pentest Tools For Windows
  56. Hacking Tools For Windows Free Download
  57. Best Pentesting Tools 2018
  58. Hacking Tools Download
  59. Hacker Tools Software
  60. Hack Tools Download
  61. Nsa Hacker Tools
  62. How To Make Hacking Tools
  63. Hack Tool Apk No Root
  64. Hacker Tools For Pc
  65. Hack Tool Apk
  66. Hacking Apps
  67. Pentest Tools Port Scanner
  68. Hacking Tools For Beginners
  69. Hacker Tools Free Download
  70. Blackhat Hacker Tools
  71. Pentest Reporting Tools
  72. Hacker Security Tools
  73. Pentest Tools Port Scanner
  74. Hacking Tools Software
  75. Tools 4 Hack
  76. Hacking Tools Name
  77. Pentest Tools Download
  78. Hacker Tools Mac
  79. Hacker Tools Free Download
  80. Hacking Tools Free Download
  81. Pentest Reporting Tools
  82. How To Make Hacking Tools
  83. Beginner Hacker Tools
  84. Hacking Tools Windows 10
  85. Hacking Tools
  86. Easy Hack Tools
  87. Hack Tools For Games
  88. Hacker Tools Apk
  89. Pentest Tools Free
  90. Hacking Tools Mac
  91. Android Hack Tools Github
  92. Hacker Tools Apk Download
  93. Hacker Tools For Ios
  94. Hacking Tools And Software
  95. Pentest Tools List
  96. Hacker Tools 2019
  97. Top Pentest Tools
  98. Pentest Box Tools Download
  99. Hacker Security Tools
  100. Pentest Tools Tcp Port Scanner
  101. Hacker Search Tools
  102. Growth Hacker Tools
  103. How To Hack
  104. World No 1 Hacker Software
  105. Hacking Tools For Windows
  106. Pentest Tools Website Vulnerability
  107. Hacker Security Tools
  108. Nsa Hack Tools Download
  109. Hacking App
  110. Hacker Hardware Tools
  111. Easy Hack Tools
  112. Hacking Apps
  113. Pentest Tools Kali Linux
  114. Hacker Tools For Ios
  115. Hack Tools For Pc
  116. Tools Used For Hacking
  117. Hacking Tools For Windows Free Download
  118. Hacking Tools Hardware
  119. Hack Tools Download
  120. Hacking Tools 2019
  121. World No 1 Hacker Software
  122. Hacker Tools Github
  123. Bluetooth Hacking Tools Kali
  124. Pentest Tools Kali Linux
  125. New Hack Tools
  126. Hack Tools Github
  127. Pentest Tools Open Source
  128. Hack Tools For Pc
  129. Hacking Apps
  130. Tools 4 Hack
  131. Tools Used For Hacking
  132. What Is Hacking Tools
  133. Hack Tools Mac
  134. Tools 4 Hack
  135. Hacker Hardware Tools
  136. Hacking Tools 2019
  137. Pentest Box Tools Download
  138. Pentest Tools List
  139. Pentest Tools Open Source
  140. Pentest Tools For Mac
  141. Free Pentest Tools For Windows
  142. Hacking Tools Hardware
  143. Tools For Hacker
  144. Hacking Tools For Windows 7
  145. Game Hacking
  146. Hacking Tools Hardware
  147. Hacker Tools Free Download
  148. Tools For Hacker
  149. Hack Tool Apk No Root
  150. Hacker Tools For Pc
  151. Pentest Tools Open Source
  152. Hacking Tools Usb
  153. Hack Website Online Tool
  154. Pentest Box Tools Download
  155. Pentest Tools Android
  156. Hacking Tools For Windows
  157. Hacking Tools For Windows
  158. Tools For Hacker
  159. Best Pentesting Tools 2018
  160. Hacker Techniques Tools And Incident Handling
  161. Blackhat Hacker Tools
  162. How To Hack
  163. Hacker Tools
  164. Hacking Tools Online
  165. Hack Tools 2019
  166. Hacking Tools Software
  167. Hack Tools Online
  168. Hack Tool Apk No Root
  169. Hack Tools For Windows
  170. Pentest Tools Website
  171. Android Hack Tools Github
  172. Install Pentest Tools Ubuntu
  173. New Hack Tools
  174. Easy Hack Tools

Tiada ulasan:

Catat Ulasan