pointers.py icon indicating copy to clipboard operation
pointers.py copied to clipboard

don't do this 😳️

Open qexat opened this issue 3 years ago • 2 comments

don't do this

import ctypes
ctypes.string_at(0)

i warned u

~~it just causes a segfault dw, you can also do it by typing ctypes.cast(1, ctypes.py_object)~~

qexat avatar Aug 13 '22 10:08 qexat

Jokes aside you should put a segfault in examples since it's a feature :sunglasses:

qexat avatar Aug 13 '22 10:08 qexat

i think this actually just raises an OSError on windows

you can probably do it cross platform like this

from pointers import _

ptr = _&"test"
ptr ^= "fgjdl;kgjsdflk;jgsl;dkjfglk;sdglk;sdfjkg"  # buffer overflow

ZeroIntensity avatar Aug 13 '22 15:08 ZeroIntensity