Prodigy-Hacking / ProdigyMathGameHacking

Prodigy Hacking: Hacking for the right reasons. | Questions? Ask on our Discord. https://discord.gg/XQDfbfq
https://prodigyhacking.com
Other
17 stars 10 forks source link

Arena Points Hack Not working #101

Closed Lumin0S-ux closed 4 years ago

Lumin0S-ux commented 4 years ago

I put in the hack and it returned: 1 Uncaught SyntaxError: Unexpected token import VM162:1

Lumin0S-ux commented 4 years ago

The script I used was: import fetch from "node-fetch"; import data from "../config.json"; import chalk from "chalk"; import { RequestInit } from "node-fetch" const main = async () => { foo: for (const _ in [2]) { const users: { [index: string]: { token: string; userID: number }; } = {}; const fetchJson = async (url: string, opts?: RequestInit | undefined) => await (await fetch(url, opts as any)).json(); if (!data.every(x => x.username && x.password)) return console.log("Malformed config.json."); const gameStatus: { data: { gameClientVersion: string }; } = await fetchJson("https://api.prodigygame.com/game-api/status"); console.log("Game status loaded."); const hack = async ( seasonID: number, username: string, password: string ): Promise => { const user = users[username]; if (!user) return "User not found."; const win = await ( await fetch( https://api.prodigygame.com/leaderboard-api/season/${seasonID}/user/${user.userID}/pvp?userID=${user.userID}, { headers: { authorization: Bearer ${user.token}, "content-type": "application/x-www-form-urlencoded; charset=UTF-8", }, body: seasonID=${seasonID}&action=win, method: "POST", } ) ).text(); if (win === "") return "Failed to increase."; const winJson: | { code: string; points: undefined } | { points: number; code: undefined } = JSON.parse(win); if (winJson.code === "ForbiddenError") { process.exit(1); } const rank: { rank: number } = await fetchJson( https://api.prodigygame.com/leaderboard-api/season/${seasonID}/user/${user.userID}/rank?userID=${user.userID}, { headers: { authorization: Bearer ${user.token}, }, } ); return ${${winJson.points} Points (+100).padEnd(20)} - Rank: ${ rank.rank }; }; for (const account of data) { const login = await fetch( "https://api.prodigygame.com/game-auth-api/v1/login", { method: "POST", headers: { "Content-type": "application/json", }, body: JSON.stringify({ username: account.username, password: account.password, clientVersion: gameStatus.data.gameClientVersion, }), } ); if (!login.ok) { console.log( User ${account.username} failed to login: Invalid Credentials. ); break; } const user: { token: string; userID: number; level: number; } = await login.json(); users[account.username] = user; console.log("Logged in."); const lb: { seasonID: number } = await fetchJson( https://api.prodigygame.com/leaderboard-api/user/${user.userID}/init?userID=${user.userID}, { headers: { authorization: Bearer ${user.token}, }, } ); console.log("Leaderboard loaded."); const char = await fetchJson( https://api.prodigygame.com/game-api/v2/characters/${user.userID}, { headers: { authorization: Bearer ${user.token}, }, } ); console.log(Hack starting for user ${account.username}.); const hackify = async () => console.log( ${[${account.username}].padEnd(22)} ${await hack( lb.seasonID, account.username, account.password )} ); hackify(); setInterval(hackify, 60500); } } }; main();

ghost commented 4 years ago

It's not a console hack.

You need to run it with npm in your command line

ghost commented 4 years ago

It's not a console hack.

You need to run it with npm in your command line

What's an npm?

ArcerionDev commented 4 years ago

Like, your terminal. As in crosh or Command Prompt.

On Sat, Mar 28, 2020 at 2:44 PM Diveodile notifications@github.com wrote:

It's not a console hack.

You need to run it with npm in your command line

What's an npm?

— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/PatheticMustan/ProdigyMathGameHacking/issues/101#issuecomment-605502330, or unsubscribe https://github.com/notifications/unsubscribe-auth/AOQ7MLH2XMVU5AZW253LWHLRJZAP5ANCNFSM4LVF7EFA .

Lumin0S-ux commented 4 years ago

okkkk