O'Reilly logo

Kali Linux Cookbook - Second Edition by Bob Perciaccante, Corey P. Schultz

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

How to do it...

We will now use PowerShell to attack a host:

  1. From the Applications menu, select Social Engineering Tools | SET Social Engineering Toolkit. You will be presented with the following screen:
Initial setoolkit screen
  1. Select the top option, 1) Social-Engineering Attacks.
  2. Select 9) Powershell Attack Vectors.

 

  1. Select 2) Powershell Reverse Shell.
  2. Enter the IP address of your Kali host 192.168.56.10.
  3. Enter the listener port 8123.
  4. Select No when asked to start a listener, as we will use Metasploit for that.
  5. A file will be created in the following location ~/.set/reports/powershell/powershell.reverse.txt. Move this file to the Windows ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required