PDA

View Full Version : Decrypt Javascript



darko886
02-06-2010, 09:52 PM
Hey everyone! I have a question that I think someone can help me with. I have a website that I made a long time ago and I encrypted the HTML files with HTML Guardian (all it does is obscure them in javascript). Now, I am trying to change up the website but I don't have the original files anymore.

This is what it looks like:


<body><script>eval(unescape('%66%75%6E%63%74%69%6F%6E%20%6D%28%73%29%7B%76%61%72%20%63%2C%6E%2C%7A%2C%69%3B%7A%3D%27%27%3B%69%3D%30%3B%77%68%69%6C%65%28%69%3C%73%2E%6C%65%6E% 67%74%68%29%7B%63%3D%73%2E%63%68%61%72%41%74%28%69%29%3B%20%69%66%28%27%75%27%3D%3D%63%29%7B%63%3D%27%25%27%2B%63%3B%63%2B%3D%73%2E%63%68%61%72%41%74%28%69%2B%3 1%29%3B%63%2B%3D%73%2E%63%68%61%72%41%74%28%69%2B%32%29%3B%63%2B%3D%73%2E%63%68%61%72%41%74%28%69%2B%33%29%3B%63%2B%3D%73%2E%63%68%61%72%41%74%28%69%2B%34%29%3B %6E%3D%35%3B%7D%20%65%6C%73%65%7B%63%3D%27%25%27%2B%63%3B%63%2B%3D%73%2E%63%68%61%72%41%74%28%69%2B%31%29%3B%6E%3D%32%3B%7D%7A%2B%3D%63%3B%69%3D%69%2B%6E%3B%7D% 72%65%74%75%72%6E%20%7A%3B%7D%20%66%75%6E%63%74%69%6F%6E%20%65%28%73%29%7B%72%65%74%75%72%6E%20%75%6E%65%73%63%61%70%65%28%6D%28%73%29%29%3B%7D'));eval(e('66756 E6374696F6E2064286F73297B766172206B65793D22446563727970744954223B7661722064733B64733D27273B766172206B702C73702C732C6B632C73633B206B703D303B73703D303B7768696C652 873703C6F732E6C656E677468297B73633D206F732E63686172436F64654174287370293B6B633D6B65792E63686172436F64654174286B70293B20696628282873635E6B63293D3D3339297C7C28287 3635E6B63293D3D3932297C7C282873635E6B63293C3332297C7C282873635E6B63293E3132362929207B733D537472696E672E66726F6D43686172436F6465287363293B7D656C73657B733D5374726 96E672E66726F6D43686172436F6465282873635E6B6329293B7D2064732B3D733B6B702B2B3B73702B2B3B6966286B703E3D6B65792E6C656E677468296B703D303B7D72657475726E2064733B7D206 6756E6374696F6E2064692873297B733D642873293B646F63756D656E742E777269746528756E657363617065286D28732929293B7D'));/*EncryptHTML*/</script><script Language='JavaScript'>di('t!S3J3B}b}RU@IFE6Cr9UEO5GDfvSPDLF1~`rPT@KBGEgCSZD=FC{dsVT@OCGDfvSPD?F06mr UENCBFbFS&@<GD6ErRQ@K@C~b}SWEMFLzDvWPAJ@GyfvWSDAFA6mrRUJNDGDfvVQALCD{fvUQ4J5GCfFSWD@GBzEt!S3J3CzbwRQD@GD~`vUU1OABEbsRVDHFC6aw!W3OAC6buPPDJGF6msUTFJ5B6cqS&DJG@6mr#U7K@B}bDW[@@G6~frPTFNEC{bEWSDOFE6CsVUGJ2CDftSUELF16gsQUKO6BEftSWEIBL6av9T0OIB6f|SV@<GC6lr9UAOHGDgDVR@@G6~cw!TEOIBEbpS%ENC6~cv T@OEBCbqSREJFA}asSUGO5C}cwW[FLGB6ar TFK5@D`FPVGJDA}Dp#VDMEFpgBRT@<F26Er!U4NECzbqSDD?GB6aw!U7NEBCbCV!E=G0{drSTGO5BzcpSZD?F1{drQUCKHFpcBR!DHF76asWTFKHF{`ES%@IEF6mrRUJNDFy`wS D@FG6Br9U7OGFy`uS D:F2~crPUFKBFpgBRQDLG@~asWU7K@B6buS EJFAzBs!T6K@B6cqS&DJG@6mr#U7K@B}bpW[DLBM~Br9UDKHB|fERTDAFM6gr]P6J4Gzf}R!EKFA~`sPT@O5FybpSR@ABMzBs!T6K@FybrRVD<FG~`r9U4O5FybwSD@ABM~Br]UEJ4B|crSVD<G@{ErWTGNDC}bFS&A;FM6bv]UJOGGDgDVQE:G76lrRP6J4Gzf}SWDHBL{mwBT6K@FybpVDDMF26gsPU6OEBEcpV!ENC0~cr9U7ODBFcsV!EOFGzDrQQ7OABCbCV!EHFFzDrQQ7OGB|cpQVD:FA6DrPU7ND@{c}QZDMC6{dvUUKOFFqcrSP@@G66m rSQJNAB{f}R!DMB16Fr UAO6BEcpSVEAG@6DrPU7NEGDbpSRA;F@{Er#U7NCB|bCSVDJG@~gsQUCNBC}gDSWD=G06ar&TAOECBbpW&D?F16Dr#TGNCB|bpS%ENF1zDrVU6J2CDcDWS@IFM6bv]TCOBF6frWREOFG{msBUFK5BFbESDD?GA~grPUFO6C~bEVDDMF0zBrQQ7O6BEbDS%ELGG6asPTBJ4B}bpV!DMB16Fr UAO6BEcpSVEAG@6DrPU7NEGDbpSDA;G0{dvUUKOFFqbpW&D:FE~mrPT@NCFpcBRTA=GC6mr UFO6C~gBRT@<FG6esUTFNEC{bqQVEOFA6EsQTAKHB|crSVD<G@{Ep!W4LEAz`qPVGIG76asSUGO5C}fEQDF?EA|gpPWFM6A~`EWZA;GC{Er#U7O4BFcqRPDLF@6FsRU7J4B}bpV!ENB16Fr U6O6C|cwSVELGDzDrQTBJ2CDgCW%EJFG~fr9TBNDGEgCRPDJGF6msUTFK@BCbuS&DNGA6erRUGJ4@AbuRUDHEG6gsWUKN@C}gESUELF16gsQUKO6BEftSDELG@6asPT@O3Fqf}R!D@FB{lsRUKO5B}bFRT@<FA~brPU7NDFEcwRQDJDA6CrPU6OEBEcpW&EMFE6cp UCO4B|gDVD@KDE{fv9QBN2C~b}S&DMF2~cv TANDBxcpRVEJC0{fqRUGO3BzbFSDDLBD~`r#QBNDBqb}RP@IGG6msQUGKBGBcvSVEMGA~fr QBOFBxbCRPDLC6~Ds!QBODBFbwRVD=FA6EsQQ7O6BEbDS%ELGG6ar!U4NFB|gDSDELG@6asPT@O3GBgCW%EJFG~fr9TBNDGE');</script></body>
</html>

If need be, I can prove that this is my website because I obviously know it's illegal to decrypt other peoples stuff.

Thanks in advanced, and if you need proof of this being my website, let me know how I can prove it. The original site is EgoBeats.com.

Thanks =D

djr33
02-06-2010, 11:09 PM
One possible approach is to select all content in the page using firefox then right click and choose view selection source. That will be the active HTML and may solve it. If it is a lot of files though you may want to find a more automated way. But this is a great example of how 'encryption' can cause issues.

alberteinstein125
02-11-2011, 04:32 PM
Google chrome inspect element is only enough for this thing.

Also Mozilla firebug add-on can do the same for you...