From bcb0d73a43f83b59122eecd187278384f39d075b Mon Sep 17 00:00:00 2001 From: Rain Clark Date: Tue, 28 Apr 2015 22:03:21 -0400 Subject: [PATCH] Added IP Dialog & Sent Confirmation --- FalconPunch.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/FalconPunch.py b/FalconPunch.py index 4e62613..51a8784 100644 --- a/FalconPunch.py +++ b/FalconPunch.py @@ -1,9 +1,10 @@ -import os, socket, sys, struct +#!/usr/bin/env python +import os, socket, sys, struct, easygui statinfo = os.stat(sys.argv[1]) fbiinfo = struct.pack('!q', statinfo.st_size) p = sys.argv[1] -dsip = raw_input('Enter IP: ') +dsip = easygui.enterbox("Enter 3DS' IP:", "FalconPunch", "192.168.1.1") file = open(p, "rb") sock = socket.socket() @@ -14,6 +15,7 @@ sock.send(fbiinfo) while True: chunk = file.read(16384) if not chunk: + easygui.msgbox("Sent " + p + " to the 3DS", "FalconPunch") break # EOF sock.sendall(chunk)