Posted on 1 Comment

How to install Parrot Security OS in Vmware

Kali Linux is the most popular and also my favorite pen testing distro. Its regular updates and stability accord it the top spot. Apart from Kali Linux, there are many other pen testing distros available. One of them is Parrot Security distro. Parrot Security sports many more tools than Kali Linux which includes software for cryptography, cloud, anonymity, digital forensics and of course programming. One of our readers has requested us to make a guide on how to install Parrot Security OS in Vmware. So be it.

Download the Parrot Security OS . Unlike the makers of Kali Linux, Parrot Security have not yet provided a Vmware image to download. So we have to download a iso image (depending on your architecture yo- u can download a 32bit or 64 bit iso file). Once the download is finished, open Vmware Workstation (Version 12 used for this article). Hit “CTRL+N”. The below window should open.

Make sure the “Typical” option is selected, and click on “Next”. That takes us to the next window. Initially, the “installer disc image file” field should be empty. Click on “browse” and browse to location of the iso file we just downloaded and select it. Now the window should look like below. Click on “Next”.

The Guest operating system should be automatically selected for you, if not select Linux as OS and version as Debian 8.x (since I am installing a 32bit, make it Debian 8.x64 if installing 64bit). Click on Next.

Choose the name of virtual machine and its location as you like. I named it Parrot. Click on “Next”.

Allocate the hard disk memory for your virtual machine. Keep the minimum as 20GB. Click on Finish.

It will show you a summary of all the selections you made. If you want to make any changes, click on Customize hardware or else click on Next.

The virtual machine is created with the name you gave it. Power on the virtual machine. It will boot and take you to the interface shown below. Choose the “Install” option. In the next window select “Standard Installer”. You can select these options using “tab” button.

Select the language in which you want to continue the installation process.

Select your country. For this article, I chose location as India.

Select the keyboard configuration you want.

It is important to set the root password (no need to tell it is Linux’s most powerful account) for the machine before we do anything. Set a complex password. Read the suggestions before you set the root password.

Re-enter the root password again to confirm it.

It is a good practice to use the system as a no -n root user. The system will prompt you to create a new user account for non-administrative activities. I am creating a user with name kalyan. I am giving the same name as username.

Create a password for the user account you just created. Make it a good password for security reasons.

Re-type the password again to confirm the password you have assigned.

The next step is partitioning the hard disk. Unless you are an expert or want to try something different, use the entire disk.

The system will warn you before partitioning. Select the disk for partitioning.

It will ask you to choose the partitioning scheme. Choose the first one. It is also recommended for users.

Next, it will show you changes you have configured before writing the changes to the disk. Select “Finish partitioning and write changes to the disk”.

Confirm for one last time that you want to writ-e changes to the disk. Select “Yes”.

The installation process will start and may take some time. You can have snacks and come back. After installation finishes, it will prompt whether you want to install GRUB boot loader.

Select Yes. Then it will ask you where to install the boot loader. Select the /dev/sda disk.

After the installation is finished, it will show you a message as shown below. It’s time to boot into your new system.

As the system boots, it will ask present you a login screen. You can login as either root or the new user you created it. Once you login, your new pen testing distro should look as below.

Posted on Leave a comment

Install OpenVM tools in Kali Linux rolling

Good Evening Friends. As of Sept 2015, VMware recommended using the distribution-specific open-vm-tools instead of the VMware Tools package for guest machines. This means that instead of Vmware tools, the users should install openVM tools specific to the guest OS. The makers of Kali Linux  have made changes to  the latest Kali rolling kernel accordingly. These openVM tools have all the needed functionality  such as file copying, clipboard copy/paste and automatic screen resizing are working perfectly. Now let us see how to install OpenVM tools in Kali Linux rolling 2016.

Open a terminal and locate the “sources.list” file. Open the “sources.list” file with any text editor. Here I opened with the Vi editor. The command is “vi /etc/apt/sources.list

When the file opens, type “i” to get into insert mode. You cannot make changes to this file unless you get into insert mode.

Now type “deb http://http.kali.org/kali kali-rolling main contrib non-free” without quotes. Hit ESC, then SHIFT+:wq to save and close the file.

Next type command apt-get update. 

Then type command apt-get install open-vm-tools-desktop fuse. When it asks if you want to continue, type Y.

After installation is over, reboot the system and you will get the screen as shown below. Happy hacking.


Posted on 8 Comments

Installing Kali Linux in Virtualbox:Simple Method

NOTE : Kali Linux Rolling 2020.4 has been released. This guide works even for that too.

Good evening friends. I have seen that most of the people are still facing many problems while installing Kali Linux in Virtualbox. So today i brought the easiest method to install Kali linux in Virtualbox. It doesn’t involve  typing of any lengthy  commands. For this howto, I am installing Kali Linux v2.0 Sana in virtualbox version 5. This howto works for any host OS, from Windows XP to Windows 10. Just install the latest Virtualbox version for that operating system.

The makers of Kali Linux are providing prebuilt virtualbox images which are available for download here. First download the image.  It would be a compressed image. Now extract the contents of  the file at any location of your choice.

It would be a ova extension file as shown below.

Now open Virtualbox. Go to “File” and choose option “Import appliance”. Click on it.

As soon as you click on it, the below window will open.

Now, browse to the location of the OVA file we just downloaded. Click on “Next”.

You will see the below window.  Check out all the options shown. Change any options if required.

Make sure that the location where you are creating disk has enough space. Click on Import.

The process of importing will start as shown below.

It will take some time to process.  Just wait. As soon as the importing is over you will see the virtual machine  as shown below.

Power On the virtual machine.  After some system processes, you will be asked for the username. The username is “root”.

Next you will be prompted for password. The default password is “toor”.

If everything went well, you should see the interface as shown below. Go to full screen to see if its working. You are all good to go. See, this is the easiest way to install Kali Linux in virtualbox. Hope it was helpful. Please comment if you encounter any problem. I would be happy to solve it.

Posted on Leave a comment

How to enable IPv6 on a Cisco router with cisco IOS

Good evening friends, today we will see how to enable IPv6 on a cisco router with cisco ios. To know what is IPv6, go here. Enabling IPv6 routing on a cisco router is pretty easy and involves only a few commands.

First of all, we have to enable the router to pass IPv6 traffic. In global configuration mode of the router, type command “ipv6 unicast-routing”. Then go to the specific interface on which you want to configure IPv6 addressing by typing command “interface <type> <number>”  as shown below.  Type command “ipv6 enable”.

Now let’s check whether IPv6 is enabled or not on our specified interface. Go back to Privileged Exec Mode  and type command “show ipv6  interface ethernet1/0″. To know about different modes on Cisco IOS, go here. Now when we type the above command, we can see that our device has been assigned a IPv6 address as shown below.

Posted on 2 Comments

Install Matriux Krypton Ec-centric in Oracle Virtual Box

Matriux Krypton is a pen testing distribution based on Debian. It consists of almost 300 security tools for ethical hacking categorized as arsenals. It has a category for data recovery which is not prevalent in other penetration testing distros. Today we are going to see how to install Matriux Krypton Ec-Centric in Oracle Virtual box. It can be downloaded from here. Open Virtualbox and click on “New virtual machine”. On the popup window, give the name as Matriux ( in fact any name you like ). Select operating system as “Linux” and version as “Ubuntu”. Click on “Next”.

Select the appropriate memory you want to assign to the virtual machine and click on “Next”.

Select the option “create a virtual hard drive file” and click on “Create”.

Select Hard drive file type as VDI. Click on “Next”.

Choose appropriate storage option and click on “Next”.

Set your virtual hard disk size appropriately but I suggest you to keep it above 8 GB. Click on “Create”.

Select the location of the iso file and click on “Start”.

Select the option “Live”  and hit Enter.

Log into account matriux. The default password is  “toor“.

 If everything went well, your system should look like this.

 Before running the Matriux disk Installer, we need to perform some operations. Go to “System>Administration>Gparted” as shown below.

 Enter the administrative password as “toor”. Click on “OK”.

 In the gparted window, click on “Create Partition table”.

 When a warning is shown, click on “Apply”.

 Right click on the unallocated hard disk and select “New” as shown below.

 Change the file system  to ext3 and click on “Add”.

We can see our “New Partition” ready to be created. Click on the “tick mark with blue background”.

 We can see our partition created as below.

 Close the window and click on “Matriux Disk Installer” we saw above. When the window opens as below, click on “Yes”.

 Choose the partition we created( i.e /dev/sda1) and click on “OK”.

Click on “OK”.

Click on “OK”.

Create a personal account login name.

Choose the password for you personal account. Click on “OK”.

Choose the root account password. Click on “OK”.

Select the appropriate locale as en_US. Click on “OK”.

If everything goes well, we will get a window as shown below. Click on “Yes”.

 We will get the below message after successful installation.  Click on “Yes” to reboot your system and you are ready to go.

Hope this was helpful.

Posted on Leave a comment

How to configure etherchannel on a Cisco switch.

Etherchannel is the port link aggregation technology invented by a company named Kalpana. This company was acquired by Cisco systems in 1994.  Etherchannel allows us to group several ( practically eight ) physical Ethernet links on a Cisco switch into one logical link. Advantages of etherchannel include increased bandwidth and fault tolerance. For example, when we group eight physical ports into one logical port, considering bandwidth of each port is 100 Mbps, the combined bandwidth is 800 Mbps. What if one of the port fails?. Well the rest of the ports take over thus preventing any failure. Let’ see it a little bit practically.

Imagine we have a network as shown below. There are two separate departments named Sales and Engg  in a company which are connected through a router.

There comes a time when the traffic between these two significant departments becomes so intense that the network administrator decides to interconnect the two switches of the respective departments as shown below so that the traffic doesn’t disturb the router. ( CCNA guys, always remember that  switches are interconnected using crossover cables only ).

Considering the importance of the two departments, the network administrator decides not only to provide additional bandwidth but also provide fault tolerance between the departments. Etherchannel satisfies both these requirements.

Now let’s see how to configure etherchannel.  To configure etherchannel, login to SWITCH1. Enter global configuration mode by typing command “config t”. Type the command “interface port-channel 1″ to create etherchannel port trunk. Type command “interface range fastethernet 0/1-8″ to select eight interfaces to assign to our etherchannel port trunk. Type command “channel-group 1 mode on” to assign the interfaces to the etherchannel port trunk.

We can see below that we have successfully configured  etherchannel  on our switch.

Now let’s configure VLAN trunk over the etherchannel logical port trunk. Type command “interface port-channel 1″ to select the etherchannel port. Type command “switchport mode trunk” to  set etherchannel port as trunk port.

Hope this was helpful.

Posted on 3 Comments

How to enable DHCP server in VirtualBox

Good evening friends. We have seen how to create a virtual pentest lab both in Oracle VirtualBox (see here) and Vmware Workstation(see here). Although both penetration testing labs  were almost similar, there is a small difference between them . As the title of this howto already implies it is the absence of DHCP server in the pentest lab we created using Virtualbox. VirtualBox provides a DHCP server but it can’t be turned on using the GUI feature unlike Vmware Workstation. So let’s see how to enable DHCP server in Virtualbox networks. I am going to assign DHCP server to my pentest lab I created above. I will assume that  virtualbox is installed on Windows. Open CMD and navigate to the directory where  Virtualbox is installed. By default it will be “C:Program Files OracleVirtualBox”. Type the command “vboxmanage dhcpserver add –ip 10.10.10.1 –netmask 255.0.0.0 –lowerip 10.10.10.2 –upperip 10.10.10.10 –netname pentestlab”. Hit Enter.

In the above command, “vboxmanage dhcpserver  add –ip 10.10.10.1” starts a DHCP server with IP address 10.10.10.1 . The “–netmask 255.0.0.0″ assigns subnet mask for the network. The “–lowerip” and “–upperip” options assign a lower ip address and upper ip address respectively.   The “–enable” option enables the DHCP server we just created. The “–netname” option assigns a name to the network. Now we have successfully created an internal network named pentest lab with its own DHCP server. Now change the network adapter settings of the attacker machine ( Kali Linux ) to pentest lab.

Similarly change the network settings of the victim machine.

Now start the attacker machine (Kali Linux) to see if the IP address is automatically assigned. If the IP address has not been assigned, disable the adapter using command “ifdown eth0″ and re enable it by typing command “ifup eth0″. Now check if the IP address has been assigned or not by typing command “ifconfig”.

Similarly check on the victim machine.

We can see that the IP addresses have been automatically assigned successfully starting from the range of 10.10.10.2. Hope this was helpful.

Posted on 2 Comments

How to create a static VLAN in a Cisco switch

According to Wikipedia, “In computer networking, a single layer-2 network may be partitioned to create multiple distinct broadcast domains, which are mutually isolated so that packets can only pass between them via one or more routers; such a domain is referred to as a Virtual Local Area NetworkVirtual LAN or VLAN.”

VLAN’s simplify network management, limit the size of a broadcast domain and improve network efficiency. VLANs are of two types.

  • Static VLAN
  • Dynamic VLAN

In a static VLAN, we assign specific ports to a specific VLAN. whereas in dynamic VLAN we assign MAC addresses to a specific VLAN. In this article we are going to see how to create and configure a static VLAN. We are going to create three VLANs and assign ports to them. For this example, we will create three VLANs named Java, SAP and HR.

 

We need to be in global configuration mode to create VLANs. The command “vlan 2″ assigns number 2 to the VLAN we are going to create. We can assign any number from 2 to 4094 to the vlan. The command “name java” names our vlan as java. Similarly we can create the vlans SAP and HR.  Before assigning ports to the VLAN let’s see the port states in our switch.

 

We can see above that all the ports of the switch are members of VLAN 1. VLAN 1 is a special purpose VLAN used for administration. It is the only pre created VLAN on the Cisco switch. All ports are members of this VLAN by default. So when you are assigning a port to a specific VLAN, you are just changing the port from VLAN1 to that VLAN.

Now let’s assign ports to the VLANs we just created. First,  let’s assign three ports to the VLAN java.

 

The “interface fastethernet 0/1″ command selects the fastEthernet port 1. The “switchport access vlan2″ command assigns this port to VLAN java. Similarly we can add the fastethernet ports 2 and 3 to the vlan 2. Now let’s see the port states once again.

 

We can see that the first three fast Ethernet ports have been assigned to the VLAN java. Now we will assign fast Ethernet ports 4 and 5 to VLANs SAP and HR respectively.

 

This is how our network  will look like if we connect the host devices.

And our port states will look like this.