
Provides a ctypes wrapper for the splice syscall to enable exploitation of CVE-2026-31431 on Python versions below 3.10, tested on Python 3.7.3.
fork from: https://github.com/theori-io/copy-fail-CVE-2026-31431/blob/main/copy_fail_exp.py
Python versions below 3.10 does not have os.splice implementation.
Ctypes python wrapper for splice that can work on old Python versions
Tested on python 3.7.3