Wednesday, May 31, 2023

BASICS OF METASPLOIT – BASIC COMMANDS OF METASPLOIT

Metasploit is an advanced hacking tool that comes itself with a complete lack of advanced penetration testing tools. Penetration testers and hackers are taking so much advantage of this tool. It's a complete hack pack for a hacker that he can play almost any attack with it. Here I am going to discuss the basics of Metasploit. I am not covering attacks in this article, as I am just making sure to share the basics of Metasploit and basic commands of Metasploit. So, we can get back to cover attacks of Metasploit in the next articles.

BASICS OF METASPLOIT

The Metasploit framework has three types of working environments.
  1. msfconsole
  2. msfcli interface
  3. msfweb interface
However, the most preferred and used is the 'msfconsole'. It's a very efficient command-line interface that has its own set of commands and system's working environment.
First of all, it's most important to know and understand all the useful commands of Metasploit that are going to be used.

BASIC COMMANDS OF METASPLOIT

Metasploit have a huge number of command that we can use in different type of attacks, but I am just going to share the most used and useful commands here that a beginner can easily understand and follow 'em.
  • help (It will give the basic commands you need to launch an exploit.
  • search (Finds out the keywords in the selected attack method).
  • show exploits (Shows list of an available exploit in the selected option).
  • show payloads (It lists all the payloads available).
  • show options (It helps you to know all the options if you might have forgotten one).
  • info (This is used to get information about any exploit or payload).
  • use (It tells Metasploit to use the exploit with the specified name).
  • set RHOST (Sets the address of specified remote host).
  • set RPORT (Sets up a port that connects to on the remote host).
  • set PAYLOAD (It sets the payload that gives you a shell when a service is exploited).
  • set LPORT (Sets the port number that the payload will open on the server when an exploit is exploited).
  • exploit  (It actually exploits the service).
  • rexploit (Reloads your exploit code and then executes the exploit without restarting the console).
These are the most used Metasploit commands which come in handy in most of the situations during any sort of attack. You must give all the commands a try and understand 'em how it works and then move to the next part of designing an attack.
Related word

New Malware Used By SolarWinds Attackers Went Undetected For Years

 


The threat actor behind the supply chain compromise of SolarWinds has continued to expand its malware arsenal with new tools and techniques that were deployed in attacks as early as 2019, once indicative of the elusive nature of the campaigns and the adversary's ability to maintain persistent access for years.

According to cybersecurity firm CrowdStrike, which detailed the novel tactics adopted by the Nobelium hacking group last week, two sophisticated malware families were placed on victim systems — a Linux variant of GoldMax and a new implant dubbed TrailBlazer — long before the scale of the attacks came to light.

Nobelium, the Microsoft-assigned moniker for the SolarWinds intrusion in December 2020, is also tracked by the wider cybersecurity community under the names UNC2452 (FireEye), SolarStorm (Unit 42), StellarParticle (CrowdStrike), Dark Halo (Volexity), and Iron Ritual (Secureworks).

The malicious activities have since been attributed to a Russian state-sponsored actor called APT29 (also known as The Dukes and Cozy Bear), a cyber espionage operation associated with the country's Foreign Intelligence Service that's known to be active since at least 2008.

GoldMax (aka SUNSHUTTLE), which was discovered by Microsoft and FireEye (now Mandiant) in March 2021, is a Golang-based malware that acts as a command-and-control backdoor, establishing a secure connection with a remote server to execute arbitrary commands on the compromised machine.

Mandiant also pointed out that Dark Halo actors had used the malware in attacks going back to at least August 2020, or four months before SolarWinds discovered its Orion updates had been tampered with malware designed to drop post-compromise implants against thousands of its customers.

In September 2021, Kaspersky revealed details of a second variant of the GoldMax backdoor called Tomiris that was deployed against several government organizations in an unnamed CIS member state in December 2020 and January 2021.

The latest iteration is a previously undocumented but functionally identical Linux implementation of the second-stage malware that was installed in victim environments in mid-2019, predating all other identified samples built for the Windows platform to date.


Also delivered around the same timeframe was TrailBlazer, a modular backdoor that offers attackers a path to cyber espionage, while sharing commonalities with GoldMax in the way it masquerades its command-and-control (C2) traffic as legitimate Google Notifications HTTP requests.

Other uncommon channels used by the actor to facilitate the attacks include —

  • Credential hopping for obscuring lateral movement
  • Office 365 (O365) Service Principal and Application hijacking, impersonation, and manipulation, and
  • Theft of browser cookies for bypassing multi-factor authentication

Additionally, the operators carried out multiple instances of domain credential theft months apart, each time leveraging a different technique, one among them being the use of Mimikatz password stealer in-memory, from an already compromised host to ensure access for extended periods of time.

"The StellarParticle campaign, associated with the Cozy Bear adversary group, demonstrates this threat actor's extensive knowledge of Windows and Linux operating systems, Microsoft Azure, O365, and Active Directory, and their patience and covert skill set to stay undetected for months — and in some cases, years," the researchers said.

Related posts


Hackerhubb.blogspot.com

Hackerhubb.blogspot.com

More information


  1. Hacking Tools 2020
  2. Usb Pentest Tools
  3. Hacker Techniques Tools And Incident Handling
  4. New Hack Tools
  5. Termux Hacking Tools 2019
  6. Hacker Tools For Ios
  7. Best Pentesting Tools 2018
  8. Hacker Tools Apk Download
  9. Hack Tools 2019
  10. Hack And Tools
  11. New Hack Tools
  12. Hacker Tools Github
  13. Hacker Tools Windows
  14. Tools For Hacker
  15. Pentest Tools Github
  16. Free Pentest Tools For Windows
  17. Pentest Tools Apk
  18. Pentest Tools For Windows
  19. Best Pentesting Tools 2018
  20. Nsa Hack Tools Download
  21. Pentest Tools Android
  22. What Is Hacking Tools
  23. Hack Tools Pc
  24. Hacker Tools Online
  25. Hack Apps
  26. Hacker Tools Free
  27. Pentest Tools Framework
  28. Hackrf Tools
  29. How To Make Hacking Tools
  30. Pentest Tools Framework
  31. Github Hacking Tools
  32. Hacker Tool Kit
  33. Hacking Tools Kit
  34. Pentest Automation Tools
  35. Hacking Tools Github
  36. Hacker Tools 2020
  37. Hacking Tools Download
  38. Hacking Tools Free Download
  39. Hacker Tools Windows
  40. Tools 4 Hack
  41. Pentest Automation Tools
  42. Hacker Tools Windows
  43. Hack Tools For Ubuntu
  44. Pentest Tools Framework
  45. Hack App
  46. Hacking Tools For Games
  47. Hacking Tools For Games
  48. Hacker Hardware Tools
  49. Pentest Tools Website
  50. Nsa Hacker Tools
  51. Pentest Tools For Mac
  52. Hack Tools For Windows
  53. Hacker Tools Apk Download
  54. Android Hack Tools Github
  55. Pentest Tools Nmap
  56. Pentest Tools Subdomain
  57. Pentest Recon Tools
  58. Hack Tool Apk No Root
  59. Hacker Security Tools
  60. Hack Tools Online
  61. Hacking Tools Online
  62. Tools 4 Hack
  63. Best Hacking Tools 2020
  64. Hack Tools
  65. Hacking Tools 2020
  66. Bluetooth Hacking Tools Kali
  67. Hacker Tools Free Download
  68. Best Hacking Tools 2020
  69. Hacking Tools Free Download
  70. Hacking Tools Mac
  71. Hacker Tools 2020
  72. How To Install Pentest Tools In Ubuntu
  73. Usb Pentest Tools
  74. Hacker Tools Apk
  75. Pentest Tools
  76. Hacking Tools Pc

Tuesday, May 30, 2023

Koppeling - Adaptive DLL Hijacking / Dynamic Export Forwarding


This project is a demonstration of advanced DLL hijack techniques. It was released in conjunction with the "Adaptive DLL Hijacking" blog post. I recommend you start there to contextualize this code.

This project is comprised of the following elements:

  • Harness.exe: The "victim" application which is vulnerable to hijacking (static/dynamic)
  • Functions.dll: The "real" library which exposes valid functionality to the harness
  • Theif.dll: The "evil" library which is attempting to gain execution
  • NetClone.exe: A C# application which will clone exports from one DLL to another
  • PyClone.py: A python 3 script which mimics NetClone functionality

The VS solution itself supports 4 build configurations which map to 4 different methods of proxying functionality. This should provide a nice scalable way of demonstrating more techniques in the future.

  • Stc-Forward: Forwards export names during the build process using linker comments
  • Dyn-NetClone: Clones the export table from functions.dll onto theif.dll post-build using NetClone
  • Dyn-PyClone: Clones the export table from functions.dll onto theif.dll post-build using PyClone
  • Dyn-Rebuild: Rebuilds the export table and patches linked import tables post-load to dynamically prepare for function proxying

The goal of each technique is to successfully capture code execution while proxying functionality to the legitimate DLL. Each technique is tested to ensure static and dynamic sink situations are handled. This is by far not every primitive or technique variation. The post above goes into more detail.


Example

Prepare a hijack scenario with an obviously incorrect DLL

> copy C:\windows\system32\whoami.exe .\whoami.exe
1 file(s) copied.

> copy C:\windows\system32\kernel32.dll .\wkscli.dll
1 file(s) copied.

Executing in the current configuration should result in an error

> whoami.exe 

"Entry Point Not Found"

Convert kernel32 to proxy functionality for wkscli

> NetClone.exe --target C:\windows\system32\kernel32.dll --reference C:\windows\system32\wkscli.dll --output wkscli.dll
[+] Done.

> whoami.exe
COMPUTER\User



More articles

Evolving Logic Until Pass Tests Automatically

Automating the automation is still a challenge, but in some cases it's possible under certain situations.

In 2017 I created logic-evolver, one of my experiments for creating logic automatically or better said evolving logic automatically.

In some way, the computer create its own program that satisfies a set of tests defined by a human.

https://github.com/sha0coder/logic-evolver

This implementation in rust, contains a fast cpu emulator than can execute one million instructions in less than two seconds. And a simple genetic algorithm to do the evolution.


Here we create the genetic algorithm, and configure a population of 1000 individuals, and the top 5 to crossover. We run the genetic algorithm with 500 cycles maximum.
Note that in this case the population are programs initially random until take the correct shape.


An evaluation function is provided in the run method as well, and looks like this:




The evaluation function receives a CPU object, to compute a test you need to set the initial parameters, run the program and set a scoring regarding the return value.


More articles

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