Last active
August 23, 2023 18:56
-
-
Save altacountbabi/b165d2f542d6f49cd9797db6171823f7 to your computer and use it in GitHub Desktop.
memoryjs printsploit
This file contains 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
// 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 | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
genius