(SOLVED) Pen Testing Lab within VB

Discussions related to using VirtualBox on Windows hosts.
Post Reply
JRaff
Posts: 4
Joined: 2. Sep 2012, 05:30

(SOLVED) Pen Testing Lab within VB

Post by JRaff »

Hopefully this isn't a repeat question, but I have searched the forums and didn't find anything that could help me. I am taking a Certified Ethical Hacker course and am trying to set up a penetration test lab within VirtualBox. Here is what I have so far;

Host:
Win7 64-bit SP1
AMD A8-3500M w/ Radeon HD 1.5GHz
6GB RAM

Guest 1:
Win Serv 2003
1 CPU
1024 MB RAM
Vid 128 MB w/ 3D accel
Net Adapter 1: NAT
Net Adapter 2: Internal network 'Pen Test Lab'

Guests 2 & 3:
Win XP SP3
1 CPU
1024 MB RAM
Vid 128 MB w/ 3D accel
Net Adapter 1: Internal network 'Pen Test Lab'

I'm having trouble setting up the network between the DNS and DHCP servers on the 2003 machine w/ the XP machines. I am not sure if my problem lies in my settings, or in my lack of experience setting up servers in general.

My way of thinking is I'm using NAT on the server to get online, and having the 2 XP clients and the server on the internal network would get them talking to each other but no luck. I can't get the server to see either of the XP client machines or vice-versa.

Can anyone provide a solution or hopefully a walk-though?
Last edited by JRaff on 3. Sep 2012, 02:32, edited 1 time in total.
BillG
Volunteer
Posts: 5106
Joined: 19. Sep 2009, 04:44
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows 10,7 and earlier
Location: Sydney, Australia

Re: Pen Testing Lab within VB

Post by BillG »

Are the client machines actually getting their network config from DHCP on the server? That would be the obvious place to start. Do an ipconfig on the XP machines. I can't see any reason why they would not see each other if they are in the same IP subnet. (In fact they should see each other even if DHCP fails and they use APIPA addresses).
Bill
JRaff
Posts: 4
Joined: 2. Sep 2012, 05:30

Re: Pen Testing Lab within VB

Post by JRaff »

No the XP machines are not getting their IP addresses from the bank of IP addresses configured into the DHCP server. In fact, both XP machines show the same IP address of 10.0.2.15 I'm thinking my problem lies in my lack of server knowledge as this is my 1st attempt at setting one up and all the tips and tutorials I've found use hardware to make connections and I'm trying to do it "virtually".

The address pool on the DHCP is 10.10.10.100/200
DNS Domain Name is training.local

In the Active Directory for training.local I have added the computer names for the 2 XP machines along with a user for each and issued passwords for each user.

On the XP machines I have joined the workgroup training.local

ipconfig/all on XP machines show:

Windows IP Configurration

Host Name - testing-user1 &2 respectively (actual computer names)
Primary Dns Suffix - blank
Node type - unknown
IP Routing enabled - no
WINS Proxy enabled - no

Ethernet adapter Local Area Connection:

connection-specific DNS Suffix - blank
Description - AMD PCNET Family PCI Ethernet Adapter
Physical Address - 08-00-27-8A-EF-B9 (for#1) 08-00-27-FD-A1-DF (for #2)
DHCP Enabled - yes
autoconfiguration enabled - yes
IP address 10.0.2.15 (on both machines)
Subnet Mask - 255.255.255.0
default gateway - 10.0.2.2
dhcp server - 10.0.2.2
DNS Servers - 192.168.1.1, 24.205.224.36, 24.205.192.61 (on both machines)
lease obtained 9/2/2012 12:43:07
lease expires 9/3/2012 12:43:07

ipconfig/all on server machine shows:

Windows IP Config

Host name - Training-server
primary Dns suffix - training.local
node type - unknown
IP routing enabled - yes
wins proxy enabled - no
DNS suffix search list - training.local

Ethernet adapter Local #2 (NAT)
physical address - 08-00-27-71-1E-B5
DHCP enabled - no
ip address - 192.254.122.161
subnet mask - 255.255.0.0
default gateway - blank
dns servers - 127.0.0.1

Ethernet adapter Local (Internal network, 'Pen Test Lab')
connection-specific DNS Suffix - blank
physical address - 08-00-27-50-03-9D
DHCP enabled - yes
autoconfig enabled - yes
IP address - 10.0.2.15
subnet mask - 255.255.255.0
default gateway - 10.0.2.2
DHCP server - 10.0.2.2
DNS servers - 127.0.0.1

Hope this helps
BillG
Volunteer
Posts: 5106
Joined: 19. Sep 2009, 04:44
Primary OS: MS Windows 10
VBox Version: VirtualBox+Oracle ExtPack
Guest OSses: Windows 10,7 and earlier
Location: Sydney, Australia

Re: (SOLVED) Pen Testing Lab within VB

Post by BillG »

If the machines are getting 10.0.2 addresses, they are set to NAT not to internal.
Bill
Post Reply