Nicolò Lutteri

Key bruteforcing parallel C

Introduction

This project programmed for the exam of Operative System aims to create a program written in C using the Ubuntu OS that can coordinate a job with multiple children processes. The scope is to obtain a key, brute-forcing the original and encoded messages. The encoding used is the XOR.

Gallery

Solution

The solution would have been directly computer the XOR between the original message and the encoded, so we have the key, but this is not the objective. For paralyzing, we used the concepts of process child in C (fork, PID) and a semaphore structure for coordinating the different children. The child has inside a for each loop, running each one on a different partition to find the message’s key.

Tecnology Used

C (Semphore, Mutex, Fork)
100%