This commit is contained in:
Miroslav Stampar 2026-03-13 14:23:12 +01:00
parent 3fe094a4c3
commit 7ad4d6760b
3 changed files with 4 additions and 4 deletions

View file

@ -153,7 +153,7 @@ class Takeover(Abstraction, Metasploit, ICMPsh, Registry):
if os.path.exists(filename):
try:
with openFile(filename, "wb") as f:
f.write("1")
f.write(b"1")
except IOError as ex:
errMsg = "there has been a file opening/writing error "
errMsg += "for filename '%s' ('%s')" % (filename, getSafeExString(ex))