i have trouble with python script to send packet. I already use socket.send like this :
import socket
try:
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.settimeout(10)
s.connect(("10.10.0.250", 8010))
print(s)
while True:
try:
s.send(b'1b02fa031b03c8')
reply = s.recv(131072)
if not reply:
break
print("recvd: ", reply)
except KeyboardInterrupt:
print("bye")
break
s.close()
except socket.error as socketerror:
s.close()
print("Error: ", socketerror)
but show error : Time out. I have make sure that 10.10.0.250 is connected to my laptop.
send string i already try at application call packetsender, use this tools all workwell.
The question is WHAT SCRIPT PYTHON Equivalent with use in packetsender?
Thanks anyway. Regards
I have answer about this :
packet = b'\x1b\x02\xfa\x03\x1b\x03\xc8'
s.send(packet)
Thanks all