You are on page 1of 7

Task1:

Q1: it will add zeros, we have changed the size of file to 79 byte and created two files from it
then apply the md5 hash function on it and we found that it will add zeros to the file that is not
64 or multiply of 64

Q2: no zeros, we have changed the file size to 64 and apply md5 hash function and no zeros was
added to 64 byte files

Q3: no not all bytes have been changed just those in image 1 and 2
Task1:

Task2: I have checked the md5sum for both file and it’s the same and after that I h have

append ‘is student’ string to both file and check the md5 hashes for both are identical
Task1:

We can see that the MD5 hashes remain identical

Task3: We have split the array by having the first 4224


bytes as prefix and make two files with same md5 hashes but
differs suffixes
Task1:
Task1:

And then put the common end to append and put them together and we will figure that the
output will differ

Task4: Making the Two Programs Behave Differently

We are going to make two programs with same md5 but behaves
differently
Task1:

We are going to compile the program

And then we will take the first part of the array an store it in prefix

will generate two binaries with the same MD5 sum but they will differ,
We can then select and create two files p and q having the generated values
found in pgen and qgen respectively. To get the middle section note where the
generated data begins in the first array, we place a marker at where the data
should be replaced and take it out, To create the common end file, we would
need the characters from the end file created earlier after accounting for a
128+192 size of middle offset . and after that we put all the data together and
Task1:
run. After that we check the md5sum for both benign code and malicious code we
will find that the hashes are the same

but they behave differently

You might also like