mirror of
https://github.com/lgandx/Responder.git
synced 2025-07-16 10:02:53 -07:00
py3 bugfix
This commit is contained in:
parent
d6f4911eb4
commit
5e39c91a05
1 changed files with 1 additions and 2 deletions
|
@ -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:
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue