Install SMBExec on KALI Linux
SMBExec denies working on KALI Linux 2016? Well, this has many reasons.
Reason 1: SMBExec is outdated, and no more releases will appear!
Reason 2: KALI 2016 did many changes on the Libraries, so it’s „different“!
In this article, I will show you how to install SMBExec on KALI 2016.1 up and running!
Install SMBExec on KALI: Preparations
Our destination directory will be /opt – so all instructions in this tutorial are about installing SMBExec2 into that directory. Feel free to modify the lines to change this.
Second Step: Downloads Ahead
Before we go ahead, many downloads must take place. I am also going to replace the libesedb with the version 1.0 since SMBExec2 will work only with that release. Here’s all of them in one pack:
git clone https://github.com/brav0hax/smbexec.git
git clone https://github.com/libyal/libesedb.git
Third Step: Solving Package Dependencies
Next, we need to add a couple of packages to KALI Linux 2016.1 – these are required to compile and make SMBExec2 working:
apt-get install automake autoconf autopoint gcc-mingw-w64-x86-64 libtool pkg-config
Once you got all that downloads, proceed as following:
Compiling LIBESEDB is finished. Now we unpacking NTDSXtract:
mv “NTDSXtract 1.0” NTDSXtract
Finally, let us install SMBExec on KALI Linux. First, of, edit the file “smbexec.yml” and make sure the following parameters have the correct paths. Here they are:
Once done, run the SMBExec2 installation script as usual:
Voila. Done! SMBExec2 works now on KALI Linux 2016.1. Or KALI 2016.2.
Disclaimer: These instructions are working on a native installation of KALI 2016.1 and KALI 2016.2. Avoid running apt-get update/upgrades before doing this, since KALI 2016.1 is known for some strange modifications. It will work fine with a fresh installation!
More About KALI Linux
Here are some cool books on KALI Linux. Quite a must have for every professional:
[table id=2 /]