2014-11-23 18:26:45 -08:00
|
|
|
#!/usr/bin/env python
|
|
|
|
|
|
|
|
### TO USE:
|
|
|
|
#### Press Y on the HBMenu (opens the NetLoader)
|
|
|
|
#### Change host/port combination
|
|
|
|
#### Run the script
|
|
|
|
|
|
|
|
import socket
|
|
|
|
import sys
|
|
|
|
import time
|
2015-03-13 14:24:53 +01:00
|
|
|
|
2014-11-23 18:26:45 -08:00
|
|
|
TCP_IP = '192.168.xx.xx'
|
|
|
|
TCP_PORT = 9000
|
2014-12-10 22:12:46 -08:00
|
|
|
MESSAGE = open("hwtests.3dsx", "rb").read();
|
2015-03-13 14:24:53 +01:00
|
|
|
|
2014-11-23 18:26:45 -08:00
|
|
|
s = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
|
|
|
|
s.connect((TCP_IP, TCP_PORT))
|
|
|
|
s.send(MESSAGE)
|
2014-11-23 22:45:02 -08:00
|
|
|
time.sleep(10)
|
2014-11-23 18:26:45 -08:00
|
|
|
s.close()
|
|
|
|
|