mirror of https://github.com/n1nj4sec/pupy.git
There is no sense to _encode_ garbage
This commit is contained in:
parent
437d443339
commit
1df97b38b3
|
@ -216,7 +216,7 @@ class PupyJob(object):
|
|||
for m in self.pupymodules:
|
||||
res+=m.formatter.format_section(str(m.client))
|
||||
gv=m.stdout.getvalue()
|
||||
res+=gv.encode('utf8', errors="replace")
|
||||
res+=gv.decode('utf8', errors="replace")
|
||||
res+="\n"
|
||||
m.stdout.truncate(0)
|
||||
return res
|
||||
|
|
Loading…
Reference in New Issue