Sabtu, 22 Agustus 2020

Kali Linux VM Installation And Setup

Preface

From time to time I realize that certain tasks that are trivial for me are not necessarily easy for others, especially if they are just getting started with IT security stuff.

As I am going to be a Facilitator at SANS Munich 2015 on SEC 401, plus we have a few people at work who are just dipping their toe into the wonderful world of Kali Linux, it seemed like a good opportunity to make a short getting started / installation guide on the Kali VMWare VMs that you can download and quickly get started.

On top of that, when I check the statistics of the blog, I always see that the most popular posts are the detailed howtos and tutorials and I assume that it is because there is a need for this kind of posts too, so here it goes! :)


Step -1: Check in your BIOS/UEFI if virtualization is enabled

We are going to use virtualization, so it would be nice to enable it, right?

In BIOS/UEFI menus this is somewhere around "Security" and/or "Virtualization" and it is something like "Intel (R) Virtualization Technology" and "Intel (R) VT-d Feature" that needs to be set to "Enabled".


Step 0: Install VMWare Player or VMWare Workstation

The Kali Linux VMs are VMWare-based, so you need to install VMWare Player (free), VMWare Workstation (paid) or VMWare Fusion (paid, for OS-X).

The more desirable choice is to use VMWare Workstation or VMWare Fusion, as they have a Snapshot feature, while with VMWare Player, you are forced to take a full copy in order to have a sort of rollback feature.


Step 1: Download Kali VM

We need to download the Kali VMs from the "Custom Kali Images" download site, where you can find a 64 bit (amd64) and a 32 bit PAE (i686) too.

There are also Torrent files for the images and based on experience, using Torrent is much more faster and reliable than the HTTP download, so if you can, use that!

Once you have downloaded the VMs, do not forget to check their SHA1 hash!!! On Linux, you can simply use the sha1sum command at a terminal. For Windows, you can use something like the MD5 & SHA Checksum Utility.


Step 2: Change Kali VM default root password

The Kali VM comes with a preset root password, which is "toor" (without the quotes), therefore, it has to be changed.

Here is how you do it:
root@kali:~# passwd
Enter new UNIX password:
Retype new UNIX password:
passwd: password updated successfully


Step 3: Change Kali VM default SSH keys

The Kali VM also comes with SSH preinstalled, so we need to change the SSH keys to avoid SSH MiTM attacks.
Here is how you do it:
root@kali:~# cd /etc/ssh/
root@kali:/etc/ssh# mkdir default_kali_keys
root@kali:/etc/ssh# mv ssh_host_* default_kali_keys/
root@kali:/etc/ssh# dpkg-reconfigure openssh-server
Creating SSH2 RSA key; this may take some time ...
Creating SSH2 DSA key; this may take some time ...
Creating SSH2 ECDSA key; this may take some time ...
insserv: warning: current start runlevel(s) (empty) of script `ssh' overrides LSB defaults (2 3 4 5).
insserv: warning: current stop runlevel(s) (2 3 4 5) of script `ssh' overrides LSB defaults (empty).

Now we can check if the keys are really changed:

root@kali:/etc/ssh# md5sum /etc/ssh/*key*
md5sum: /etc/ssh/default_kali_keys: Is a directory
6abe210732068fa7ca95854c3078dba5 /etc/ssh/ssh_host_dsa_key
1b5f3c1a1b5c48cc3cce31b116e8b6f8 /etc/ssh/ssh_host_dsa_key.pub
8f0f60855e5ab8cac8103d64faab090f /etc/ssh/ssh_host_ecdsa_key
aace49ae9236815c9a1672f8ecb2b1e2 /etc/ssh/ssh_host_ecdsa_key.pub
cf861a9f743fb4584ab246024465ddf1 /etc/ssh/ssh_host_rsa_key
d5d65d8ad023a6cb1418ae05007bc6d3 /etc/ssh/ssh_host_rsa_key.pub
root@kali:/etc/ssh# md5sum /etc/ssh/default_kali_keys/*key*
c8d5b82320a4ddde59d0e2b6d9aad42a /etc/ssh/default_kali_keys/ssh_host_dsa_key
6b12ddecd463677cde8097e23d0f219a /etc/ssh/default_kali_keys/ssh_host_dsa_key.pub
fecf056571a3dfbf3635fc2c50bf23c5 /etc/ssh/default_kali_keys/ssh_host_ecdsa_key
e44b7c50635de42e89b3297414f5047d /etc/ssh/default_kali_keys/ssh_host_ecdsa_key.pub
e9e0267484e020878e00a9360b77d845 /etc/ssh/default_kali_keys/ssh_host_rsa_key
ceee93d7bbc9f9b9706e18f23d4e81f1 /etc/ssh/default_kali_keys/ssh_host_rsa_key.pub

Step 4: Update Kali VM

Next you need to update your Kali VM so that everything is patched.

Here is how you do it:

root@kali:~# apt-get update
Get 1 http://http.kali.org kali Release.gpg [836 B]
Get:2 http://security.kali.org kali/updates Release.gpg [836 B]
********************************* SNIP *********************************
Fetched 16.7 MB in 14s (1,190 kB/s)
Reading package lists... Done
root@kali:~# apt-get upgrade
eading package lists... Done
Building dependency tree
Reading state information... Done
The following packages have been kept back:
********************************* SNIP *********************************
The following packages will be upgraded:
********************************* SNIP *********************************
241 upgraded, 0 newly installed, 0 to remove and 16 not upgraded.
Need to get 740 MB of archives.
After this operation, 130 MB disk space will be freed.
Do you want to continue [Y/n]? Y
Get:1 http://security.kali.org/kali-security/ kali/updates/main libc6-i386 amd64 2.13-38+deb7u7 [4,044 kB]
Get:2 http://http.kali.org/kali/ kali/main base-files amd64 1:1.1.0 [77.5 kB]
********************************* SNIP *********************************
root@kali:~#


Step 5: Create a Snapshot/Copy the VM

Once you are done with all the above, you can make a Snapshot in case of VMWare Workstation or copy the files of the VM in case of VMWare Player, so that you can roll back to this clean stat in case you misconfigure something.

Hope this was helpful. Happy hacking!


Related articles


  1. Hacking Apps
  2. Hacker Tools For Windows
  3. Pentest Tools Free
  4. Hacking Tools And Software
  5. Black Hat Hacker Tools
  6. Hacking Tools 2019
  7. Hack Tools
  8. Hacking Tools And Software
  9. Hacker Tools Free
  10. Hack And Tools
  11. Hackrf Tools
  12. Hack Tools
  13. Pentest Tools For Ubuntu
  14. Hacker Security Tools
  15. Underground Hacker Sites
  16. Pentest Tools Open Source
  17. Github Hacking Tools
  18. Hacking Tools Software
  19. Pentest Tools Framework
  20. Hack Tools Pc
  21. Game Hacking
  22. Hack Tools For Ubuntu
  23. Tools For Hacker
  24. Pentest Tools Alternative
  25. Hacker Tools Free Download
  26. Pentest Tools Android
  27. Pentest Tools For Ubuntu
  28. Hacking Tools Kit
  29. Hacker Tools Apk
  30. Pentest Reporting Tools
  31. Pentest Recon Tools
  32. Pentest Tools Framework
  33. Hacking Tools Windows
  34. World No 1 Hacker Software
  35. Termux Hacking Tools 2019
  36. Hacking Tools For Windows Free Download
  37. Hacking Tools 2019
  38. Pentest Tools List
  39. Pentest Tools Review
  40. Hacking App
  41. Hack Tools Mac
  42. Hacking Tools Software
  43. Hacker Tools Github
  44. Pentest Tools Android
  45. Hackrf Tools
  46. Hacker Tools For Windows
  47. Hacking Tools Github
  48. Pentest Tools Website
  49. Hacking Tools Pc
  50. Hacking Tools 2020
  51. Hacker Tools For Mac
  52. Pentest Tools Apk
  53. Hack Tool Apk
  54. Pentest Tools Online
  55. Hacking Tools For Windows 7
  56. Hacking Tools For Windows Free Download
  57. Hacker Tools
  58. Hacker Tools For Ios
  59. Termux Hacking Tools 2019
  60. Top Pentest Tools
  61. Pentest Tools For Android
  62. Hacking Tools For Games
  63. Hacker Tools Hardware
  64. Hacker Tools Github
  65. Hack Tools For Games
  66. Nsa Hack Tools Download
  67. Hacking Tools For Windows
  68. Hack Tools Online
  69. Hack And Tools
  70. Hack Apps
  71. Hacking Tools
  72. Pentest Tools Free
  73. Github Hacking Tools
  74. Hacking Tools 2019
  75. Pentest Tools Linux
  76. Hacker Tools Free Download
  77. Hacking Tools And Software
  78. Hacking Tools Free Download
  79. Pentest Recon Tools
  80. Hacker Security Tools
  81. Best Pentesting Tools 2018
  82. What Is Hacking Tools
  83. Hack Tools For Mac
  84. How To Make Hacking Tools
  85. Hacking Tools Windows
  86. Hacking Tools For Games
  87. Hack Rom Tools
  88. Pentest Recon Tools
  89. Pentest Tools For Windows
  90. Pentest Tools For Mac
  91. Hack Rom Tools
  92. Computer Hacker
  93. Hacking Tools For Beginners
  94. Pentest Tools
  95. Hacking Tools
  96. Termux Hacking Tools 2019
  97. How To Make Hacking Tools
  98. Physical Pentest Tools
  99. Hack Tools For Pc
  100. Hacker Tools For Mac
  101. Hack Tools
  102. Install Pentest Tools Ubuntu
  103. Pentest Tools Tcp Port Scanner
  104. Underground Hacker Sites
  105. Hacking Tools Software
  106. Pentest Recon Tools
  107. Hacking Tools For Mac
  108. Hacking Tools For Kali Linux
  109. Pentest Tools Windows
  110. Hacker Tools Mac
  111. Wifi Hacker Tools For Windows
  112. Hack Tools
  113. Hacking Tools Usb
  114. Hak5 Tools
  115. Best Hacking Tools 2019
  116. Hack Tools
  117. Hacker Tools Linux
  118. Hack Tools Github
  119. Hacker Techniques Tools And Incident Handling
  120. Hacking Tools For Windows
  121. Hacker Tools
  122. Hacker Tools Online
  123. Pentest Tools Github
  124. Hacker Tools Windows
  125. Hacker Tools Windows
  126. Pentest Tools For Ubuntu
  127. Best Pentesting Tools 2018
  128. Hack Tools Mac
  129. Hackrf Tools
  130. Hack Tools
  131. Hacking Tools Mac
  132. Hack Rom Tools
  133. Pentest Automation Tools
  134. Hacker Tools
  135. Hacking Tools And Software
  136. Pentest Reporting Tools
  137. Hacking Tools Kit
  138. Termux Hacking Tools 2019
  139. Tools 4 Hack
  140. Hacking Tools Name
  141. Hacker Tools Software
  142. Hacking Tools For Mac
  143. How To Make Hacking Tools
  144. Hack And Tools
  145. Hacking Tools Hardware
  146. Hacker Tools For Pc
  147. What Is Hacking Tools
  148. Hacker Tools For Mac
  149. Hack Website Online Tool
  150. Bluetooth Hacking Tools Kali
  151. Pentest Tools Website Vulnerability
  152. Hacking Tools For Beginners
  153. Pentest Tools Windows
  154. Pentest Tools Website Vulnerability
  155. Physical Pentest Tools
  156. Pentest Tools Apk
  157. Easy Hack Tools
  158. Beginner Hacker Tools
  159. Usb Pentest Tools
  160. Hack Tools Github
  161. Pentest Tools List
  162. Hack And Tools
  163. Pentest Tools For Ubuntu
  164. Hack Tools
  165. Pentest Tools Bluekeep
  166. Hack Tool Apk No Root
  167. Pentest Tools Tcp Port Scanner
  168. Pentest Tools
  169. Hacking Tools And Software
  170. Hacker Tools Online

Tidak ada komentar:

Posting Komentar