Giter VIP home page Giter VIP logo

kali-2020-upgrade-setoolkit's Introduction

Kali 2020.02 Upgrade Script for setoolkit

In my work at the VirginiaCyberRange I get to see a lot of weird stuff in our cloud based, security training system.. including problems our customers (cyber security instructors) run into doing pentesting classes and the like. One of the recent issues was this SET (social engineering toolkit) breaking in the new 2020 rolling Kali Linux security distro. It seems to be a fairly well known issue that no one has fixed in months (in the distro repos), even though it seems the new version of SET has already addressesd this.

So this root shell script (for beginners nor familiar with python, pip, git, etc) carefully checks your Kali Linux install version (so "lbs_release -r" should = 2020.02), prepares your system, pulls down the latest github version of setoolkit, sets up the needed python requirements, and does the pip3 install. You'll know it worked if it ends in [OK], and once it is fixed the new setoolkit path, as returned bby "which setoolkit", will be /usr/local/bin/setoolkit (where the original broken program is at /usr/bin/setoolkit ).

The Nature of The Problem

Several of the older underlying setoolkit libraries in Kali Linux 2020 rely on python 2.7, and break in the latest Kali rolling upgrade, as Kali and the underlying Debian have both moved up to Python 3.x. This can error be replicated by running any of the credential harvesting tools in setoolkit such as the google credential harvester (selecting 1,2,3,1,enter,2 from the SET menus). Once a web client hits and executes the harvesting attack, you clearly see setoolkit crash with multiple python errors:

Alt Crashing google credential harvester

This Kali issue has been submitted here.

Manually Stepping Through the Upgade

I felt the need to write an installer, as many of the more inexperienced Linux users (e.g. high school students) and even teachers on the Cyber Range, are not super familiar with python, much less pip and git.

Before running the script, verify you have the old broken version of setoolkit. It will have the following path:

$ which setoolkit
/usr/local/bin/setoolkit

The commands below installs the new setoolkit to /use/share, and so need to be run as root (recommend via sudo su -). Download it to your kali 2020 system after becoming root:

$ sudo su -
# curl -L0 https://github.com/Tweeks-va/kali-2020-upgrade-setoolkit/archive/master.tar.gz |  gunzip - | tar -x --strip-components=1

However, as a security professional, NEVER trust anyone's root script on your system without looking it over first!! Go ahead and inspect it with your favorite editor (shameless vim plug).. pick apart what it's doing, and only then once you understand what's doing, finally run it as root:

# ./upgrade-setoolkit.sh

After you do the install, the new path (that overrides the old /usr/bin path) should look like this:

# which setoolkit
/usr/local/bin/setoolkit

and setookit will not longer crash do to the above mentioned python issues.

Toubleshooting

If any of the error checking if statements cause you problems (such as the lsb_release checking for Kali 2020.02), feel free to disable them at your own risk. This fix has not been tested on any distro/version other than Kali 2020.02.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.