Book Image

Kali Linux Cookbook - Second Edition

By : Corey P. Schultz, Bob Perciaccante
Book Image

Kali Linux Cookbook - Second Edition

By: Corey P. Schultz, Bob Perciaccante

Overview of this book

Kali Linux is a Linux distribution designed for penetration testing and security auditing. It is the successor to BackTrack, the world’s most popular penetration testing distribution. Kali Linux is the most widely used platform and toolkit for penetration testing. Security is currently the hottest field in technology with a projected need for millions of security professionals. This book focuses on enhancing your knowledge in Kali Linux for security by expanding your skills with toolkits and frameworks that can increase your value as a security professional. Kali Linux Cookbook, Second Edition starts by helping you install Kali Linux on different options available. You will also be able to understand the lab architecture and install a Windows host for use in the lab. Next, you will understand the concept of vulnerability analysis and look at the different types of exploits. The book will introduce you to the concept and psychology of Social Engineering and password cracking. You will then be able to use these skills to expand the scope of any breaches you create. Finally, the book will guide you in exploiting specific technologies and gaining access to other systems in the environment. By the end of this book, you will have gained the core knowledge and concepts of the penetration testing process.
Table of Contents (11 chapters)

Upgrading Kali Linux

Now that we have a base install of Kali, let's run through any updates and upgrades required. This is something you want to do periodically with the system, to make sure you are using the most up-to-date information.

Getting ready

Before you start, ensure the following prerequisites:

  • Your computer is connected to the internet
  • Your installation of Kali is running
  • You are logged in as root

How to do it...

To bring an existing Kali Linux installation up to date, you will do the following:

  1. From the main Kali desktop, let's click on the terminal icon in the upper-left part of the screen:
Kali Linux desktop
Since we are already logged in as the root, we will not require any elevation of privileges using the su or sudo commands.
  1. From the Command Prompt, type this:
 apt-get update
Kali Linux Command Prompt
After the initial installation, this process could take several minutes to complete.
  1. Once complete, we will actually upgrade the system by entering the following at the Command Prompt:
 apt-get upgrade
Kali Linux Command Prompt
  1. After a minute or two, you will get a screen explaining what will be upgraded and what needs to be installed for the upgrades to occur. When ready to continue, type Y and press Enter:
Kali linux Command Prompt
This process will take quite some time to complete, so please be patient as your system upgrades.
  1. Once complete, we will reboot the system to ensure we have a fresh running environment. To continue, type this:
 shutdown -r now
Kali Linux Command Prompt

There's more..

During the upgrade, you may get prompted for a couple of items such as following:

apt-listchanges: news section

You may get paused at an apt-listchanges: news section, and you will be presented with a : sign at the bottom; you can use your arrow keys to read the notice, and then just press q to quit and continue.

The configuring macchanger

You can set up the system to change the mac automatically per boot. For our testing purposes, it's not required; however, if you are doing this in a live environment, you may want to configure it. Select No:

Configuring macchanger dialog box

The service restart

You maybe asked to restart services automatically to ease upgrades; select Yes: