- copy all files from this gist
- make a folder called "src"
- put index.ts in the src folder
- open terminal and run
npm i - run
npm i -g typscript - then run
tscin the terminal - then run
node .in the terminal - check for file called "deobfuscated.js"
- have fun reversing.
This file contains hidden or 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
| import * as parser from "@babel/parser"; | |
| import * as t from "@babel/types"; | |
| import traverse from "@babel/traverse"; | |
| import generate from "@babel/generator"; | |
| import got from "got"; | |
| import atob from "atob"; | |
| import { writeFileSync } from "fs"; | |
| const decodePXString = (encoded: string): string => { | |
| for (var i = atob(encoded), a = "ZSA8q7L", c = "", u = 0; u < i.length; ++u) { |
This file contains hidden or 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 myHeaders = new Headers(); | |
| myHeaders.append("Content-Type", "application/json"); | |
| var raw = JSON.stringify({ | |
| "email": "pat1001", | |
| "password": "password123" | |
| }); | |
| var requestOptions = { | |
| method: 'POST', |