mirror of
https://github.com/lgandx/Responder.git
synced 2025-08-13 18:17:11 -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):
|
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:
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue