Updated to support hax 2.5, edited README, supports devkitpro 45, etc
This commit is contained in:
22
ninjhax/tools/client.py
Normal file
22
ninjhax/tools/client.py
Normal file
@@ -0,0 +1,22 @@
|
||||
#!/usr/bin/python
|
||||
|
||||
import socket
|
||||
import sys
|
||||
|
||||
if len(sys.argv) < 3:
|
||||
print "python client.py <ip> <file>\n"
|
||||
sys.exit(0)
|
||||
|
||||
port = 80
|
||||
host = sys.argv[1]
|
||||
pfile = sys.argv[2]
|
||||
|
||||
f = open(pfile, "rb")
|
||||
buf = f.read()
|
||||
f.close()
|
||||
|
||||
s = socket.socket()
|
||||
s.connect((host, port))
|
||||
sent = s.send(buf)
|
||||
print "Sent %d bytes\n" % sent
|
||||
s.close()
|
||||
Reference in New Issue
Block a user