I analyzed PDF, and extract javascript code.

But javascript code is encrypted.

I can't decrypt it.

Please advise me.

javascript code

  • 1
    It’s not encrypted, it’s just encoded (octal escape sequences). Just open up a JavaScript interpreter like the console built-in in most browsers, put the code in quotes like "\040\040\040\040\146\165\156\143\164\151\157\156\043\164\151\157\156\040\163\167\050\051…" and you’ll get " function#tion sw()…" as result. – Gumbo Apr 19 '14 at 14:00

This question seems off-topic to me, as embedded JavaScript in PDF documents has nothing to do with security. That being said, perhaps you can give this tutorial a try.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.