Data hosted with ♥ by
Pastebin.com
-
Download Raw
-
See Original
#!/usr/bin/env python
from
socket
import
*
from
struct
import
*
s
=
socket
(
AF_INET
,
SOCK_STREAM
)
s.
connect
(
(
'192.168.66.11'
,
2998
)
)
dato
=
s.
recv
(
1024
)
print
dato
num
=
unpack
(
"<I"
,
dato
)
[
0
]
print
num
numstr
=
str
(
num
)
s.
send
(
numstr
)
print
s.
recv
(
1024
)
s.
close
(
)