mirror of
https://github.com/Melon-Bread/EagleJab
synced 2024-11-24 20:28:19 -05:00
initial commit
This commit is contained in:
parent
2f6910f0e1
commit
1c70453491
21
FalconPunch.py
Normal file
21
FalconPunch.py
Normal file
@ -0,0 +1,21 @@
|
|||||||
|
import os, socket, sys, struct
|
||||||
|
|
||||||
|
statinfo = os.stat(sys.argv[1])
|
||||||
|
fbiinfo = struct.pack('!q', statinfo.st_size)
|
||||||
|
p = sys.argv[1]
|
||||||
|
dsip = raw_input('Enter IP: ')
|
||||||
|
|
||||||
|
file = open(p, "rb")
|
||||||
|
sock = socket.socket()
|
||||||
|
sock.connect((dsip, 5000))
|
||||||
|
|
||||||
|
sock.send(fbiinfo)
|
||||||
|
|
||||||
|
while True:
|
||||||
|
chunk = file.read(16384)
|
||||||
|
if not chunk:
|
||||||
|
break # EOF
|
||||||
|
sock.sendall(chunk)
|
||||||
|
|
||||||
|
sock.close()
|
||||||
|
sys.exit()
|
Loading…
Reference in New Issue
Block a user