CS 105

Lab Setup

Note: This lab must be run on wilkes. If you run it on a different machine, you may get incorrect (or at least different) answers.

Partner & Attendance Information

Please show you were here for the lab (or not) by filling out the following information:

Getting Started

Each two-person team will attempt to defuse their own personalized bomb. Each bomb is a Linux binary executable file that has been compiled from a C program. To obtain your team's bomb, one (and only one) of the team members should follow these steps to acquire a bomb:

  1. Connect to wilkes in a terminal.
  2. Create a directory for your lab files, using the commands:

    mkdir -p ~/cs105/lab3-bomb
    cd ~/cs105/lab3-bomb
    
  3. Enter the command links http://wilkes:15213 and then press Enter. This will bring up a little web form inside the terminal where you can enter your usernames and email. You can use your keyboard's arrow keys to move around the form. When you've filled in the blanks, navigate to the Submit “button” and hit Enter.

  4. The server will generate a tar archive for you and you'll get a dialog pop-up asking if you want to download it (possibly with a question about an “Unknown Type”); select Save.

  5. Another pop-up will ask you about the Download and shows you the filename of your bomb. Select OK.
  6. Press the q key on your keyboard to exit Links, and confirm that you want to exit if prompted. (Click the Yes button or hit Y.)
  7. Back in the terminal, use ls to confirm that your downloaded bomb tar file is in your directory. Notice that your bomb has a number (e.g., bomb3) as shown below:

  8. Give the command: tar -xvf bombk.tar, replacing the k with your bomb's number. You will then have a directory called ./bombk with the following files:

    • README: Identifies the bomb and its owners.
    • bomb: The executable binary bomb.
    • bomb.c: Source file with the bomb's main routine and a friendly greeting from Dr. Evil

If you make any kind of mistake when requesting a bomb (such as not saving it or typing the wrong usernames for you and your partner), just request another one. Likewise, if for some reason you request multiple bombs, that's fine. Choose one bomb to work on and delete the rest.

To Complete This Part of the Assignment

You'll know you're done with this part of the assignment when you've done all of the following:

(When logged in, completion status appears here.)