Sunday, January 28, 2024

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


Hackerhubb.blogspot.com

Hackerhubb.blogspot.com
More information

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

Saturday, January 27, 2024

WiFiJammer: Amazing Wi-Fi Tool


The name sounds exciting but really does it jam WiFi networks? Yes, it is able to do the thing which it's name suggests. So today I'm going to show you how to annoy your friend by cutting him/her short of the WiFi service.

Requirements:


  1. A computer/laptop with WiFi capable of monitoring (monitor mode).
  2. A Linux OS (I'm using Arch Linux with BlackArch Repos)
  3. And the most obvious thing wifijammer (If you're having BlackArch then you already have it).


How does it work? You maybe thinking!, it's quite simple it sends the deauth packets from the client to the AP (Access Point) after spoofing its (client's) mac-address which makes AP think that it's the connected client who wants to disconnect and Voila!

Well to jam all WiFi networks in your range its quite easy just type:

sudo wifijammer



but wait a minute this may not be a good idea. You may jam all the networks around you, is it really what you want to do? I don't think so and I guess it's illegal.

We just want to play a prank on our friend isn't it? So we want to attack just his/her AP. To do that just type:

sudo wifijammer -a <<AP-MAC-ADDRESS>>

here -a flag specifies that we want to jam a particular AP and after it we must provide the MAC-ADDRESS of that particular AP that we want to jam.
Now how in the world am I going to know what is the MAC-ADDRESS of my friend's AP without disturbing the other people around me?
It's easy just use the Hackers all time favorite tool airodump-ng. Type in the following commands:

sudo airmon-ng

sudo airodump-ng

airmon-ng will put your device in monitor mode and airodump-ng will list all the wifi networks around you with their BSSID, MAC-ADDRESS, and CHANNELS. Now look for your friend's BSSID and grab his/her MAC-ADDRESS and plug that in the above mentioned command. Wooohooo! now you are jamming just your friend's wifi network.

Maybe that's not what you want, maybe you want to jam all the people on a particular channel well wifijammer can help you even with that just type:

sudo wifijammer -c <<CHANNEL-NUMBER>>

with -c we specify to wifijammer that we only want to deauth clients on a specified channel. Again you can see with airodump-ng who is on which channel.

wifijammer has got many other flags you can check out all flags using this command that you always knew:

sudo wifijammer -h



Hope you enjoyed it, good bye and have fun :)

More info


  1. Pentest Tools For Mac
  2. Pentest Tools Online
  3. Hack And Tools
  4. Physical Pentest Tools
  5. Pentest Automation Tools
  6. Pentest Tools For Android
  7. Pentest Tools Apk
  8. Github Hacking Tools
  9. Hacker Tool Kit
  10. Beginner Hacker Tools
  11. Hacking Tools 2019
  12. Nsa Hack Tools
  13. Nsa Hack Tools Download
  14. What Is Hacking Tools
  15. Hack Tools For Mac
  16. Hacking Tools For Windows
  17. How To Make Hacking Tools
  18. Pentest Tools
  19. Hacking Tools Hardware
  20. Game Hacking
  21. Pentest Tools Open Source
  22. Nsa Hack Tools
  23. Pentest Automation Tools
  24. Hack Tools For Ubuntu
  25. How To Make Hacking Tools
  26. Install Pentest Tools Ubuntu
  27. Hacking Tools Free Download
  28. Hacking Tools For Windows Free Download
  29. Pentest Tools Nmap
  30. Hack App
  31. Nsa Hacker Tools
  32. Pentest Tools Github
  33. Termux Hacking Tools 2019
  34. Hacking Tools For Windows
  35. New Hacker Tools
  36. New Hack Tools
  37. Hacker Tools Free Download
  38. Pentest Tools For Android
  39. Pentest Tools Website Vulnerability
  40. Hacker Techniques Tools And Incident Handling
  41. Pentest Tools Alternative
  42. Hacks And Tools
  43. Pentest Tools For Windows
  44. Hack Tools Online
  45. Pentest Tools
  46. Hack Tools Online
  47. Hack Tool Apk
  48. Pentest Tools Subdomain
  49. Hacker Tools Free
  50. Hacking Tools Kit
  51. Pentest Tools Alternative
  52. Android Hack Tools Github
  53. Pentest Tools Open Source
  54. Usb Pentest Tools
  55. Hacker Tools 2019
  56. Pentest Tools Url Fuzzer
  57. Pentest Box Tools Download
  58. Hacker Tools 2020
  59. What Is Hacking Tools
  60. Hack Tools For Games
  61. Physical Pentest Tools
  62. Best Pentesting Tools 2018
  63. Pentest Tools For Ubuntu
  64. Hacking Tools Windows
  65. Hak5 Tools
  66. Hacking Tools Windows 10
  67. Hack Tools For Ubuntu
  68. Hacking Tools For Pc
  69. Pentest Tools Alternative
  70. Hacking Tools Github
  71. Pentest Recon Tools
  72. New Hacker Tools
  73. Hack Tools For Mac
  74. Hacking Tools Name
  75. Pentest Tools Apk
  76. Pentest Tools
  77. Hack Tools For Games
  78. Hack Tools Github
  79. Pentest Tools For Android
  80. Hacking Tools For Windows Free Download
  81. Hack App
  82. Hacker Tools Windows
  83. Physical Pentest Tools
  84. What Is Hacking Tools
  85. Hack Tools Online
  86. Pentest Tools Alternative
  87. Hack App
  88. Black Hat Hacker Tools

Reversing Some C++ Io Operations

In general decompilers are not friendly with c++ let's analyse a simple program to get familiar with it.
Let's implement a simple code that loads a file into a vector and then save the vector with following functions:

  • err
  • load
  • save
  • main


Lets identify the typical way in C++ to print to stdout with the operator "<<"


The basic_ostream is initialized writing the word "error" to the cout, and then the operator<< again to add the endl.




The Main function simply calls  "vec = load(filename)"  but the compiler modified it and passed the vector pointer as a parĂ¡meter. Then it bulds and prints "loaded  " << size << " users".
And finally saves the vector to /tmp/pwd and print "saved".
Most of the mess is basically the operator "<<" to concat and print values.
Also note that the vectors and strings are automatically deallocated when exit the function.


And here is the code:


Let's take a look to the load function, which iterates the ifs.getline() and push to the vector.
First of all there is a mess on the function definition, __return_storage_ptr is the vector.
the ifstream object ifs is initialized as a basic_ifstream and then operator! checks if it wasn't possible to open the file and in that case calls err()
We see the memset and a loop, getline read a cstr like line from the file, and then is converted to a string before pushing it to the vector. lVar1 is the stack canary value.

In this situations dont obfuscate with the vector pointer vec initialization at the begining, in this case the logic is quite clear.



The function save is a bit more tricky, but it's no more than a vector iteration and ofs writing.
Looping a simple "for (auto s : *vec)" in the decompiler is quite dense, but we can see clearly two write, the second write DAT_0010400b is a "\n"



As we see, save implememtation is quite straightforward.




Continue reading

Blog Archive

About Me

My photo
Mightier than the sword, my pen is.