Skip to content

What does this JS do?

gist.github.com
29 pointsdanw6 comments
On HN

Comments

http://pastebin.com/ceWGKZjJ , now you just need to firebug a Facebook page so you can figure out what those element IDs do...

At a quick glance, I'd say ErrantX is correct.

How'd you do that?

I pasted your script into Eclipse (new JS source file), Source -> Format to make it readable. Then I took the big array that's assigned to _0x82af , pasted it into Firebug, bam, normalized strings. After that it was just plain find/replace. The first few lines came from the part before eval(.

Just to confirm; yes this is similar code to what I've seen before - it does send the page as suggestions to your friends. (basically it is a JavaScript virus)

If it works like the others do: it sends a request to your friends to add the group/page etc. (this could be different, I haven't had a close look, but it is what others did)

http://jsbeautifier.org/, which usually can solve problems like this, wasn't able to help.

AboutSource Built by g1lg1l

Hackerly is an independent reader for Hacker News, built on the public HN API. Not affiliated with Y Combinator.