14
May
07

Hacking MySpace - The Basics - P1

Every day I spent my time researching new ways to do things I have done for years, for example this weekend I spent 27 hours researching a new way to present Java EE HTTP uploads using AJAX, Servlets and EJB's. Yeah I know - blah blah, "we all do that kind of thing, who cares". But AH! I have been doing the same thing for something we are all familiar with. MySpace! Yes its rubbish, yes its been hacked together from ColdFusion and ASP .NET elements and YES it always seems to be broken, BUT there seems to be a massive market out there for people who want to make a quick buck from generating MySpace friend adders, or mass commenter's. They charge a fortune to download these applications to spam other MySpace users, why can't I make a free one? screw those guys… lets open source it! So I thought - How hard can it be? so I started to investigate and I was quite excited as to what I found. Step 1. How MySpace Authenticates Users I decided to write my own open source application to send mass messages, add friends etc. Just to see if I can do it. so I booted up NetBeans (my fav!) and created my new 'soon-to-be' open source project, (I am keeping its name quiet until I launch it) So to begin with I needed to understand how MySpace authenticates users - this would eventually explain why so many MySpace accounts can be hacked so quickly. First of All I needed to boot up Ethereal so I could watch what was coming in and out of my prototype MySpace application. The first thing I did was try a basic form submission, just like the login form on the homepage, here is what I submitted and what I saw come back to me… Step 1 - Hacking Myspace Now you see from this image I just submitted my email address (username) and password to the MySpace login.cfm (which is actually a ASP .NET system and not ColdFusion at all). I decided to use an User-Agent that mimicked Mac OSX running FireFox, just because that's what I use normally. If you have no idea what a User-Agent is, this might be the wrong article for you. I got the following back from MySpace, it was NOTHING but cookies and a HTTP re-direct: step21.png This screen shows a successful login, The cookie requests contain the all important MYUSERINFO cookie. This is a base64 encoded string that contains goodies and itentify you to MySpace. If you don't submit this most essential cookie back to MySpace each time you want to view something that requires a valid session, you will find yourself back at square one. So all that said, lets look at a failed login attempt and see what we get back from MySpace Hacking MySpace - Part 1, The Basics HERE IS HOW PEOPLE'S ACCOUNT'S GET PHISHED. Because you can brute force email addresses and basic passwords (which is what most MySpace passwords are based upon). You can submit your brute force attack a hundred times a second! because this is an HTTP attack. But because we are NOT trying to hack INTO MySpace, and rather just Hack it, lets move on. Step 2. Once we have our cookies, how do we do stuff? like send a message If you are a little lost at this point, I am sorry! I would love to write a step by step guide as how to write the code to accomplish this stuff, but its a skill you need to learn as a hacker! I code in a variety of languages, so its not important which language you use, just that you use it properly (if you are coding in PHP or Java, give me a shout, I can help you out). Anyway again I digress, so lets send a message to someone once we are logged in. Now this requires some thought because you have to adhere to the .NET standards (of which I know nothing about so I really had to fumble about with this one). In order to send a message you need to a) be logged in and b) know the friend ID of the user you want to message. One of the MOST IMPORTANT slabs of info that MySpace requires in order to successfully submit a message via HTTP is the VIEWSTATE. Now I had no idea what the hell this was and after hundreds of attempts I eventually worked out that this is an essential part of the .NET framework. If you are interested then view more about it here So to send a message what I did was request the send message page from MySpace (http://messaging.myspace.com/index.cfm?fuseaction=mail.message&friendID=YOURFRIENDID) and scanned for the __VIEWSTATE variable…… here is what I saw.. Hacking MySpace - Part 1, The Basics The View State variable is a Base64 encoded hidden variable. Trust me without submitting it, you will find it just won't workm your message might get the OK but it won't be delivered. You need to get this variable otherwise its all pointless. If now you have worked out the regular expression to extract it (or if you are a lazy swine - here it is) id=\"__VIEWSTATE\" value=\"([\\w/-_].+)\" Now you can submit your message, here is something I sent to myself from myself (another account of course) Hacking MySpace - Part 1, The Basics So the message has been sent? Providing that the annoying Captchaimage didn't crop up and ask for authentication (sorry not cracked this one yet) then your message should have been sent and should look something like this: Hacking MySpace - Part 1, The Basics And if you were to view that message… it would look like Hacking MySpace - Part 1, The Basics We sent a message! this means all we need to do is grab a list of Friend ID's and we can mass message everyone. How do we grab a list of friend ID's from a user? what is the regular expression? how how how? I will show you how in Part 2 (coming soon) - Dave


36 Responses to “Hacking MySpace - The Basics - P1”


  1. 1 CJ May 29th, 2007 at 5:37 pm

    Dave,

    Hey nice idea so far. I don’t care much for myspace but I think you have a interesting project developing here and something that a lot of myspace users would really like to have. What are some of the commercial app names if you know of any, I would like to take a look at those to compare with what you are putting together?

    word
    cj

  2. 2 Stephan Meier Jun 15th, 2007 at 1:13 pm

    Hello Dave

    I was working on a small API for extracting the whole friendslist from a user and found out that it wasn’t easy to get all of them. Getting the first 40 friends wasn’t a problem at all, but after trying to send the needed Post Data to the site it always returned an error. It might have something to do with the __VIEWSTATE parameter, even if I returned it completely.

    I wonder If you will success to get the friendslist in Part two! When will you Post it?

    Best wishes

    Stephan

  3. 3 HYMEN_HACKER Jul 8th, 2007 at 12:52 pm

    IF YOU WANNA HACK BY YOURSELF…THEN WE MAY HELP YOU BY CREATING A LOOK-ALIKE SO CALLED PHISHING YAHOO MAIL / HOTMAIL / MYSPACE / GMail / AOL / FACEBOOK PAGE.. IN JUST 2 MINUTES.

    OUR GROUP IS BUSY ON OTHER PROJECTS, AS SUCH WE ARE UNABLE TO HACK INDIVIDUAL IDS. SO IF YOU NEED A PHISHING SITE, WE CAN HELP YOU OUT. THROUGH THE PHISHING SITE YOU CAN HACK AS MANY IDS YOU WANT TO, JUST BY SENDING THE LINK THROUGH ANY MEANS (OFFLINE/ONLINE/EMAIL) AND ASKING SOMEONE TO SIGN INTO THAT PAGE SAYING SOMETHING INTERESTING WHICH ATTRACTS THE USER. ITS THE PERFECT, SAFE AND EASIEST WAY TO RIP SOMEONES PASS.

    AS SOON AS THE USER SIGNS INTO THE PAGE, YOU GET HIS/HER USERID AND PASS. THRU EMAIL INTO YOUR OWN INBOX. FOR MORE GUIDANCE, I MAY HELP YOU. IF INTERESTED, MAIL ME ON magi_rn@yahoo.com !!!

  4. 4 D. Shanley Jul 9th, 2007 at 1:01 pm

    HYMEN_HACKER

    You are a complete fool. You obviously know nothing and most likely have nothing productive to contribute to this world.
    Please ‘go away’.

  5. 5 C. Sollien Jul 18th, 2007 at 5:47 pm

    HYMEN_HACKER

    ?…. wow….
    Is he for real? Its just really hard to think people are like that. But I’m not about to judge or anything….. maybe he just… ah Dave you are 100% correct and I could not have said it better.

    cj

  6. 6 Jakob Jul 28th, 2007 at 12:47 pm

    This is exactly what I expected to find out after reading the title ng MySpace - The Basics - P1 at theReformed. Thanks for informative article

  7. 7 anon Aug 2nd, 2007 at 4:45 am

    I’m posting here to ask for help relating to this topic. If you don’t feel like helping random people (I’m not even trying to hack anything; I just have a problem with a myspace account and this sounds similar) then you can stop reading here and ignore the rest.

    I’m a competent, somewhat above average-level PC user but I don’t really know anything about hacking; I was just wondering why my myspace account is perpetually in “suspended for 15 mins. due to excessive failed login attempts” mode and why even when I comply with the CAPTCHA request, the CAPTCHA screen just reloads and nothing ever actually happens, and myspace help won’t even bother responding to my requests.

    Does this mean someone is trying to phish my account? And if so, what can I do about it? As I said I have little to no knowledge about how hacking is done, and so any help that could be offered would be extremely appreciated. Please contact me at the e-mail address provided above.

  8. 8 D.Shanley Aug 2nd, 2007 at 9:48 am

    sounds like someone is phishing, although this really isn’t the place for myspace help! sorry.

  9. 9 Daniel Aug 10th, 2007 at 1:55 am

    I couldn’t understand some parts of this article ng MySpace - The Basics - P1 at theReformed, but I guess I just need to check some more resources regarding this, because it sounds interesting.

  10. 10 Showbiz4me Aug 13th, 2007 at 9:00 am

    Found a neat trick on viewing private pictures on myspace something I doubt they can fix. Im going to follow fashion here and assume people viewing this have some sort of knowledge if not google.com knows all ….lol therefore without further addddewwwwww I discovered that myspace uses a few mirror links…whats important about this is that the one I found dealing with profile pictures now allows me to see anyones pictures even THOSE SET TO PRIVATE!!!! why people upload pictures and set them to private is beyyyyyond me..I must send you on an educational journey to give my exploit as i call it would be to simple. The one thing i can say is that it does exist! The one other thing i can say is that don’t hate this suspense lol….nahhh seriously pay close attention to myspace urls..specifically AlbumID= and UserID= combine those with a certain service myspace provides when you click on add/edit photos copy some code hint hint edit some varriables hint hint use your brain (hard part) load your code on a notepade txt file save the file as whatever.html bam there ya go sadly if someones profile is set to private this will not work so as useless as this was reading i hope it was educational again this trick will work if it is not set to private but their pics are set to private…..good luck..oh by the way dave i did what your talking about in your article in with mere javascript..harder to parse friend ids casue getting an entire list on 1 page is difficult…but perl does the trick page by page …no longer have that script but it was kool..so good luck on yours im glad someone is finally doing that

  11. 11 Showbiz4me Aug 13th, 2007 at 9:05 am

    sorry dude i was half sleep when i wrote that lol…spelling is at-ro-shus

  12. 12 jackie Aug 15th, 2007 at 7:05 am

    nmnm

  13. 13 Showbiz4me Aug 17th, 2007 at 12:36 am

    WOW i just tested something yesterday dropped a phishing line in to the ocean of myspace used jotform.com for bait and what I found is that you can still hide the top bar of links

    div table td font {display: none;}

    Home
    |

    Browse
    |

    Search
    |

    Invite
    |

    Film
    |

    Mail
    |

    Blog
    |

    Favorites
    |

    Forum
    |

    Groups
    |

    Events
    |

    Videos
    |

    Music
    |

    Comedy
    |

    Classifieds
    div div table tr td a.navbar, div div table tr td font {display: none;} - - - >

    like so and insert your little link in the most common place people will think to click after they leave your page…Home.. seems myspace now shuts down the victims account requesting them to change their password and advises them that their account was phished..awful nice of them if ya ask me.

  14. 14 switchcode Sep 4th, 2007 at 3:15 pm

    fantastic, inquisitive work dude =)
    ty very much

  15. 15 hiutopor Sep 17th, 2007 at 7:59 pm

    Hi

    Very interesting information! Thanks!

    Bye

  16. 16 rebel son Sep 20th, 2007 at 4:40 pm

    want to check my girlfriend’s myspace

  17. 17 Be A Super Dad Oct 13th, 2007 at 1:56 pm

    Great comment.
    I am sure you’ll read my diary..
    Thank You Again

  18. 18 bobbyg Oct 26th, 2007 at 8:55 am

    I am interested in obtaining my girlfriend’s myspace password. I know her username and was wondering what I can do, as having little to know knowledge of having, to obtain her password and log on to her account. I heard brute forcing was fairly simple, and was wondering if any of you have any suggestions. Thanks for the help!

  19. 19 bobbyg Oct 26th, 2007 at 8:56 am

    little knowledge of hacking* sorry for the typo, its late!

  20. 20 J. Longoria Oct 29th, 2007 at 5:11 am

    @bobbyg & rebel son

    This request falls on deaf ears. Not only does the action you’re referring to violate a handful of laws it is on par with the likes of the now infamous “How do I hack hotmail?” request.

    My suggestion, if you’re in a position where you must be so concerned with your girlfriend’s dealings in private online, you need to get yourself another girlfriend.

  21. 21 Showbiz4me Nov 6th, 2007 at 11:44 pm

    http://allshowbiz.net/myspacesurfer.html

    the safe way of browsing myspace faster? better? noo i wouldn’t say so convience yeah but ya still have get myspace user ID numbers to really use it unless your simply randomly browsing
    try it out. IF i wasn’t so lazy id write a perl script to start parsing ID’s off of friends pages with over 10,000 users and set it to fill an additional drop down menu with them. Then use a javascript automatic setTimeout script to onsubmit(); through the list to add friends send messages or what have you. Sadly myspace does not work well will frames so yet another bridge to cross is created.

  22. 22 Showbiz4me Nov 8th, 2007 at 4:09 am

    dude if anyone has a good code to parse myspace friend ID’s into a select box ive now completed a method of automatically sending out friend request I know I know a real coder would simply google it and learn lol method i have is crude at best not to mention slow and cumbersome and time consuming I was just wondering if anyone thought outside of the box a little better than I have. To visit a page and be able to parse all the id;s from a friends list….I will give away a few tips, tricks, for you in this message though myspace puts your entire friends list into a select box in 3 places 1. when you forward a message to someone, 2. when you forward a frined. 3. when your sending an event invite out but in this case it spilts the list up into groups of 40. The third one is the one im most intrested in …the thrid method is done by parsing the friend id;s from the online myspace messanger view the source when your sending an event invite and you will see the it in the javascript code towards the middle..of the page. well im off to google im sure i’ll find something. Good luck to you all in whatever your trying to do be smart, be safe

  23. 23 D. Shanley Nov 8th, 2007 at 9:06 am

    @showbiz4me

    Extracting a true list of any users friends cannot be done in the way you have mentioned. You need to view a friend list, parse the list for that page and then iterate through the list (pagination) using a series of complicated post backs (MySpace have put this in place to stop day scripters trying their luck). I have actually managed to perform this but it took me a good while to reverse engineer. If you want an hint, follow the JavaScript trail: when you mouse over a “view next 50 friends” see what JS function is called, you will eventually work it out. But if you are not a software engineer you may as well forget it - the process of reading and parsing and iterating through the forms can get complicated.

  24. 24 Showbiz4me Nov 10th, 2007 at 6:35 am

    @ D.Shanley

    yeah I see the function your talking about. Its also commonly used in many other friend adding bots ect…..clever!!! Thank you for that …..The thing thats bothering me now is this cursed HASH CODE!!!!!!! thats the only thing needed to send add to friends request to anyone on myspace I broke the form down line by line took away every javascript on the page the first 30 or so characters in the hash code are always the same they change depending on who your sending a message to so my guess is the only way now to send an add 2 friends request has to be to download the entire page parse out the code and resubmit it

  25. 25 J. Longoria Nov 12th, 2007 at 5:47 pm

    Is this a MD5 hash that you’re aware of? Tried milw0rm’s hash crack @ http://www.milw0rm.com/cracker/insert.php ?

  26. 26 dude Dec 9th, 2007 at 11:25 pm

    Can anyone help me with a myspace password?
    I need to find out if my gf is cheating on me.

  27. 27 bob Dec 13th, 2007 at 1:05 pm

    hack this guy for me, he is a fuck head

    http://www.myspace.com/adrienfrommyspace

  28. 28 ishot2pac Dec 16th, 2007 at 1:22 am

    Why doesn’t someone use this finding to input a friend id… for instance if u know a private page and you know a friend of the private page you could use that id to view the profile

  29. 29 osvaldo Dec 25th, 2007 at 6:47 am

    how can i get my girlfriends e-mail and password on myspace,if u can ,can u help me please,i really appreciate ur time on reading this,her addres bar is :

    http://www.myspace.com/71782607

    my e-mail is azteca_medival@hotmail.com
    send me the information there please
    once again ,thank you

  30. 30 no name Dec 27th, 2007 at 7:28 pm

    how do you hack a friends myspace account… its ma boyfriends i think he may be cheeting on me and i want to find out. please help me
    ty much

  31. 31 melissa Jan 1st, 2008 at 4:01 am

    hey i kinda need help this chick stole my pics and stuff of my myspace and i was wondering if you could help me hack in it so i can like delete my stuff

    freaklepuss@hotmail.com

    please hellp :D thanx

  32. 32 Austin Jan 5th, 2008 at 2:57 am

    WOW! every time some one sees somthing about hacking myspace.. they all come in with there usless comments about, can yu hack myspace and see if my bf, or gf is cheating on me.. we are de codeers ect “hackers” we cant just hack myspace and other programs for the fun and to see if you lamo bf or gf is cheating on you.. give it up plz.. also im now geting into hackingive started with novel, and on campus logs.. if you want to talk im on msn, as cohourt… thx for the info.. and can you send me a message on how to find the program you used to find the “http” ect.. :D :D thx

  33. 33 KirbyGurj Jan 5th, 2008 at 11:32 am

    I think these people requesting hacks to view their “boyfriend’s”/”girlfriend’s” myspace accounts need to be entertained in ways a sex-starved, bastard-son-of-a-hooker, Dungeon and Dragon playing, Mormon virgin, living in a barren tundra of Alaska can only dream of.

    That way they will soon realize there are better things in life than say stalking someone.

    Like the ability to deficate and be proud of what you created.

  34. 34 Brandon Jan 9th, 2008 at 5:13 am

    http://www.myspace.com/sexigreeneyedchic some one please hack this bicths page

  35. 35 J. Longoria Jan 10th, 2008 at 12:28 am

    Because of the sheer amount of idiotic ‘please hack’ requests and other ignorant comments associated with committing criminal acts or servicing self-serving ideals by a small percentage of participants, we’ve decided to shutoff any further commenting to this article.

    We apologize to those of you that have or wish to submit valid questions or argument and encourage you to contact us via our e-mail instead. Thank you for your understanding.

  1. 1 links for 2007-10-18 at The New Reader Pingback on Oct 18th, 2007 at 4:03 am
Comments are currently closed.

May 2007
M T W T F S S
« Apr   Jul »
 123456
78910111213
14151617181920
21222324252627
28293031