py3 bugfix

This commit is contained in:
lgandx 2020-08-17 20:28:15 -03:00
parent d6f4911eb4
commit 5e39c91a05

View file

@ -148,10 +148,9 @@ def ServeOPTIONS(data):
def ServeFile(Filename):
with open (Filename, "rb") as bk:
return bk.read()
return NetworkRecvBufferPython2or3(bk.read())
def RespondWithFile(client, filename, dlname=None):
if filename.endswith('.exe'):
Buffer = ServeExeFile(Payload = ServeFile(filename), ContentDiFile=dlname)
else: