Welcome to my blog, For more information about me, visit my website at https://www.kush.com.fj. This blog is mostly just a journal.
Showing posts with label ctf. Show all posts
Showing posts with label ctf. Show all posts
9/02/2011
Metasploit presentation for CTF
We had a CTF training at the labs today, where I tried to present a brief introduction to metasploit. I seriously doubt I did the tool any justice, but a colleage has requested a copy of the sides as a PDF document. I have uploaded the slides to http://www.kush.com.fj/resources/metasploit-presentation.pdf. The presentation was mostly a demo using metasploitable. Perhaps in future there may be an opportunity to do a complete walk through of the metasploitable image posted here. I started I started work on a metasploit walkthrough, its still incomplete but its a star. You can find the walk through here http://nkush.blogspot.com/2011/09/metasploitable-walkthrough.html
12/03/2010
iCTF - UCSB International Capture The Flag
I was fortunate enough to be invited to join the QUT iCTF team. The objective of the contest is to ensure that a set of required services remain available and un-compromised. In preparation for this task, I decided to setup a dedicated laptop for the contest. I would have been far easier to install a distribution such as BackTrack, but I decided to take the painful path.
First, a friend sold me his old laptop, which was far better than my current notebook. It was a Sony VAIO SZ34GP. I installed CentOS 5.5 on this notebook, just a base install with development libraries and tools. The instructions below provide a brief list of tools and their associated configurations.
Repositories
There's a need to set-up some additional repositories for CentOS to enable the installation of additional thir party applications. For more information refer to References 3Section.
Install tools to be used for the competition. Most of the tools are penetration testing tools I have used in the past. I made a point of installing the development libraries and tools during the CentOS installation. This would be useful for developing and testing possible exploits.
First, a friend sold me his old laptop, which was far better than my current notebook. It was a Sony VAIO SZ34GP. I installed CentOS 5.5 on this notebook, just a base install with development libraries and tools. The instructions below provide a brief list of tools and their associated configurations.
Repositories
There's a need to set-up some additional repositories for CentOS to enable the installation of additional thir party applications. For more information refer to References 3Section.
- sudo bash
- cd /etc/yum.repos.d/
- wget -q -O - http://www.atomicorp.com/installers/atomic |sh
- wget http://dries.eu/pub/dries-el.repo
- wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.5.1-1.el5.rf.i386.rpm
- rpm -ivh rpmforge-release-0.5.1-1.el5.rf.i386.rpm
- yum update
Installation
Install tools to be used for the competition. Most of the tools are penetration testing tools I have used in the past. I made a point of installing the development libraries and tools during the CentOS installation. This would be useful for developing and testing possible exploits.
- sudo yum -y install nmap
- sudo yum -y install amap
- sudo yum -y install hydra
- sudo yum -y install aide
- sudo yum -y install snort
- sudo yum -y install nikto
- sudo yum -y install ntop
- sudo yum -y install fail2ban
- sudo yum -y install tcptrack
- sudo yum -y install dsniff
- sudo yum -y install ngrep
- sudo yum -y install fragroute
- sudo yum -y install hping
- sudo yum -y install scapy
- sudo yum -y install tcptraceroute
- sudo yum -y install firewalk
- sudo yum -y install iptraf
- sudo yum -y install kismet
- sudo yum -y install ettercap
ChaosReader
- Download latest version from source forge (http://chaosreader.sourceforge.net)
- sudo mkdir -p /opt/chaosreader
- sudo cp chaoreader0.94 /opt/chaosreader/
- sudo chmod 755 /opt/chaosreader/chaoreader0.94
- sudo ln -s /opt/chaosreader/chaoreader0.94 /usr/local/bin/
John the Ripper
- wget http://www.openwall.com/john/g/john-1.7.6.tar.gz
- tar zxvf john-1.7.6.tar.gz
- cd john-1.7.6
- cd src
- make
- clean linux-x86-any
- sudo mv ../run /opt/john-1.7.6
- sudo chown -R root:root opt/john-1.7.6
- mv /opt/john-1.7.6/john.conf /opt/john-1.7.6/john.ini
- sudo ln -s /opt/john-1.7.6/john /usr/local/sbin/
- sudo ln -s /opt/john-1.7.6/john.ini /usr/local/sbin/
OpenVAS
- sudo yum -y install openvas-server openvas-client openvas-scanner
- sudo openvas-mkcert
- sudo /usr/sbin/openvas-nvt-syn # Add as a cron job - refer to OpenVAS documentation
- sudo /etc/rc.d/init.d/openvas-scanner restart
- sudo /usr/sbin/openvas-adduser # Add rules "default accept" if unsure
Skipfish
- wget http://skipfish.googlecode.com/files/skipfish-1.81b.tgz
- tar zxvf skipfish-1.81b.tgz
- sudo mv skipfish-1.81b /opt/
- sudo ln -s /opt/skipfish-1.81b/skipfish /usr/local/sbin/
- sudo ln -s /opt/skipfish-1.81b/sfscandiff /usr/local/sbin/
- sudo chown -R root:root /opt/skipfish-1.81b
VMWare Server
- Download the latest VMWare Server, at the time of this blog it was version 2.0.2
- tar zxvf VMware-server-2.0.2-203138.i386.tar.gz
- cd vmware-server-distrib
- sudo ./vmware-install.pl
References:
Subscribe to:
Posts (Atom)