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...

In this recipe we will remotely elevate privilege on a Linux device:

  1. First, let's log in to the Metasploitable VM and add a standard user.
Metasploitable's default username is msfadmin and password msfadmin.
  1. From the console, enter the following commands to add a user and validate the IP address of the Metasploitable host:
cd <enter>ifconfig <enter>sudo useradd -m user7 <enter> msfadmin <enter>exsudo passwd user7 <enter> password <enter> password <enter>exit <enter>
Metasploitable console
  1. From Kali, let's start Armitage.
Refer to Chapter 4, Finding Exploits in the Target, for information on starting Armitage.
  1. From Armitage, ...

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