Take the 2-minute tour ×
Information Security Stack Exchange is a question and answer site for Information security professionals. It's 100% free, no registration required.

I analyzed PDF, and extract javascript code.

But javascript code is encrypted.

I can't decrypt it.

Please advise me.

javascript code

\040\040\040\040\146\165\156\143\164\151\157\156\043\164\151\157\156\040\163\167\050\051...
share|improve this question
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\1‌​67\050\051…" and you’ll get " function#tion sw()…" as result. –  Gumbo Apr 19 at 14:00

1 Answer 1

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

 
discard

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.