mirror of
https://github.com/lgandx/Responder.git
synced 2025-12-09 06:01:29 +00:00
py3 bugfix
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user