🏝️ Feature Request:
Mclaren3 opened this issue · comments
Contact Details
Gamemode
Crypto Hack
Requested function
All answers correct, e.g Q1 is skipped as the exploit does it for us.
Any existing code
async function getName(authToken) { const response = await fetch('https://api.blooket.com/api/users/verify-token?token=JWT+' + authToken); const data = await response.json();
return data.name
};
async function addCurrencies() { const tokens = Number(prompt('How many tokens do you want to add to your account? (10000 daily)')); const myToken = localStorage.token.split('JWT ')[1];
if (tokens > 10000) {
alert('You can add up to 10000 tokens daily.')
}
const response = await fetch('https://api.blooket.com/api/users/add-rewards', {
method: "PUT",
headers: {
"referer": "https://www.blooket.com/",
"content-type": "application/json",
"authorization": localStorage.token
},
body: JSON.stringify({
addedTokens: tokens,
addedXp: 300,
name: await getName(myToken)
})
});
if (response.status == 200) {
alert(`${tokens} tokens and 300 XP added to your account!`);
} else {
alert('An error occured.');
};
};
addCurrencies();
Code of Conduct
- I agree to follow this project's Code of Conduct