Last active
November 23, 2020 06:40
-
-
Save theabbie/9eabc5f7173af5cd6c13961672396a45 to your computer and use it in GitHub Desktop.
Urban Dictionary Vote Spammer
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var axios = require("axios"); | |
var def_id = 14870296; //Find your Definition ID | |
(async function() { | |
var cookie = await axios({ | |
url: 'https://api.urbandictionary.com/v0/uncacheable?ids='+def_id, | |
withCredentials: true | |
}); | |
await axios({ | |
url: 'https://api.urbandictionary.com/v0/vote', | |
method: 'OPTIONS', | |
headers: { | |
'access-control-request-method': 'POST', | |
'access-control-request-headers': 'content-type' | |
} | |
}); | |
await axios({ | |
url: 'https://api.urbandictionary.com/v0/vote', | |
method: 'POST', | |
data: {"defid":def_id,"direction":"up"}, | |
headers: { | |
cookie: cookie.headers["set-cookie"][0].split(";")[0] | |
} | |
}); | |
})(); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment