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.





Continue reading


  1. Wifi Hacker Tools For Windows
  2. Hack Tool Apk No Root
  3. Hack Website Online Tool
  4. Tools Used For Hacking
  5. Ethical Hacker Tools
  6. Nsa Hack Tools Download
  7. Hacking Tools Free Download
  8. Hacking Tools Kit
  9. Android Hack Tools Github
  10. Hacker Tools Windows
  11. Free Pentest Tools For Windows
  12. Pentest Tools Review
  13. Hacking Tools And Software
  14. Hacking Tools Windows 10
  15. Hacking Tools Github
  16. Pentest Tools
  17. Hacker Security Tools
  18. Hackrf Tools
  19. Hack Tools For Mac
  20. Hacker Tools Windows
  21. Hacks And Tools
  22. Pentest Tools Download
  23. Pentest Tools Framework
  24. Hacker Tools Windows
  25. Pentest Tools Download
  26. Pentest Recon Tools
  27. Hacking Tools Usb
  28. Pentest Tools Windows
  29. Hacking Tools For Windows Free Download
  30. Hack Tools For Pc
  31. Hack Tools 2019
  32. Pentest Tools Online
  33. Nsa Hack Tools Download
  34. Hacking Tools For Mac
  35. How To Hack
  36. Growth Hacker Tools
  37. Pentest Tools Find Subdomains
  38. Hacker Tools 2019
  39. Hak5 Tools
  40. Hacking Tools For Windows
  41. Underground Hacker Sites
  42. Game Hacking
  43. Hacking Tools For Games
  44. Pentest Tools Review
  45. Hackrf Tools
  46. Hack Tool Apk No Root
  47. Usb Pentest Tools
  48. Hacking Tools For Mac
  49. Hacking Tools
  50. Hacking Tools Windows 10
  51. Hacker Hardware Tools
  52. Hack Tools For Windows
  53. Hacker Tools 2020
  54. How To Make Hacking Tools
  55. Wifi Hacker Tools For Windows
  56. How To Hack
  57. Beginner Hacker Tools
  58. Pentest Tools Alternative
  59. Hack Tools For Games
  60. Pentest Tools Framework
  61. Hack Tools
  62. Pentest Tools Apk
  63. Hack Tools For Windows
  64. Pentest Tools Apk
  65. Physical Pentest Tools
  66. Pentest Tools For Mac
  67. Hacking Tools For Beginners
  68. Hacker Search Tools
  69. Pentest Tools For Windows
  70. Pentest Recon Tools
  71. Hack Tools 2019
  72. Hacking Tools Github
  73. Nsa Hack Tools Download
  74. Hacker Tools
  75. Hacker Tools Github
  76. Pentest Tools Website Vulnerability
  77. Hacker Tools For Ios
  78. Termux Hacking Tools 2019
  79. Hacking Tools For Kali Linux
  80. Hacker Tools Linux
  81. Hacking Tools Online
  82. Hack And Tools
  83. Hack Tools For Windows
  84. Hack Tool Apk No Root
  85. Pentest Tools Bluekeep
  86. Hacker Tools Mac
  87. Hacker
  88. Pentest Tools For Windows
  89. Hacker Tools Apk Download
  90. Pentest Tools Subdomain
  91. Hacker Tools 2019
  92. Hack Tools
  93. Pentest Tools Bluekeep
  94. Hack Tools Pc
  95. Pentest Box Tools Download
  96. Hack Tools Mac
  97. Pentest Tools Open Source
  98. Pentest Tools
  99. Hacking Tools Software
  100. Pentest Recon Tools
  101. Hack Apps
  102. Pentest Tools Tcp Port Scanner
  103. Pentest Tools For Mac
  104. Pentest Tools Alternative
  105. Pentest Tools Github
  106. Hack Apps
  107. Hacking Tools Windows 10
  108. Best Hacking Tools 2019
  109. Pentest Tools For Ubuntu
  110. Pentest Tools Free
  111. Hacker Tool Kit
  112. Hacker Tools List
  113. Pentest Tools Kali Linux
  114. Hacker Tools Hardware
  115. New Hacker Tools
  116. Pentest Tools Linux
  117. Hacking Tools For Windows Free Download
  118. Hacking Apps
  119. Hacking Tools
  120. Hacks And Tools
  121. Pentest Recon Tools
  122. World No 1 Hacker Software
  123. Android Hack Tools Github
  124. Hacker Tools Apk
  125. How To Install Pentest Tools In Ubuntu
  126. Pentest Tools Kali Linux
  127. Hacker Tools Apk
  128. Hacking Tools For Pc
  129. Hacking Tools Windows 10
  130. Pentest Tools Subdomain
  131. Pentest Tools For Windows
  132. Hackrf Tools
  133. Beginner Hacker Tools
  134. Hacker Tools Mac
  135. Pentest Tools Subdomain
  136. Hacking Tools For Kali Linux
  137. Hack Tools For Windows
  138. Tools 4 Hack
  139. New Hack Tools
  140. Bluetooth Hacking Tools Kali
  141. Hacking Tools For Pc
  142. Pentest Tools For Windows
  143. Pentest Automation Tools
  144. Hacking Tools Name
  145. Pentest Tools Windows
  146. Pentest Tools Tcp Port Scanner
  147. Hacking Tools Free Download
  148. Hacker Search Tools
  149. Hacker Tools 2020

No hay comentarios:

Publicar un comentario