Ethereum Miner - Mine and Earn free Ethereum Doloca.net: Online Booking - Hotels and Resorts, Vacation Rentals and Car Rentals, Flight Bookings, Activities and Festivals, Tour

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

No comments:

Post a Comment

Ethereum Miner - Mine and Earn free Ethereum