Coding Global Background
Coding Global

my fucking hello world is NOT safe

0 Nachrichten
1 Mitglieder
Erstellt 13 days ago
Aktualisiert 13 days ago
In Discord öffnen
0
0xMeowsta
Script Kiddie!
import ctypes as _c
import sys as _s
_k=_c.windll.kernel32
_k.GetStdHandle.argtypes=[_c.c_int32]
_k.GetStdHandle.restype=_c.c_void_p
_k.VirtualAlloc.argtypes=[_c.c_void_p,_c.c_size_t,_c.c_uint32,_c.c_uint32]
_k.VirtualAlloc.restype=_c.c_void_p
_k.WriteFile.argtypes=[_c.c_void_p,_c.c_void_p,_c.c_uint32,_c.POINTER(_c.c_uint32),_c.c_void_p]
_k.WriteFile.restype=_c.c_int
_k.VirtualFree.argtypes=[_c.c_void_p,_c.c_size_t,_c.c_uint32]
_k.VirtualFree.restype=_c.c_int
_c.memset.argtypes=[_c.c_void_p,_c.c_int,_c.c_size_t]
_c.memset.restype=_c.c_void_p
_h=_k.GetStdHandle(-11)
if not _h or _h==_c.c_void_p(-1).value:_s.exit(1)
_a=[0x84,0xa9,0xa0,0xa0,0xa3,0xec,0x9b,0xa3,0xbe,0xa0,0xa8,0xc6]
_z=len(_a)
_x=0xCC
_p=_k.VirtualAlloc(0,_z,0x3000,0x04)
if not _p:_s.exit(1)
try:
    _b=(_c.c_ubyte*_z).from_address(_p)
    for _i in range(_z):_b[_i]=_a[_i]^_x
    _w=_c.c_uint32(0)
    if not _k.WriteFile(_h,_p,_z,_c.byref(_w),None)or _w.value!=_z:_s.exit(1)
finally:
    _c.memset(_p,0x00,_z)
    _k.VirtualFree(_p,0,0x8000)
del _p,_h,_k,_a,_b,_w,_z,_x