Yesterday at the College Hackathon, I was talking to dcluo about 6.858, the Computer Systems Security Class I took last semester. To my dismay, I realised that I have forgotten the details behind a lot of the cool tricks I learned from the 6.858. So I want to go through all the cool labs again.
6.858 Lab 1 - a more concise version of the detailed lab instructions!
1a. Install VMware Player if you are an MIT student, you can get VMware Player for free.
Can't click to open the "VMware-Player-3.1.3-324285.1386.bundle" to install it. Clicking just shows a blank gedit.
To install do: 1. Move the bundle to Desktop 2. Open a terminal, cd to Desktop 3. chmod +x VMware-Pl[tab complete] 4. sudo ./VMware-Player-3.1.3-324285.i386.bundle
1b. Or install Virtual Box, which is free. You will also need to follow these instructions so that you can convert the VMware image below to Virtual Box image.
2. Install the 6.858 2010 course image. Move the "vm-6858.vmwarevm" to your Desktop or somewhere. Open it, and click on "vm-6858.vmx" to start the VMware :)
3. Log in with username: httpd, password: 6858
4. VMware tips: press SHIFT+CTRL to get out of the VMware window
Optional: For those who want to change the keymap from Qwerty to Dvorak, please go down to see Part 2 of this post.
5. SSH into the VMware so that it's much easier to work with.
SSH into VM from host: 1. In VMware terminal do: /sbin/ifconfig eth0 2. look at the IP address of "inet addr," e.g. 172.16.197.128 3. Open up terminal on your host machine 4. ssh httpd@172.16.197.128 5. password is 6858 6. Now you are in!
6. Retrieve the lab files:
git clone http://pdos.csail.mit.edu/6.858/lab-2010.git lab
It might take a while.
-
ls
-
cd lab
-
ls
again and you should see files:bin.tar.gz http.c Makefile zoobar zook-exstack.conf clean-env.sh http.h shellcode.S zook.conf zookfs.c exploit-template.py index.html test.sh zookd.c zookld.c
7. Compile the web server:
make
8. Now you're ready to start Part 1: Finding buffer overflows!
Part 2. Change Keymap (to Dvorak) on New VMware Ubuntu Terminal
I'll demonstrating switching the keymap from Qwerty to Dvorak (which I use exclusively on my laptop).
- First I tried "setxkbmap dvorak", that had an error that told me to install:
- sudo apt-get install x11-xkb-utils, in Dvorak it's oger aly[i.y cboyann q11[qtx[gycno
- When I typed "setxkbmap dvorak" again, it told me cannot open display "default display" Solution:
- sudo apt-get install console-data, in Dvorak it's oger aly[i.y cboyann jrborn.[eaya. If at this point you get a cannot open display "default display", do sudo loadkeys /usr/share/keymaps/i386/dvorak/dvorak, in Dvorak it's oger nraet.fo zgopzodap.zt.fmalozc386zekrpatzekrpat
- Choose "Select keymap from arch list"
- Choose "dvorak"
- Be happy typing in dvorak!
No comments:
Post a Comment