Jump to content

Javascript Decode


Recommended Posts


i've been reading http://isc.sans.org/diary.html, and was wondering the best way to decode this?

I know it was allready done on wepawet, but i would like to do it just to satsy myself.

I've googled around and find lots of information but can't seem to do it.

Any help i would be very gratefull.



Well, that was only one part of the entire code. Without the functions output, it doesn't execute. If you click the wepawet link, it gives you the output they were able to decode(Much longer and more code). For basic scripts, you can usually just change the output to a textarea box via document.write statement. Go over to my blog and I demonstrate this on some spam I recently got from some wordpress spammers.


Just looked at what you were asking about. Here is what it gives, which inserted an iframe to another site.


Link to comment
Share on other sites

Hey Thanks mate apprciate it.

one quick question


i know you can decode this with a javascript using document.write and unescape. but do you know how i would i do that from perl?

I'm trying put something to gether so i ran run this from my linux command line



Link to comment
Share on other sites

Umm, I think somehting like

#! usr/bin/perl
print "What do you want to decode?";
$s = <>;
$text = decode_entities($s);
print "$text"

I've never written anything in perl before, so this is just some things I googled and put together from diffeent pieces on the spot. Not sure if it will work.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
  • Create New...