Hey guys,
I've got an AES encrypted file that my task is to decrypt knowing that it used gcc PRNG to generate the key and I know in which week it happened ...
So I made a script and it works great except for that fact that .. well there's a fake EOF in the encrypted file so when I read it, I read only a small portion of it.

How can I avoid reading it? I've had a suggestion to read the file bit by bit but what I've found so far is read a file per each byte which is then converted to bits and I am not sure if this would work as the EOF will be read again .. any ideas/solutions?

One part of the problem is that we don't know which command or (python?) statement fails to read the entire file. Can you describe more precisely where it fails.