Update kali.md

This commit is contained in:
brofoobar 2018-08-05 16:50:32 +00:00 committed by GitHub
parent 295b62921a
commit 28ce130b75
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -14,8 +14,7 @@ redirect_from:
- Please keep in mind that using such a VM or VM's based on the template for security and privacy critical tasks is not recommended. - Please keep in mind that using such a VM or VM's based on the template for security and privacy critical tasks is not recommended.
- Kali Linux distribution is a rolling ditribution based constantly on Debian testing release, so it always will have newer software base than available in Qubes OS debian template. - Kali Linux distribution is a rolling ditribution 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.
Keep in mind that it may result in problems (especially in regard to package dependency) not covered by this tutorial.
How to Create a Kali Linux VM How to Create a Kali Linux VM
============================= =============================
@ -52,7 +51,7 @@ Debian based Kali Template with Katoolin <a name="katoolin"/>
[user@dom0 ~]$ sudo qubes-dom0-update --action="search all" qubes-template-debian [user@dom0 ~]$ sudo qubes-dom0-update --action="search all" qubes-template-debian
[user@dom0 ~]$ sudo qubes-dom0-update <latest Debian template> [user@dom0 ~]$ sudo qubes-dom0-update <latest Debian template>
2. Start and update your latest Debian template 2. Start, update and close your latest Debian template
[user@dom0 ~]$ qvm-start debian-<X> [user@dom0 ~]$ qvm-start debian-<X>
[user@dom0 ~]$ qvm-run -a debian-<X> gnome-terminal [user@dom0 ~]$ qvm-run -a debian-<X> gnome-terminal
@ -60,7 +59,7 @@ Debian based Kali Template with Katoolin <a name="katoolin"/>
[user@debian-<X> ~]$ sudo apt-get upgrade [user@debian-<X> ~]$ sudo apt-get upgrade
[user@dom0 ~]$ qvm-shutdown debian-<X> [user@dom0 ~]$ qvm-shutdown debian-<X>
3. Clone `debian-X` template (two options) 3. Clone `debian-<X>` template (two options)
1. Via Qubes VM Manager 1. Via Qubes VM Manager
@ -68,9 +67,9 @@ Debian based Kali Template with Katoolin <a name="katoolin"/>
2. Via command line 2. Via command line
[user@dom0 ~]$ qvm-clone debian-<X> kali [user@dom0 ~]$ qvm-clone debian-<X> kali
4. Check name of testing [Debian-releases][Debian release] and update repository list to reflect current state 4. Check name of testing [Debian release][Debian-releases] and update repository list to reflect current state
[user@kali ~]$ sudo sed -i 's/<current stable>/<current testing>/g' /etc/apt/sources.list [user@kali ~]$ sudo sed -i 's/<current stable>/<current testing>/g' /etc/apt/sources.list
[user@kali ~]$ sudo sed -i 's/<current stable>/<current testing>/g' /etc/apt/sources.list.d/qubes-r<X>.list [user@kali ~]$ sudo sed -i 's/<current stable>/<current testing>/g' /etc/apt/sources.list.d/qubes-r<X>.list
@ -93,11 +92,11 @@ Debian based Kali Template with Katoolin <a name="katoolin"/>
1. Install Katoolin 1. Install Katoolin
[user@kali ~]$ sudo apt-get install git [user@kali ~]$ sudo apt-get install git
[user@kali ~]$ git clone https://github.com/LionSec/katoolin.git [user@kali ~]$ git clone https://github.com/LionSec/katoolin.git
[user@kali ~]$ sudo cp katoolin/katoolin.py /usr/bin/katoolin [user@kali ~]$ sudo cp katoolin/katoolin.py /usr/bin/katoolin
[user@kali ~]$ sudo chmod +x /usr/bin/katoolin [user@kali ~]$ sudo chmod +x /usr/bin/katoolin
[user@kali ~]$ rm -rf katoolin [user@kali ~]$ rm -rf katoolin
2. Add Kali Linux repositories 2. Add Kali Linux repositories
@ -153,6 +152,7 @@ Debian based Kali Template with Katoolin <a name="katoolin"/>
[user@kali ~]$ sudo shutdown -h now [user@kali ~]$ sudo shutdown -h now
**QubesOS 3.2 only**
- In `dom0` console: - In `dom0` console:
[user@dom0 ~]$ qvm-trim-template kali [user@dom0 ~]$ qvm-trim-template kali
@ -233,7 +233,7 @@ These instructions will show you how to upgrade a Debian TemplateVM to Kali Linu
[user@dom0 ~]$ sudo qubes-dom0-update --action="search all" qubes-template-debian [user@dom0 ~]$ sudo qubes-dom0-update --action="search all" qubes-template-debian
[user@dom0 ~]$ sudo qubes-dom0-update <latest Debian template> [user@dom0 ~]$ sudo qubes-dom0-update <latest Debian template>
2. Start and update and close your latest Debian template 2. Start, update and close your latest Debian template
[user@dom0 ~]$ qvm-start debian-<X> [user@dom0 ~]$ qvm-start debian-<X>
[user@dom0 ~]$ qvm-run -a debian-<X> gnome-terminal [user@dom0 ~]$ qvm-run -a debian-<X> gnome-terminal
@ -245,7 +245,7 @@ These instructions will show you how to upgrade a Debian TemplateVM to Kali Linu
[user@dom0 ~]$ qvm-clone debian-<X> kali-rolling [user@dom0 ~]$ qvm-clone debian-<X> kali-rolling
4. Check name of testing [Debian-releases][Debian release] and update repository list to reflect current state 4. Check name of testing [Debian release][Debian-releases] and update repository list to reflect current state
[user@kali-rolling ~]$ sudo sed -i 's/<current stable>/<current testing>/g' /etc/apt/sources.list [user@kali-rolling ~]$ sudo sed -i 's/<current stable>/<current testing>/g' /etc/apt/sources.list
[user@kali-rolling ~]$ sudo sed -i 's/<current stable>/<current testing>/g' /etc/apt/sources.list.d/qubes-r<X>.list [user@kali-rolling ~]$ sudo sed -i 's/<current stable>/<current testing>/g' /etc/apt/sources.list.d/qubes-r<X>.list
@ -265,8 +265,14 @@ These instructions will show you how to upgrade a Debian TemplateVM to Kali Linu
6. Copy the Kali GPG key from the DispVM to the new template: 6. Copy the Kali GPG key from the DispVM to the new template:
**QubesOS 3.2**
[user@xxxx-dvm ~]$ qvm-copy-to-vm kali-rolling kali-key.asc [user@xxxx-dvm ~]$ qvm-copy-to-vm kali-rolling kali-key.asc
**QubesOS 4.0**
[user@xxxx-dvm ~]$ qvm-copy kali-key.asc
The DispVM can now be turned off. The DispVM can now be turned off.
7. Add the Kali GPG key to the list of keys trusted to authenticate packages: 7. Add the Kali GPG key to the list of keys trusted to authenticate packages:
@ -288,6 +294,9 @@ These instructions will show you how to upgrade a Debian TemplateVM to Kali Linu
9. Shut down and trim the new template. 9. Shut down and trim the new template.
[user@dom0 ~]$ qvm-shutdown kali-rolling [user@dom0 ~]$ qvm-shutdown kali-rolling
**QubesOS 3.2 only**
[user@dom0 ~]$ qvm-trim-template kali-rolling [user@dom0 ~]$ qvm-trim-template kali-rolling
10. Ensure a terminal can be opened in the new template. 10. Ensure a terminal can be opened in the new template.
@ -298,8 +307,7 @@ These instructions will show you how to upgrade a Debian TemplateVM to Kali Linu
At this point you should have a working template and you can install the tools you need. At this point you should have a working template and you can install the tools you need.
1. [Resize the template disk image][qubes-resize-disk-image] if you plan on installing the full Kali distribution. 1. [Resize the template disk image][qubes-resize-disk-image] if you plan on installing the full Kali distribution. For example to install `kali-linux-full` you must **grow** the size of the VM system from 10GB to at least 20GB.
For example to install `kali-linux-full` you must **grow** the size of the VM system from 10GB to at least 20GB.
2. Install Kali Linux tools: 2. Install Kali Linux tools: