Sonoma State University
Department of Computer Science
CS-210: Introduction to Unix
Exercise 10: Building Projects

Objective:

In this exercise, you will learn about Makefiles and building compiled applications.

Goal 1: build cs210_exercise_10_decrypt_message

Please ssh (secure shell) into blue.cs.sonoma.edu then follow these steps while logged-in to blue:

  1. cd ~/cs210/cs210_exercise_10
  2. wget https://www.robertjamesbruce.com/programming_exercises/cs210/fall_2024/cs210_exercise_10_decrypt_message.tgz
  3. tar xzf cs210_exercise_10_decrypt_message.tgz
  4. cd cs210_exercise_10_decrypt_message
  5. Modify the Makefile to build cs210_exercise_10_decrypt_message
  6. After building cs210_exercise_10_decrypt_message.c, run the program using the following encrypted string:
    eb 92 89 32 48 74 59 c0 cf b5 b1 6e 1f fd dc cb 55 d8 4f 0b ec de 57 58 bd 36 8f 58 01 0d bd 63 c6 c9 8c 3b 75 2a 17 27 38 de 70 fd ad ba 1c 3a ed f0 8d d1 f4 25 4d c0 4b 3e 0c e0 02 23 54 fd 5e c3 f4 23 7e e8 45 d8 b9 ad 30 97 b6 97 10 3d b5 7b 17 16 11 7a b7 2d af 2a d6 95 52 25 b4 82 ba 87 61 f1 ff 59 4f 91 c8 bd e0 19 e9 4a 78 f1 f2 51 b6 7a ad 3b 10 5f 4a 4b 43 d1 2b 59 1b 87 44 44 cf 87 fa dc d7 65 5d 66 cc a0 6d 7c 52 88 51 e0 e1 73 45 24 e5 e7 db f1 a4 af f0 c6 fc 11 2e 09 92 4b 23 9b 9b 33 b0 63 9c ef bb 01 9a d7 d0 36 6a c6 eb 88 c9 3b
  7. What is the unencrypted message from cs210_exercise_10_decrypt_message?

Goal 2: build cs210_exercise_10_decrypt_message2

Please ssh (secure shell) into blue.cs.sonoma.edu then follow these steps while logged-in to blue:

  1. cd ~/cs210/cs210_exercise_10
  2. wget https://www.robertjamesbruce.com/programming_exercises/cs210/fall_2024/cs210_exercise_10_decrypt_message2.tgz
  3. tar xzf cs210_exercise_10_decrypt_message2.tgz
  4. cd cs210_exercise_10_decrypt_message2
  5. Modify the Makefile to build cs210_exercise_10_decrypt_message2
  6. After building cs210_exercise_10_decrypt_message2, run the program using the following encrypted string:
    b2 81 fa cc d1 53 8b f2 6d c5 d3 ff d9 61 c9 b7 a9 c5 34 db 0c 9b 85 8f 3f e2 c6 d7 89 db 94 72 b0 6a 03 97 e8 d4 e1 df 46 1f d1 9f 5c 62 75 b8 61 3d ee 5b d4 2c 5b 3b fa fe 77 47 9c 4d 39 18 21 e6 fc 73 1c 2c 78 cb 39 cd d0 ca c1 a0 ae 3e ae 24 f9 8f 2d 40 3e 59 67 74 cf 82 1e e2 0c 29 0f e4 be 97 8e 26 db 2d 3a 87 54 5f 84 71 6b 96 69 77 75 7c 2e 2f e7 02 be 4d a1 31 42 0b a2 e6 a2 5a d1 a2 66 c1 a0 bf 22 17 d0 1a d3 fd b5 4a 28 a8 71 02 fb da c1 95 cf db 04 78 77 1c f9 b2 98 ab f2 1f 99 df 10 07 b7 d7 a2 40 76 88 3f d4 fb 61 ee 2d 30 fd 97 74 30 3b 78 44 9d 71 73 11
  7. What is the unencrypted message from cs210_exercise_10_decrypt_message2?

Goal 3: build cs210_exercise_10_decrypt_message3

Please ssh (secure shell) into blue.cs.sonoma.edu then follow these steps while logged-in to blue:

  1. cd ~/cs210/cs210_exercise_10
  2. wget https://www.robertjamesbruce.com/programming_exercises/cs210/fall_2024/cs210_exercise_10_decrypt_message3.tgz
  3. tar xzf cs210_exercise_10_decrypt_message3.tgz
  4. cd cs210_exercise_10_decrypt_message3
  5. mkdir build
  6. cd build
  7. cmake ../
  8. make
  9. After building cs210_exercise_10_decrypt_message3, run the program using the following encrypted string:
    32 b2 92 79 63 21 fd 41 ec 25 8c 97 6f 83 4a c8 c0 40 4d 87 f5 56 7c 69 3c 9b 94 57 d0 1e b6 6d f8 a4 ee bf d2 f9 d2 ce c9 c6 b0 10 7f a1 27 fb 72 bf 04 57 1d d1 cd c2 25 06 a4 df e8
  10. What is the unencrypted message from cs210_exercise_10_decrypt_message3?

Submission Instructions:

Please submit to Canvas...