Navigation Menu

Skip to content

Commit

Permalink
Fix headings
Browse files Browse the repository at this point in the history
  • Loading branch information
Andrew David Wong committed Aug 12, 2018
1 parent dcd9552 commit a7a48fb
Showing 1 changed file with 24 additions and 33 deletions.
57 changes: 24 additions & 33 deletions managing-os/pentesting/kali.md
Expand Up @@ -6,7 +6,9 @@ redirect_from:
- /doc/kali/
---

**General reminder:**
# How to create a Kali Linux VM

## Warnings

- The installation scripts and provided tools may have bugs, be vulnerable to Man in the Middle (MitM) attacks or other vulnerabilities.

Expand All @@ -17,11 +19,9 @@ redirect_from:
- Kali Linux distribution is a rolling distribution based constantly on Debian testing release, so it always will have newer software base than available in Qubes OS debian template. Keep in mind that it may result in problems (especially in regard to package dependency) not covered by this tutorial.


Qubes 3.2
=========
## Qubes 3.2

How to Create a Kali Linux VM
-----------------------------
### How to Create a Kali Linux VM

This guide is being created to give guidance on ways in which you could create a [Kali Linux][kali] penetration testing VM (qube) in Qubes OS.

Expand All @@ -34,8 +34,7 @@ There are multiple ways to create a Kali Linux VM:
- using [katoolin]. Explained [here](#katoolin3_2).
- manually. Explained [here](#templatevm-from-debian3_2).

Kali Linux HVM <a name="hvm3_2"/>
--------------
### Kali Linux HVM <a name="hvm3_2"/>

1. Download the Kali installation DVD

Expand All @@ -45,8 +44,7 @@ Kali Linux HVM <a name="hvm3_2"/>

[user@dom0 ~]$ qvm-start <hvm-name> --cdrom <vm-name>:/home/user/Downloads/<iso-name>.iso

Debian based Kali Template with Katoolin <a name="katoolin3_2"/>
----------------------------------------
### Debian based Kali Template with Katoolin <a name="katoolin3_2"/>

**Note:** The prompt on each line indicates where each command should be entered (`@dom0`, `@debian-<X>` or `@kali`).

Expand Down Expand Up @@ -186,8 +184,7 @@ Debian based Kali Template with Katoolin <a name="katoolin3_2"/>

- (Optional) Attach necessary devices

Kali Linux TemplateVM from a Debian template <a name="templatevm-from-debian3_2"/>
--------------------------------------------
### Kali Linux TemplateVM from a Debian template <a name="templatevm-from-debian3_2"/>

This section will explain how to create your own [Kali] Linux TemplateVM based
on a current stable Debian TemplateVM. The basic idea is to personalize the
Expand All @@ -202,7 +199,7 @@ The steps can be summarised as:
4. Use the template to build AppVM so that you can maintain isolation between
e.g. pentesting jobs

### Get Kali Linux GPG key ###
#### Get Kali Linux GPG key

**CAUTION:** Before proceeding, please carefully read [On Digital Signatures and Key Verification][qubes-verifying-signatures].
This website cannot guarantee that any PGP key you download from the Internet is authentic.
Expand All @@ -227,7 +224,7 @@ access can change this configuration in firewall settings for the TemplateVM.
3. Make sure the key is the authentic Kali key.
See the [Kali website] for further advice and instructions on verification.

### Create a Kali Linux (rolling) template ###
#### Create a Kali Linux (rolling) template

These instructions will show you how to upgrade a Debian TemplateVM to Kali Linux.

Expand Down Expand Up @@ -297,7 +294,7 @@ These instructions will show you how to upgrade a Debian TemplateVM to Kali Linu

[user@dom0 ~]$ qvm-run -a kali-rolling gnome-terminal

### Install the Kali tools ###
#### Install the Kali tools

At this point you should have a working template and you can install the tools you need.

Expand All @@ -309,16 +306,14 @@ At this point you should have a working template and you can install the tools y
3. (Optional) Customise the template's home directory (e.g. install your licensed copy of Burp Suite Professional)

### Use the template ###
#### Use the template

The template is ready to be used. You can now spin up AppVMs based on the `kali-rolling` template.


Qubes 4.0
=========
## Qubes 4.0

How to Create a Kali Linux VM
-----------------------------
### How to Create a Kali Linux VM

This guide is being created to give guidance on ways in which you could create a [Kali Linux][kali] penetration testing VM (qube) in Qubes OS.

Expand All @@ -331,8 +326,7 @@ There are multiple ways to create a Kali Linux VM:
- using [katoolin]. Explained [here](#katoolin4_0).
- manually. Explained [here](#templatevm-from-debian4_0).

Kali Linux HVM <a name="hvm4_0"/>
--------------
### Kali Linux HVM <a name="hvm4_0"/>

1. Download the Kali installation DVD

Expand All @@ -342,8 +336,7 @@ Kali Linux HVM <a name="hvm4_0"/>

[user@dom0 ~]$ qvm-start <hvm-name> --cdrom <vm-name>:/home/user/Downloads/<iso-name>.iso

Debian based Kali Template with Katoolin <a name="katoolin4_0"/>
----------------------------------------
### Debian based Kali Template with Katoolin <a name="katoolin4_0"/>

**Note:** The prompt on each line indicates where each command should be entered (`@dom0`, `@debian-<X>` or `@kali`).

Expand Down Expand Up @@ -469,8 +462,7 @@ Debian based Kali Template with Katoolin <a name="katoolin4_0"/>

- (Optional) Attach necessary devices

Kali Linux TemplateVM from a Debian template <a name="templatevm-from-debian4_0"/>
--------------------------------------------
### Kali Linux TemplateVM from a Debian template <a name="templatevm-from-debian4_0"/>

This section will explain how to create your own [Kali] Linux TemplateVM based
on a current stable Debian TemplateVM. The basic idea is to personalize the
Expand All @@ -485,7 +477,7 @@ The steps can be summarised as:
4. Use the template to build AppVM so that you can maintain isolation between
e.g. pentesting jobs

### Get Kali Linux GPG key ###
#### Get Kali Linux GPG key

**CAUTION:** Before proceeding, please carefully read [On Digital Signatures and Key Verification][qubes-verifying-signatures].
This website cannot guarantee that any PGP key you download from the Internet is authentic.
Expand All @@ -510,7 +502,7 @@ access can change this configuration in firewall settings for the TemplateVM.
3. Make sure the key is the authentic Kali key.
See the [Kali website] for further advice and instructions on verification.

### Create a Kali Linux (rolling) template ###
#### Create a Kali Linux (rolling) template

These instructions will show you how to upgrade a Debian TemplateVM to Kali Linux.

Expand Down Expand Up @@ -575,7 +567,7 @@ These instructions will show you how to upgrade a Debian TemplateVM to Kali Linu

[user@dom0 ~]$ qvm-run -a kali-rolling gnome-terminal

### Install the Kali tools ###
#### Install the Kali tools

At this point you should have a working template and you can install the tools you need.

Expand All @@ -587,22 +579,20 @@ At this point you should have a working template and you can install the tools y
3. (Optional) Customise the template's home directory (e.g. install your licensed copy of Burp Suite Professional)

### Use the template ###
#### Use the template

The template is ready to be used. You can now spin up AppVMs based on the `kali-rolling` template.


Alternative Options to Kali Linux
---------------------------------
### Alternative Options to Kali Linux

* [PenTester Framework][PTF], with [PTF Qubes OS guide][qubes-ptf]
* BlackArch Linux, with [BA Qubes OS guide][qubes-blackarch]
* [KATOOLIN][katoolin-howto]
* more on the [Penetration Testing page][qubes-pentesting]


Notes
-----
## Notes

Thanks to the people in [the discussion thread](https://github.com/QubesOS/qubes-issues/issues/1981).

Expand All @@ -623,3 +613,4 @@ Thanks to the people in [the discussion thread](https://github.com/QubesOS/qubes
[katoolin-howto]: http://www.tecmint.com/install-kali-linux-tools-using-katoolin-on-ubuntu-debian/

[Debian-releases]: https://www.debian.org/releases/

0 comments on commit a7a48fb

Please sign in to comment.