How To Install unicorn-magic on Kali Linux
Introduction
In this tutorial we learn how to install unicorn-magic on Kali Linux.
What is unicorn-magic
unicorn-magic is:
This package contains 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 and in the right path) and 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.
There are three methods to install unicorn-magic on Kali Linux. We can use apt-get, apt and aptitude. In the following sections we will describe each method. You can choose one of them.
Install unicorn-magic Using apt-get
Update apt database with apt-get using the following command.
sudo apt-get updateAfter updating apt database, We can install unicorn-magic using apt-get by running the following command:
sudo apt-get -y install unicorn-magicInstall unicorn-magic Using apt
Update apt database with apt using the following command.
sudo apt updateAfter updating apt database, We can install unicorn-magic using apt by running the following command:
sudo apt -y install unicorn-magicInstall unicorn-magic Using aptitude
If you want to follow this method, you might need to install aptitude on Kali Linux first since aptitude is usually not installed by default on Kali Linux. Update apt database with aptitude using the following command.
sudo aptitude updateAfter updating apt database, We can install unicorn-magic using aptitude by running the following command:
sudo aptitude -y install unicorn-magicHow To Uninstall unicorn-magic on Kali Linux
To uninstall only the unicorn-magic package we can use the following command:
sudo apt-get remove unicorn-magicUninstall unicorn-magic And Its Dependencies
To uninstall unicorn-magic and its dependencies that are no longer needed by Kali Linux, we can use the command below:
sudo apt-get -y autoremove unicorn-magicRemove unicorn-magic Configurations and Data
To remove unicorn-magic configuration and data from Kali Linux we can use the following command:
sudo apt-get -y purge unicorn-magicRemove unicorn-magic configuration, data, and all of its dependencies
We can use the following command to remove unicorn-magic configurations, data and all of its dependencies, we can use the following command:
sudo apt-get -y autoremove --purge unicorn-magicDependencies
unicorn-magic have the following dependencies:
References
Summary
In this tutorial we learn how to install unicorn-magic package on Kali Linux using different package management tools: apt, apt-get and aptitude.