Porting a Python-based exploit