Skip to content

Latest commit

 

History

History
17 lines (11 loc) · 1.99 KB

homework-8.md

File metadata and controls

17 lines (11 loc) · 1.99 KB

I pledge on my honor that I have not given or received any unauthorized assistance on this homework or assignment. -Jacob Elspas

Homework #8


Part 1: I started by logging into the servr at nc 159.89.236.106 5678 and playing around with the different options. This took me a while to understand, and I tried a lot of different inputs and combinations in the process. Eventually I was able to wrap my head anroud the different numbers to keep track of and the conversions (but still had several hours of debugging). A fellow classmate linked me to this website which was useful. I essentially followed the slides given in lecture, along with this conversion table on decimal to hex format. Eventaully, I accomplished the attack and received this flag: CMSC389R-{merkle_damgard_unguarded}. The completed program can be found here!


Part 2: For part 2, I satrted by looking for a website to encrypt something with a PGP key, and I conveniently found this: https://www.igolder.com/pgp/encryption/. I then generated a public and private key (which can be found here) and decided on a message that I was going to encrypt (I chose the first paragraph from Harry Potter):

"Mr. and Mrs. Dursley, of number four, Privet Drive, were proud to say that they were perfectly normal, thank you very much. They were the last people you’d expect to be involved in anything strange or mysterious, because they just didn’t hold with such nonsense."

I encrypted my message with the public key (encrypted message) and sent it to the challenge email address, [email protected] . I then received this encrypted message, which once I decrypted with my private key read CMSC389R-{th3_boy_wh0_PGPd}. I really liked how the key related to the message I'd sent, what a fun surprise!