安全测试代写 More Fuzzing

2018/10/16 More Fuzzing

More Fuzzing

Submit Assignment

Due Wednesday by 11:59 Points 100 Submitting a file upload File types tar and tgz

The full specifications of the assignment are in assignment3.pdf .

Below, please find the instructions on how to locate the specifications of Assignment 3. Each line of the ascii plaintext has been encrypted by XORing with the same randomly generated key pad, then encoded in hex.

You will need to submit any software you have developed and to credit any reference you have used. You can use any language you want for solving this part of the assignment and we will not evaluate the quality of the code.

https://myuni.adelaide.edu.au/courses/36233/assignments/89385

1/2

2018/10/16 More Fuzzing

https://myuni.adelaide.edu.au/courses/36233/assignments/89385

2/2

For reference, the ciphertext was generated using the following Python program, borrowed from Nadia Heninger who borrowed it from Dan Boneh.

def strxor(a, b): # xor two strings (trims the longer input)
return “”.join([chr(ord(x) ^ ord(y)) for (x, y) in zip(a, b)])
def random(size=16):
return open(“/dev/urandom”).read(size)
def encrypt(key, msg):
c = strxor(key, msg)
print c.encode(‘hex’)
return c
def main():
key = random(1024)
ciphertexts = [encrypt(key, msg) for msg in MSGS]
return ciphertexts