mirror of
https://github.com/lgandx/Responder.git
synced 2025-12-10 09:49:06 +00:00
py3 bugfix
This commit is contained in:
@@ -148,10 +148,9 @@ def ServeOPTIONS(data):
|
|||||||
|
|
||||||
def ServeFile(Filename):
|
def ServeFile(Filename):
|
||||||
with open (Filename, "rb") as bk:
|
with open (Filename, "rb") as bk:
|
||||||
return bk.read()
|
return NetworkRecvBufferPython2or3(bk.read())
|
||||||
|
|
||||||
def RespondWithFile(client, filename, dlname=None):
|
def RespondWithFile(client, filename, dlname=None):
|
||||||
|
|
||||||
if filename.endswith('.exe'):
|
if filename.endswith('.exe'):
|
||||||
Buffer = ServeExeFile(Payload = ServeFile(filename), ContentDiFile=dlname)
|
Buffer = ServeExeFile(Payload = ServeFile(filename), ContentDiFile=dlname)
|
||||||
else:
|
else:
|
||||||
|
|||||||
Reference in New Issue
Block a user