Hacker News new | past | comments | ask | show | jobs | submit login
What does this JS do? (gist.github.com)
29 points by danw on May 12, 2010 | hide | past | favorite | 6 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.




Consider applying for YC's Fall 2025 batch! Applications are open till Aug 4

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: