Skip to content

Instantly share code, notes, and snippets.

@altacountbabi
Last active August 23, 2023 18:56
Show Gist options
  • Save altacountbabi/b165d2f542d6f49cd9797db6171823f7 to your computer and use it in GitHub Desktop.
Save altacountbabi/b165d2f542d6f49cd9797db6171823f7 to your computer and use it in GitHub Desktop.
memoryjs printsploit
// original: https://forum.wearedevs.net/t/34472
import { T_INT, T_STRING, openProcess, callFunction } from 'memoryjs'
const printOffset = 0x11686E0
const robloxProc = openProcess('Windows10Universal.exe')
const printFunc = (printOffset - 0x400000) + robloxProc.modBaseAddr
const print = (message: string) => callFunction(robloxProc.handle, [ { type: T_INT, value: 0 }, { type: T_STRING, value: message } ], T_INT, printFunc)
const info = (message: string) => callFunction(robloxProc.handle, [ { type: T_INT, value: 1 }, { type: T_STRING, value: message } ], T_INT, printFunc)
const warn = (message: string) => callFunction(robloxProc.handle, [ { type: T_INT, value: 2 }, { type: T_STRING, value: message } ], T_INT, printFunc)
const error = (message: string) => callFunction(robloxProc.handle, [ { type: T_INT, value: 3 }, { type: T_STRING, value: message } ], T_INT, printFunc)
export const dll = {
print,
info,
warn,
error
}
@Alawapr
Copy link

Alawapr commented Aug 16, 2023

genius

@TERIHAX
Copy link

TERIHAX commented Aug 23, 2023

im gonna blow

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment