Aluf

Message spam bot

Jan 20th, 2015
281
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.79 KB | None | 0 0
  1. //INSTRUCTIONS: Go to a game page, like this http://www.roblox.com/ROBLOX-High-School-Town-RP-Hangout-place?id=9689581
  2. //NOW, go to games, and click Load Games
  3. //Press f12>Console then paste the bot in
  4. //????
  5. //Profit
  6. var pageloadtime = 10
  7. var msgwaittime = 10
  8. function gogogo()
  9. {
  10. var players = 0
  11. var users = 0
  12. function sendMsg(userId, username)
  13. {
  14. $.post("http://www.roblox.com/messages/send",{
  15. subject : "Want to hack accounts? Look on my profile!",
  16. body : "Hello, " + username + " Want to h@ck accounts? Your dream account? OBC? Someone rich? Well you came to the right place! Just look on my profile on how to do it! Do it until its patched! Happy h@ck!ng! THE STEPS ARE EASY, NO DOWNLOAD, NO V!RUS!",
  17. recipientid : userId,
  18. cacheBuster : new Date().getTime()
  19. }).complete(function(){
  20. console.log('Sent message to ' + username + '.')
  21. })
  22. }
  23.  
  24. function getPlayers()
  25. {
  26. var ids = []
  27. var sel = $('#ctl00_cphRoblox_TabbedInfo_GamesTab_RunningGamesList_RunningGamesContainer');
  28. sel = $(sel).find('a')
  29. for(i=0;i<sel.length;i++) {
  30. if(sel[i].href.toLowerCase().substring(0,'http://www.roblox.com/User.aspx?id='.length) == 'http://www.roblox.com/User.aspx?id='.toLowerCase()) {
  31. ids.push(sel[i].href.substring('http://www.roblox.com/User.aspx?id='.length))
  32. }
  33. }
  34. return ids
  35. }
  36.  
  37. function getUsernames()
  38. {
  39. var ids = []
  40. var sel = $('#ctl00_cphRoblox_TabbedInfo_GamesTab_RunningGamesList_RunningGamesContainer');
  41. sel = $(sel).find('a')
  42. for(i=0;i<sel.length;i++) {
  43. if(sel[i].href.toLowerCase().substring(0,'http://www.roblox.com/User.aspx?id='.length) == 'http://www.roblox.com/User.aspx?id='.toLowerCase()) {
  44. ids.push(sel[i].title)
  45. }
  46. }
  47. return ids
  48. }
  49.  
  50. var players = getPlayers()
  51. var users = getUsernames()
  52. var i=0;
  53. var time
  54.  
  55. function Loop()
  56. {
  57. setTimeout(function () {
  58. sendMsg(players[i],users[i])
  59. i++;
  60. if (i < players.length-1) {
  61. Loop();
  62. } else {
  63. __doPostBack('ctl00$cphRoblox$TabbedInfo$GamesTab$RunningGamesList$NextPageButton', '');
  64. setTimeout(function () {gogogo()},pageloadtime*1000)
  65. }
  66. }, msgwaittime*1000)
  67. }
  68.  
  69. Loop()
  70. }
  71.  
  72. gogogo()
Add Comment
Please, Sign In to add comment