Information Security Stack Exchange is a question and answer site for information security professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I analyzed PDF, and extract javascript code.

But javascript code is encrypted.

I can't decrypt it.

Please advise me.

javascript code

share|improve this question
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\1‌​67\050\051…" and you’ll get " function#tion sw()…" as result. – Gumbo Apr 19 '14 at 14:00
up vote 1 down vote accepted

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.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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