Skip to content

Instantly share code, notes, and snippets.

@theabbie
Last active November 23, 2020 06:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save theabbie/9eabc5f7173af5cd6c13961672396a45 to your computer and use it in GitHub Desktop.
Save theabbie/9eabc5f7173af5cd6c13961672396a45 to your computer and use it in GitHub Desktop.
Urban Dictionary Vote Spammer
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