openkylin-exploit-db/cve/python/2022/CVE-2023-41105/CVE-2023-41105.py

5 lines
149 B
Python

import os.path
os.path.normpath('hello\x00world')
# this should ouput 'hello\x00world'
os.path.normpath('\x00hello')
# this should output '\x00hello'