Hack Lab
Hack Lab
http://Irongeek.com
I run Irongeek.com
I have an interest in InfoSec
education
I don’t know everything - I’m just a
geek with time on my hands
http://Irongeek.com
Building a “HackLab”
1. Inexpensive ways to acquire hardware and
software.
2. Learning about tools, vulnerabilities and exploits
without getting to know Bubba.
3. Software and items built for learning.
http://Irongeek.com
A NAT box
WiFi Routers (DD-WRT)
Lots of network cable
Switches
Any networkable junk you can find
KVMs
Oh, and computers
http://Irongeek.com
Institution
Out of date PCs and Servers
Private
Dumpster diving
School disposals
Government disposals
http://Irongeek.com
http://www.govdeals.com
http://www.dealextreme.com
http://www.techbargains.com
http://Irongeek.com
Go open source
Linux, FreeBDS, Apache, etc.
Microsoft
https://www.dreamspark.com/default.aspx
http://Irongeek.com
http://Irongeek.com
To public Internet
10.*.*.*
You can stack NAT boxes, but it’s
best not to have IP range conflicts
10.0.0.2
10.0.0.2
http://Irongeek.com
Air gap is best, but NAT will do
http://Irongeek.com
http://Irongeek.com
One computer can act like many
http://Irongeek.com
Comparisons
http://en.wikipedia.org/wiki/Comparison_of_platfo
rm_virtual_machines
VMPlayer
http://www.vmware.com/products/player/
Plus
http://vmxbuilder.com/
VirtualBox
http://www.virtualbox.org/
http://Irongeek.com
Host OS vs. Guest OS
Snapshots
Networking modes
Bridged: The VM acts as if it's part of your real network.
NAT: Your VM is behind a virtual NAT router, protecting it from the outside LAN,
but still allowing other VMs ran on the same machine to contact it.
Host-Only: You would want to choose this option if you don't want the VM to be
able to bridge to the Internet using NAT. It would be a good idea to use this
option if you are testing out any worm or viral code.
VM Tools
Sparse drive space
USB Support
http://Irongeek.com
http://Irongeek.com
VM Appliances
http://www.vmware.com/appliances/
http://ovfappliances.com/
Formats
OVF:Open Virtualization Format
VMX/VMDK: VMWare
XML/VDI: VirtualBox
C:\Users\adrian\.VirtualBox
http://Irongeek.com
Linux 128MB: Could be more or less depending on the
desktop interface you use and what services you decide to
run.
Windows 9x, 64MB: It should feel quite spry.
Windows 2000/2003/XP, 128MB: yes, you would want more
if you can get it, but you can get away with 128MB if
necessary.
Windows Vista, 256MB: Don't send me hateful emails, it can
be done. You have to set it to at least 512MB to install Vista,
but thereafter you can shrink it down to only 256MB. It's
ugly, but it works.
Windows 7: Just go with 512.
http://Irongeek.com
Deliberately vulnerably web apps
Old software
http://Irongeek.com
Hacme Series from Foundstone (Hacme Travel,
Hacme Bank, Hacme Shipping, Hacme Books)
http://www.foundstone.com/us/resources-free-tools.asp
WebGoat
http://www.owasp.org/index.php/Category:OWASP_WebGoat_Project
Mutillidae
http://www.irongeek.com/i.php?page=security/mutillidae-deliberately-
vulnerable-php-owasp-top-10
http://Irongeek.com
Check the vendors site for old versions
http://Irongeek.com
De-ICE & pWnOS Live CDs
http://heorot.net/livecds/
http://Irongeek.com
So many tools, so little time to install them all:
•Nmap •Ettercap
http://nmap.org/ http://ettercap.sourceforge.net/
•Metasploit •Nikto
http://www.metasploit.com/ http://cirt.net/nikto2
•Nessus •XSS Me
http://www.nessus.org/nessus/ https://addons.mozilla.org/en-US/firefox/addon/7598
Samurai WTF
http://samurai.inguardians.com/
DEFT Linux
http://www.deftlinux.net/
http://Irongeek.com
Milw0rm
http://www.milw0rm.com/
SANS Internet Storm Center
http://isc.sans.org/
PacketStorm
http://www.packetstormsecurity.org/
BugTraq
http://www.securityfocus.com/archive/1
RootSecure
http://www.rootsecure.net/
http://Irongeek.com
Pauldotcom
http://www.pauldotcom.com/
Exotic Liability
http://www.exoticliability.com/
Security Justice
http://securityjustice.com/
Securabit
http://www.securabit.com/
http://Irongeek.com
Original Article:
http://www.irongeek.com/i.php?page=security/buil
ding-an-infosec-lab-on-the-cheap
Hackerspaces
http://hackerspaces.org
http://Irongeek.com
Lets watch the video
http://www.irongeek.com/i.php?page=videos/louisville-infosec-ctf-2009
Postit
2 VMs,
1 Laptop
Box to attach
via WiFi so
folks can sniff
the SSID
http://Irongeek.com
Keep a box and hold it
Set your flag by defacing the Windows
website with your team’s Box
name
Must keep services running to
get points Linux
Can patch to keep others out Box
OS X
Can attack network layer
Scoring Box
http://Irongeek.com
Free ISSA classes
ISSA Meeting
http://issa-kentuckiana.org/
Louisville Infosec
http://www.louisvilleinfosec.com/
Phreaknic/Notacon/Outerz0ne
http://phreaknic.info
http://notacon.org/
http://www.outerz0ne.org/
http://Irongeek.com
Folks at Binrev and Pauldotcom
Louisville ISSA
http://Irongeek.com
Got old hardware you would like to donate?
http://Irongeek.com
42
http://Irongeek.com