A platform where knowledge is in open air.

Articles by "CEH"

The Offensive Security distribution Kali used by many security testers recently released version 2017.2 of their current release. For quite some time now (Since version 2.0) Kali has used Systemd (System Management Daemon) in place of an init system.  This change bring new revolution of enabling and starting services, even though many people are still using the old commands, which often still work but may also lead to errors.  I will guide you Systemd method for enabling and starting the SSH (Secure Shell) service on Kali Linux Terminal;.

The openssh-server package should already be installed in kali, to verify this you can use the bellow command:

# apt list openssh-server
If it installed you see like...



If it’s not installed, you can use this command to install it:

# apt install openssh-server

Before you start SSH, please secure first.  Since Kali comes with pre-generated SSH keys, to make it more secure, the first thing we will do is generate new ones.
To back up the original keys first as a precaution use:

# mkdir /etc/ssh/default_keys
# mv /etc/ssh/ssh_host_* /etc/ssh/default_keys/

Then to regenerate the keys:

# dpkg-reconfigure openssh-server

The next step is to edit the SSH server configuration file with the settings you need:
# nano /etc/ssh/sshd_config
If you are only planning on using SSH briefly the defaults are probably fine.  If you think you will use it for a length of time I would recommend at minimum enabling public key authentication:
PubkeyAuthentication yes
Then disabling password authentication:
PasswordAuthentication no
If you only need to temporarily start up the SSH service it’s recommended to use ssh.socket:
# systemctl start ssh.socket
When finished:
# systemctl stop ssh.socket
To instead permanently enable the SSH service to start whenever the system is booted use:
# systemctl enable ssh.service
Then to use SSH immediately without having to reboot use:
# systemctl start ssh.service
To check the status of the service you can use:
# systemctl status ssh.service
To stop the SSH service use:
# systemctl stop ssh.service
And to disable the SSH service so it no longer starts at boot:
# systemctl disable ssh.service
 This is a guide to for SSH on kali. Please feel free comment or feedback about this post.

21:07:00
Kali Linux is a Debian-based Linux distribution aimed at advanced Penetration Testing and Security  Auditing. It contains more than 600 tools aimed at various information security tasks, such as Penetration Testing, Forensics and Reverse Engineering.

What's new in Kali 2.0 ?

Updated Kernel (4.0)
Various Desktop environments support (gnome, kde, xfce, mate, e17, lxde, i3wm)
Frequent upstream updates
Improved Hardware and Wireless support
And of course lot of new tools added

How to download Kali 2.0 Sana?

Kali 2.0 is named as Sana, This is the most advanced penetration testing platform we have ever made. And the good news is that it's available in 32 bit, 64 bit, and ARM flavors, as well as a number of specialized builds for many popular hardware platforms.
Below links will take you to the official download pages of Kali Linux.

To download Kali ISOs (Bootable CDs) - https://www.kali.org/downloads/
VMWare & Virtual Box Images of Kali - http://www.offensive-security.com/kali-linux-vmware-arm-image-download/

Hardware Requirements of Kali 2.0
A minimum of 10 GB disk space for the Kali Linux install.
For i386 and amd64 architectures, a minimum of 512MB RAM.
CD-DVD Drive / USB boot support

Backtrack vs Kali vs Kali 2.0

I know that this title doesn't make sense, but I just want to let you know the different between these penetration platforms. Backtrack is the mother of penetration testing distros, first release of Backtrack released before 10 years. It's a debian based distro & is no longer being maintained. After Backtrack 5.0 R3, Kali was released & It's also called as the new Backtrack or BT 6. Kali 2.0 is the latest one to be released among all the three with better snappier interface, automatic updates & new Kernel.
Let's jump into the topic and proceed with the installation.


How to install Kali 2.0?

In this post, I used Vmware workstation 11 to demonstrate the installation of Kali 2.0. Below steps will guide you to create a VM in Vmware. In case if you are going install it on your base machine or if you know already how to create a VM in VMware workstation.

Open Vmware workstation software, And click Create New Virtual Machine. Typical is selected by default, Click Next.


Next you will be asked to select the ISO file, click browse window & select the downloaded ISO file.


Select the Guest Operating System type as Linux & let version to be Debian 6.


Give a proper name to your Virtual Machine, And it in a location where you have atleast 10GB free. I have named mine as Sana, A cool one isn't it?


Give the maximum disk space that you are going to allocate for thisVM, 20GB would be sufficient in my opinion. I recommend to store the VMDK file as a single file since it would be easier to move and to convert to other formats.


Click on Customize Hardware & Change your RAM, CPU and Network adapter settings if you want to.


Below snapshot shows my increased RAM size,



 Select the number of processes that you want to allocate to this Virtual Machine,




 Choose the adapter settings that suites your environment, Bridged works for me.


 Click close & Finish to complete the VM creation.


 Kali Installation 
Once your VM is created, you can power up the machine. You will see the below screen as soon as you start your VM


 In this post I am going to be using the most common Install Method. Press enter once you have selected your option.
Select your language and location & Keyboard as depicted in the below pictures,





Next step is to configure the network, refer snapshots below and configure accordingly.









 All the above settings can be changed anytime. So don't worry if you do not have a default gateway or a DNS server, Just give some value & later you can change them as you wish.
Configure your hostname and root password.




Follow the below snapshots to know how to configure the partitions and disks.








Installation of packer manager (Network mirror) is optional, Select yes if you want to install.




GRUB boot loader installation







That's it! Enjoy the ultimate Penetration testing distro ever!

MKRdezign

Contact Form

Name

Email *

Message *

Powered by Blogger.
Javascript DisablePlease Enable Javascript To See All Widget