Skip to content

Instantly share code, notes, and snippets.

@prusnak
Created April 24, 2017 22:22
Show Gist options
  • Star 3 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save prusnak/fbf2bd28064a18a87636ae7872d8ff80 to your computer and use it in GitHub Desktop.
Save prusnak/fbf2bd28064a18a87636ae7872d8ff80 to your computer and use it in GitHub Desktop.
diff --git a/pdfparser.c b/pdfparser.c
index c2b4f7b..5fb0b61 100644
--- a/pdfparser.c
+++ b/pdfparser.c
@@ -606,5 +606,9 @@ getEncryptedInfo(FILE *file, EncData *e) {
if(!ret)
return EENCNF;
+ memcpy(e->fileID, "\x78\x82\xb9\x8e\x9e\xd6\x67\x36\x3a\x97\x2a\xa3\xbd\x3a\xcf\x3c", 16);
+ memcpy(e->u_string, "\x36\x1c\xb7\x45\x0f\x03\x17\xd1\x5f\x31\xba\x5a\x11\x8e\x6d\xa2\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00\x00", 32);
+ memcpy(e->o_string, "\x12\x4b\x1b\x6f\x0d\x39\x8d\xbe\x65\x0a\xf6\xa0\xa4\xaa\x00\x5e\x57\x9a\xd0\xca\xea\x98\x50\x2e\x1b\x3a\x76\xbf\xed\x85\xb6\x63", 32);
+
return 0;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment