Skip to content

Instantly share code, notes, and snippets.

@patrickbrophy
patrickbrophy / deobfuscator.ts
Created April 20, 2021 13:07
PX 6.5.0 String Deobfuscator
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) {
@patrickbrophy
patrickbrophy / README.md
Last active December 4, 2021 05:51
PX 7.2.4 String Deobfuscator

Usage

  1. copy all files from this gist
  2. make a folder called "src"
  3. put index.ts in the src folder
  4. open terminal and run npm i
  5. run npm i -g typscript
  6. then run tsc in the terminal
  7. then run node . in the terminal
  8. check for file called "deobfuscated.js"
  9. have fun reversing.
@patrickbrophy
patrickbrophy / madhacksbackend-api.md
Created March 5, 2023 05:39
madhacksbackend-api

API Docs

POST /register

Request Body
{
  "username": "...",
  "password": "..."
}
var myHeaders = new Headers();
myHeaders.append("Content-Type", "application/json");
var raw = JSON.stringify({
"email": "pat1001",
"password": "password123"
});
var requestOptions = {
method: 'POST',