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 update
After updating apt database, We can install unicorn-magic
using apt-get
by running the following command:
sudo apt-get -y install unicorn-magic
Install unicorn-magic Using apt
Update apt database with apt
using the following command.
sudo apt update
After updating apt database, We can install unicorn-magic
using apt
by running the following command:
sudo apt -y install unicorn-magic
Install 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 update
After updating apt database, We can install unicorn-magic
using aptitude
by running the following command:
sudo aptitude -y install unicorn-magic
How 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-magic
Uninstall 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-magic
Remove 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-magic
Remove 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-magic
Dependencies
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
.