How To Run BackTrack Using VirtualBox in Windows

I wanted to run Linux on Windows but i never wanted to install it directly. So what i did is that i installed it in a Virtual Environment. Which means you can use Windows and run another Operating System while using Windows. This can be achieved through a Software like VMware or VirtualBox.

The subject of this thread consist of Backtrack. You can download BackTrack Linux from their Official Website. Now in this post i am going to show you how to install Backtrack 5 using VirtualBox on Windows.

If you are wondering what is it, then this is what they say about it :

BackTrack is a Linux-based penetration testing arsenal that aids security professionals in the ability to perform assessments in a purely native environment dedicated to hacking.

#1. Downloading and Installing Virtual Box

To run a Operating System in a Virtual Environment, We will need a Virtual Machine Tool. And in this case i am using Virtual Box. Why VirtualBox? Because its free ! And it is a powerful virtualization product. To get Virtual Box Click here.

Click here to know – How to Install Virtual Box

After installing VirtualBox, We can run BackTrack Linux. So lets see how to do that !

#2. How to Run BackTrack Linux Using VirtualBox

To create a virtual machine, let us start the VirtualBox and click the “New” virtual machine button in the tool bar.

starting virtualbox

After clicking on new, the following window appears:

create virtual machine

Enter any name for the Virtual Machine, For example: Ironman

Then choose the type of OS as Linux and Version as Other Linux.

create virtual machine for backtrack linux

Once you are done, Click next.

memory size for virtual memory

Since my computer holds 6 GB of RAM, I am allocating about 1 GB of it to the Virtual Machine. And don’t worry, this is not permanent allocation. The memory will be taken back by your computer after you shut down Virtual Machine.

The template will further guide you to create a virtual hard drive for the virtual machine. The virtual hard drive is simply a file on your host computer. This file will consist all the data of the OS which you are about to run in VirtualBox.

Just select ‘Create a virtual hard drive now’ and Click Create.

creating virtual drive

Then it asks you to choose Hard drive file type. Select the default VDI (Virtual Disk Image) and Hit next.

select hard drive type

Then after you have to select ‘Dynamically allocated’ and hit next.

dynamic allocation

And now comes the important part. You have to select the Size of Virtual Drive. I have given about 2.5 GB of disk space for Virtual Machine. You can give more or less according to your wish.

file location and size of virtual machine

After you hit Create, the Virtual Machine will be created and the following Window appears:

virtual machine created backtrack linux

Adding Backtrack Linux ISO to Virtual Machine

Now that you have created Virtual Machine, You need to add an ISO or Image file of an OS. To do that, Just hit the settings button. After doing so, The following window will show up:

virtual-machine-settings

In the window above, you have to select Storage, then select Empty. And finally select the disc icon on the rightmost side. Which would open up a drop down menu.

choose a virtual cd file

Now select ‘Choose a virtual CD/DVD dis file’ and browse to the directory where your ISO or Image file is stored. In this case i will just browse and select BT5.ISO image from my hard drive. And just click OK.

backtrack 5 selected

Now everything is set up. All you need to do is click ‘Start’.

virtual machine created backtrack linux

After you hit Start, The Virtual Machine boots up. Then it loads up the OS (in this case – BackTrack 5). You might need to hit Enter so BackTrack starts booting.

backtrack-5-running-on-Virtualbox

Once BackTrack starts, All you need to do is type in a command ‘startx‘ to get to the graphical user interface of BackTrack Linux. That’s it. You have successfully run BackTrack 5 using VirtualBox on Windows Host.

If you have any questions, feel free to comment below.

How To Install VirtualBox in Windows

This thread consist of basic information on how to get VirtualBox and how to install it on your Windows Computer. This thread alone can seem useless. But i am writing this thread because it will form a basis for other threads such as – How to install Backtrack Linux on Windows Using VirtualBox, etc.

First of all, if you don’t know what is VirtualBox then here’s a short intro:

VirtualBox is a Virtual Machine (VM) software which will provide you with an environment to run any Operating System as a Virtual Machine rather than installing an OS physically.

A basic example would be to run Linux in VirtualBox while you are using Windows on your Computer. So i hope you get the idea ! Now lets see how do we get and install VirtualBox.

#1. Getting VirtualBox

You can download latest version of VirtualBox by Clicking here. I have downloaded VirtualBox 4.2.10 for Windows hosts  x86/amd64. Obviously by the time you read this thread, there might be a newer version available. So i would recommend you to download the newer version.

I am downloading that specific version because I am using Windows as my Host. If you are using Linux as Host, then download VirtualBox for linux hosts.

#2. Installing VirtualBox

If you double click on the “VirtualBox-4.2.10-84105-Win.exe” file, the VirtualBox installation wizard will be launched.

how to install virtualbox step 1

Click on the “Next” button, we can do some changes in the installation options.

how to install virtualbox step 2

To keep it simple, I chose to install all the packages that comes with VirtualBox. You can customize what you want to install, but i would recommend you to keep the default settings and then click on Next.

During the installation, VirtualBox may ask you to install various software devices. You can just proceed with the installation and hit next till the installation is complete.

how to install virtualbox step 4

Once you are done installing, you can create a desktop icon for VirtualBox. And furthermore you can run Linux on VirtualBox.

Click here to know more about How to Run BackTrack Linux using Virtual Box.

How To Block Any Website Using Notepad

In this post, I am going to talk about how to block any website on your computer without using any software. You can do this with the help of notepad. But if you are too lazy to use notepad, you can just block a website with a mouse click. Interesting right?

But first of all, Why would you want to block a website? There are many reasons why you might need to block a website.

Parental Control – To block adult websites such as porn sites, gambling sites, etc.

You might also want to block social networking sites on a temporary basis, so that you can focus on your work without distraction. Or you can also use this trick as a prank by blocking websites on your friend’s computer.

Method 1) – How to Block a Website Using Hosts File ?

To access the hosts file in Windows you can use the following command in the Run Dialog Box to open notepad and the file.

notepad and fileAs shown in the image above, Type the following command in the Run Dialog Box.

notepad c:windowssystem32driversetchosts

OR just navigate to c:windowssystem32driversetc and open hosts file using Notepad.

After opening the file, Add the following code at the end of the file:

0.0.0.0    www.facebook.com

After adding the code, the file will look like this:

after-adding-fb-block-codeSave the file.

And now if you try to access facebook then you wont be able to do so !

When you try to access, An error will occur in the browser saying – “The webpage cannot be found” or something like that.

Method 2) – Blocking Websites Simply by Using Notepad

Open Notepad and copy paste the following code:

@echo off
echo 127.0.0.1 www.google.com >> C:windowssystem32driversetchosts.txt
echo 127.0.0.1 www.yahoo.com >> C:windowssystem32driversetchosts.txt
exit

Save the file as BlockWebsites.bat

Now once you open the the batch file, google.com and yahoo.com are blocked. You can modify the batch file according to your needs.

Method 3) – Using a Batch File Created by Amit Agarwal

You can double click on the batch file to block all websites listed in it. And double click again to unblock the websites.

You can download the batch file by Clicking Here.

So that’s all in this post. Thanks for reading. If you have any doubts or questions, you can comment below. I will respond asap !