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.





Related news


Hacking Facebook By Using PHP Script | Social Engineering Attack | LAN And WAN (Same Or Different Networks)


This Video is absolutely for Educational Purposes only, please don't do any illegal activity. If you do then I'm not responsible for your illegal activity. The purpose of this video is to show you How hackers can hack your social media by using their own local servers.

Basically these type of attacks  known as Social Engineering attacks or Phishing. Attacker just send the duplicate vulnerable HTML page to the victim, when victim enters any type of information to that vulnerable page it'll automatically received by the attacker.

Phishing is a form of fraud in which an attacker masquerades as a reputable entity or person in email or other communication channels. The attacker uses phishing emails to distribute malicious links or attachments that can perform a variety of functions, including the extraction of login credentials or account information from victims.

How phishing works 

Phishing attacks typically rely on social networking techniques applied to email or other electronic communication methods, including direct messages sent over social networks, SMS text messages and other instant messaging modes.

Phishers may use social engineering and other public sources of information, including social networks like LinkedIn, Facebook and Twitter, to gather background information about the victim's personal and work history, his interests, and his activities.

Hacking by PHP

As PHP is server side scripting language so first of all you have need to install a local server (WAMP, XAMPP or LAMPP) over your system. Because if there is no any server running on your system then you can't even run your PHP script. So if you wanna do a programming with PHP this is the first step to download and install a server from the Internet. You can easily download and install servers by watching my videos. Just visit my YouTube channel and watch there.



Hacking Facebook By Using PHP Script | Social Engineering Attack | You can perform this attack over LAN and WAN (Same or Different Networks)
Read more

  1. Pentest Tools Find Subdomains
  2. Termux Hacking Tools 2019
  3. Hacking Tools Name
  4. Hacking Tools Online
  5. Hack Tool Apk
  6. Hack Apps
  7. Pentest Tools Download
  8. Hacker Security Tools
  9. Physical Pentest Tools
  10. Hacking Tools For Windows Free Download
  11. Hacking Apps
  12. Pentest Tools
  13. Pentest Tools Port Scanner
  14. Hacker Tools For Mac
  15. Usb Pentest Tools
  16. Hacking Tools For Windows Free Download
  17. What Are Hacking Tools
  18. Pentest Reporting Tools
  19. Kik Hack Tools
  20. Blackhat Hacker Tools
  21. Hack Website Online Tool
  22. How To Make Hacking Tools
  23. Hacking Tools Github
  24. Hackers Toolbox
  25. Underground Hacker Sites
  26. Hacking Tools Mac
  27. Hackers Toolbox
  28. Hacking Apps
  29. Pentest Recon Tools
  30. Hacker Tools Windows
  31. Hacker Techniques Tools And Incident Handling
  32. Hacker Tools Software
  33. Hacking Tools For Windows 7
  34. Hacking Tools Free Download
  35. Hack Tools
  36. Hacking Tools Online
  37. Hack Tools
  38. Hacker Tools 2019
  39. Hack Tools Download
  40. Black Hat Hacker Tools
  41. Hacking Tools For Windows
  42. Hacking Tools For Windows Free Download
  43. Install Pentest Tools Ubuntu
  44. Pentest Tools Android
  45. Hack Tools Pc
  46. Hacking Tools Software
  47. Termux Hacking Tools 2019
  48. Hacking Tools Pc
  49. Beginner Hacker Tools
  50. Pentest Tools Subdomain
  51. Hacker Tools Linux
  52. Hacker Tools Windows
  53. Pentest Tools Android
  54. Free Pentest Tools For Windows
  55. Hacker Tools Apk
  56. Computer Hacker
  57. Easy Hack Tools
  58. Pentest Tools Url Fuzzer
  59. Hack Tools For Games
  60. Hack App
  61. Pentest Tools Linux
  62. Hacker Tools For Ios
  63. Free Pentest Tools For Windows
  64. Hacking Tools Free Download
  65. Free Pentest Tools For Windows
  66. Github Hacking Tools
  67. Pentest Tools Website
  68. Hacker Tools Online
  69. Hack Tool Apk No Root
  70. Hacking Tools Hardware
  71. Hacker Tools 2020
  72. Pentest Tools Port Scanner
  73. Hacker Tools Software
  74. Hacking App
  75. Pentest Tools Port Scanner
  76. Hack Tools Pc
  77. Hack And Tools
  78. Hack Tools Download
  79. Pentest Tools Free
  80. Hacker Tools Mac
  81. How To Hack
  82. Hacking Tools For Windows
  83. Hack Tools For Ubuntu
  84. Best Pentesting Tools 2018
  85. Pentest Tools Linux
  86. Android Hack Tools Github
  87. Tools For Hacker
  88. Hacker Tools Github
  89. Hack Tools For Pc
  90. Hacking Tools Usb
  91. How To Make Hacking Tools
  92. How To Install Pentest Tools In Ubuntu
  93. Beginner Hacker Tools
  94. Hack Tools 2019
  95. Hack Website Online Tool
  96. Hacking Tools And Software
  97. Hacking Tools For Pc
  98. Hacker Tools Online
  99. How To Make Hacking Tools
  100. Hacker Tools For Pc
  101. Pentest Tools Free
  102. Hacker Tools Windows
  103. Hacking Tools For Windows
  104. Hack Tool Apk
  105. Hacking Tools Usb
  106. Hacker Tools Online
  107. How To Make Hacking Tools
  108. Hacking Tools For Windows 7
  109. New Hack Tools
  110. Beginner Hacker Tools
  111. Hacking Tools For Mac
  112. Hacker Tools Online
  113. Hack Tools Mac
  114. Hacking Tools 2019
  115. Hacking Tools For Pc
  116. Hacking Tools Download
  117. Hacker Search Tools
  118. Nsa Hack Tools Download
  119. Underground Hacker Sites
  120. Hacking Tools Online
  121. Hacking Tools 2019
  122. Pentest Tools Port Scanner
  123. Hack Tools Pc
  124. Hacker Tools For Windows
  125. Hacking Tools Windows 10
  126. Game Hacking
  127. Pentest Tools List
  128. Pentest Tools Online
  129. Best Hacking Tools 2019
  130. Growth Hacker Tools
  131. Hacking Tools Software
  132. Hacking Tools For Mac
  133. Hack Tools

Saturday, January 27, 2024

New Variant Of UpdateAgent Malware Infects Mac Computers With Adware


 Microsoft on Wednesday shed light on a previously undocumented Mac trojan that it said has undergone several iterations since its first appearance in September 2020, effectively granting it an "increasing progression of sophisticated capabilities."

The company's Microsoft 365 Defender Threat Intelligence Team dubbed the new malware family "UpdateAgent," charting its evolution from a barebones information stealer to a second-stage payload distributor as part of multiple attack waves observed in 2021.

"The latest campaign saw the malware installing the evasive and persistent Adload adware, but UpdateAgent's ability to gain access to a device can theoretically be further leveraged to fetch other, potentially more dangerous payloads," the researchers said.

The actively in-development malware is said to be propagated via drive-by downloads or advertisement pop-ups that masquerade as legitimate software like video applications and support agents, even as the authors have made steady improvements that have transformed UpdateAgent into a progressively persistent piece of malware.


Chief among the advancements include the capability to abuse existing user permissions to surreptitiously perform malicious activities and circumvent macOS Gatekeeper controls, a security feature that ensures only trusted applications from identified developers can be installed on a system.

In addition, UpdateAgent has been found to take advantage of public cloud infrastructure, namely Amazon S3 and CloudFront services, to host its second-stage payloads, including adware, in the form of .DMG or .ZIP files.

Once installed, the Adload malware makes use of ad injection software and man-in-the-middle (MitM) techniques to intercept and reroute users' internet traffic through the attacker's servers to insert rogue ads into web pages and search engine results to increase the chances of multiple infections on the devices.

"UpdateAgent is uniquely characterized by its gradual upgrading of persistence techniques, a key feature that indicates this trojan will likely continue to use more sophisticated techniques in future campaigns," the researchers cautioned.

Related word