Saturday, October 3, 2020

Learn Network Hacking From Scratch (WiFi & Wired) - installing kali Linux inside virtual box

 

2 Network Basics
3 Pre-Connection Attacks
4 Gaining Access
 5 Gaining Access - WEP Cracking
6 Gaining Access - WPAWPA2 Cracking
7 Gaining Access - Security & Mitigation
8 Post Connection Attacks
9 Post Connection Attacks - Information Gathering
10 Post Connections Attacks - Man In The Middle Attacks (MITM)
11 Post Connection Attacks - Gaining Full Control Over Devices On The Same Network
12 ARP Poisoning Detection & Security
13 extra 

introduction to VirtualBox and Kali Linux

Now throughout the course, we're going to be using a number of penetration testing tools. You can go ahead and install each of these tools manually or you can do what most penetrate testers do including me and save time and effort and use an operating system designed for hacking. 

We're going to be using an operating system called Kali Linux and it's just a flavor of Linux based on Debian and it comes in with all the programs and the applications that we need to use pre-installed and reconfigured.

This means that we can just install this operating system and then start learning our hacking. There are two options to install. You can install it as a virtual machine inside your current operating system or you can install it as the main machine as a main operating system throughout the course. 

I'm actually going to be using it as a virtual machine because using it as a virtual machine works exactly the same as installing it as a main machine because it will be completely isolated from your computer because it's only going to run inside the virtual box. 

So if you break it or if you mess things up it's very very easy to fix. It's very easy to go back to other snapshots other configurations and also you won't lose any functionality by using it as a virtual machine. That's why I always use it as a virtual machine. 

Installing Kali Linux inside a virtual box

And in this lecture, I'm going to cover how to install it as a virtual machine inside a virtual box. Now I'm gonna be doing the steps on a Mac OS X computer but these steps are exactly the same regardless of what operating system you use. 

So if you're on Windows or on Linux you just have to download the virtual box version of your computer and then the steps shown in this lecture are exactly the same. After installing the virtual box so I'm gonna include the download link and the resources of this lecture and I have it already opened in here. download link

 All you have to do is just scroll down make sure you click on the Kali Linux virtual box images not on the VMware[snapshot], and then download the version of Kali that's compatible with your system. So if you have a 64-bit computer download the 64 bits if you have the 32 bits download the 32 bits. 

Now one click on this will start to download for you. If you're using Internet Explorer or Edge browser then you're going to have to right-click and save target as on Chrome and Firefox you can just click the link. 
Now, this is downloading for me and I'm going to stop it because I've already downloaded so I already have it downloaded in here [snapshot]. And as you can see you should get a file with a dot ova extension so you have the name followed by a dot.

 So to install this in a virtual box all you have to do is literally just double-click the file and as you can see I get a window which will allow me to import this virtual machine [snapshot].

Now I'm going to keep everything the same for now and I'm just going to click on import now that set the virtual machine is ready to be used. Now before I started I want to show you how to modify some of its settings.

changing the virtual box settings

 So we're going to click on it then we're going to click on the settings in here [snapshot]. Now depending on the host operating system you're using the layout of the virtual box might be slightly different but using it is exactly the same. 

So make sure you follow the steps that I'm going to do right now. And it should work on all operating systems whether you use Windows Linux or Mac OS X. 

So the first thing that I'm going to do I'm gonna go to the system and I'm going to modify the amount of RAM it has now dependent on how much total ram you have on your computer. You can give this at 2 if you want but one gigabyte is enough for it.

I usually leave it at two because I have 16 gigs of ram. But if you have less one gigabyte is enough for it. Also if you come here on the processors you'll see that by default I have two processors assigned to it. Again I have ACP use so too is not going to cause too much pressure on my computer. 

If you have less one CPU is enough for kali. Now we're gonna go to the network settings and we're going to set this to use in that network now sometimes when you set this to a nat network you won't see a network name in here if you don't please comment below.[snapshot]

for me it already has added network so I'm going to keep it on this one and watch this setting basically does is it's going to create a virtual network where my host machine which is my iMac OSX computer in here is going to be the router for this network and then all the virtual machines are going to be clients connected to this network

so they're gonna get an Internet connection from my host machine and at the same time, all of my virtual machines will be connected to a virtual network. This is very handy because my virtual machines will be able to communicate with each other. 

We can use one of them to hack into the other. We can use it to test network attacks and much more so it'll first allow my virtual machines to have an Internet connection. It will also allow them to communicate with each other and it'll do all of this through a virtual network.

It will not use any of your wireless adapters or any of your wireless cards. It will create a virtual either net network. So as far as the virtual machine is concerned they're going to think that they're connected to a network through a wire now the last thing that I want to do is go to the ports and make sure that enables serial port is unchecked.

It's disabled and I'm also going to go to USP and make sure that enable USB controller is disabled. So I'm going to uncheck it we will talk about how to use USB devices with virtual machines later on in the course. 

But for now, make sure that you disable it by unchecking in this box [snapshot] now. I'm done with all of the settings. 

We're going to click on. OK. And we can start our virtual machine now to start it. All we have to do is just click on the start button in here [snapshot]. Now I'm going to click inside the virtual machine and hit enter and we are inside the virtual machine.

Now if you followed everything that I did so far started kali and got stuck at a black screen. So if you did not get the screen that I have right now[snapshot] then don't worry about that. This is a common issue just comment below and I will tell you how to fix it. 

Now it's asking us for the user name and the default user name is root. then is asking us for the password and the default password is the reverse of that which is toor and that's it.[snapshot]

 Now I'm inside my virtual machine now since we installed this using the ready image we can just go to view[snapshot] full screen and we'll be able to go in full screen and the screen will resize automatically to the size of our screen

now note in here you see [snapshot] that I have a network icon appearing in here. And if I click it you'll see it looks like I'm connected to a wired network. As you can see in here it says wired connected. So kali thinks it's connected to a wired network because we set this machine to use and nat network. 

So if I open my browser here you'll see that I have Internet access so that's it. That shows how to install Linux as a virtual machine. Don't be intimidated by this new operating system. We're going to go through the basics and we're going to use it a lot. And it's actually going to become very easy for you to use.

Also like I said you won't lose any functionality when you install Kali Linux as a virtual machine it's actually better to install it as a virtual machine because it's completely isolated from your computer and it'll be very easy to fix if things go wrong. Keep in mind installing this on different hardware in different computers might show you some errors on some issues. So please if you have any errors just add them in the comment and I'll help you resolve them.



No comments:

Post a Comment