Skip to content

Instantly share code, notes, and snippets.

View SamuelScheit's full-sized avatar
:octocat:
Working on Respond.chat

Samuel Scheit SamuelScheit

:octocat:
Working on Respond.chat
View GitHub Profile
var e = (webpackChunkdiscord_app.push([
[""],
{},
(e) => {
m = [];
for (let c in e.c) m.push(e.c[c]);
},
]),
m).find((m) => m?.exports?.default?.isDeveloper !== void 0).exports
e.default = {...e.default,isDeveloper:true}
@SamuelScheit
SamuelScheit / deobfuscate.js
Created January 29, 2023 13:10
Java Class Name Deobfuscater based on Logs/Strings
const { copyFile, mkdir, readdir, readFile, rm, unlink, writeFile } = require("fs/promises");
const { dirname, resolve } = require("path");
async function* getFiles(dir) {
const dirents = await readdir(dir, { withFileTypes: true });
for (const dirent of dirents) {
const res = resolve(dir, dirent.name);
if (dirent.isDirectory()) {
yield* getFiles(res);
} else {
@SamuelScheit
SamuelScheit / discordWebpackModules.js
Last active November 10, 2022 06:33
Discord Webpack Modules
const protect = (theModule) => {
if (theModule.remove && theModule.set && theModule.clear && theModule.get && !theModule.sort)
return null;
if (!theModule.getToken && !theModule.getEmail && !theModule.showToken) return theModule;
const proxy = new Proxy(theModule, {
getOwnPropertyDescriptor: function (obj, prop) {
if (prop === "getToken" || prop === "getEmail" || prop === "showToken") return undefined;
return Object.getOwnPropertyDescriptor(obj, prop);
},
get: function (obj, func) {
[
"SFNSDisplayCondensed-Thin",
"Times New Roman Bold",
"Apple Braille Pinpoint 8 Dot",
"STIXSizFiveSymReg",
"Georgia Bold",
"Bradley Hand Bold",
"GujaratiMT",
"NewYorkItalic",
"PingFang",
@SamuelScheit
SamuelScheit / getSpotifyPlaylist.js
Created October 6, 2020 17:43
Query public spotify playlist
const fetch = require("node-fetch");
async function getPlaylist(playlist) {
var accessToken = await fetch(`https://open.spotify.com/playlist/${playlist}`, {
headers: {
"user-agent":
"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/85.0.4183.121 Safari/537.36",
},
});
accessToken = await accessToken.text();