Wednesday, March 16, 2016

How to Create a complete Virtual Environment for Penetration Testing (PART- 2)

( Install Windows Server 2012 on Virtual Box )

win2012.jpg

Hello everyone. In this tutorial we will go through the steps of installing Windows 2012 server on virtualbox and connect it to Pfsense
T Tutorial Requirements
  • Virtualbox :  

Tutorial Guideline:
  • Creating a new virtual  machine & set up its settings
  • Installing Windows Server 2012
  • Configure the settings of the Server
  • Install Virtualbox Guest Additions (for installing .Net Framework)
  • Configuring the Network of the Server
  • Testing the Server connection to PFsense
Let’s  Begin !!!

Step 1: Creating a new virtual  machine

1.JPG

2.JPG

3.JPG

4.JPG
5.JPG

6.JPG
for the settings,set up the adapter in the Network tab on Internal Network. So that later, it can connect back to the Pfsense.

7.JPG
  • In the Storage section, choose the Server ISO.
8.JPG


Step 2:  Installing Windows Server 2012
  • Start the virtual machine, it should take you to the Installation screen.
9.JPG
  • Check the I accept the license terms
12.JPG
  • Choose Custom install Windows Only (Advanced).
13.JPG
– Choose Drive 0 Unallocated Space and Click Next
14.JPG


C – Create Admin password
15.JPG
– Click Finish to finish Installation process.
– Once the System is installed. Log in to the server by going to
Input >>>> Keyboard >>>> insert Ctrl + Alt+Delete  OR   use a keyboard shortcut
Ctrl + Del

31.jpg



Step 3: Configure the settings in the Server
  • When you log in to the system, a configuration window will appear to set up the essentials of the server
  • Click Next  for Configure Windows Server.
16.JPG
  • Type the name of your server and company. For the purpose of  this tutorial, I chose TestingServer as the name of my server. you can name it whatever you want.
  • Click Next
17.JPG
  • For Creating Network Administrator Account , type the admin password
  • Click next
18.JPG
  • Choose Use recommended settings
  • Click Configure to start configuring the server.
19.JPG

NOTE: It would take 5 to 15 mins to set up and prepare the server. After it is done, it going to reboot by itself to install the updates.
20.JPG


Step 4: Install Virtualbox Guest Additions
  • To Install other tools like .Net Framework, we have to install Virtualbox Guest addition.
  • Go to Device >>>> Insert Guest Additions CD image
21.jpg
  • Click on the blue box
22.jpg
  • Click on Run the Guest Additions
23.jpg
  • Click Yes
24.jpg
  • Click NEXT, NEXT and Install
25.JPG
  • Click Install, when it asks for Installing Oracle Corporation System Devices   
26.JPG
  • Click finish
28.JPG

Step 5: Configure the Network Settings of the Server
  • Once it is done with the rebooting. Log in again and go to Server Manager
33.JPG
  • Now we are  going to configure a static IP for our server :
  • Go to Local Server >>>>> Click on Ethernet >>>> IPV4 address
34(1).jpg
  • Right Click on Properties
35.jpg
  • Click on Internet Protocol Version 4 >>> then properties
36.jpg
  • Set up a static IP address

For this tutorial, I decided to have 10.0.0.8 as my server IP address, Default gateway  IP is the same IP address of the Pfsense (our router) tha we have confugured in Part-1.
For the DNS Server set it up as your router IP address to get Internet Connection later. In this case mine is 192.168.1.1
  • Click Ok and you are done .
38(1).jpg
11.JPG
  • After configuring the Static IP Address, we move to installing .Net Framework .
  • Go to the Dashboard >>> Add roles and Features
42.jpg
  • Click Next  For Installation Type
  • Click Next for Server Selection
  • Click Next for Server Roles
  • When you get to Features section. Choose .Net Framework Features and click Next
45.jpg

  • Click Install. It would take sometime (few minutes)
46.JPG


Step 6: Testing the connection to PFsense:
  • To test the connection between the server and the Pfsense. Open the PFsense box first , Then go to Server Powershell and try to ping Pfsense IP. By this stage you should get a reply that indicates Pfsense is up and running.
12.jpg

  • Also Ping google.com to check the internet  is working properly in your box. By following steps you should be able to get a reply successfully.
27.JPG
NOTES (Issues you might face):
  • Do not forget to open the Pfsense box first to get connection back to the Server.
  • If you could not get internet connection to your box after following the above steps. Reset the machine (Sometimes virtualbox gets stuck and needs a reset to work properly).

13.jpg
  • Or DNS Server is not set up as your ROUTER IP

That’s all for this tutorial, hope you all find it useful

No comments:

Post a Comment