Minor patch (fixes #3795)

This commit is contained in:
Miroslav Stampar
2019-07-04 11:07:25 +02:00
parent 3676cef79b
commit f9489c3352
4 changed files with 5 additions and 3 deletions

View File

@@ -10,6 +10,7 @@ import os
from lib.core.common import Backend
from lib.core.common import getSafeExString
from lib.core.common import isStackingAvailable
from lib.core.common import openFile
from lib.core.common import readInput
from lib.core.common import runningAsAdmin
from lib.core.data import conf
@@ -137,7 +138,7 @@ class Takeover(Abstraction, Metasploit, ICMPsh, Registry):
if os.path.exists(filename):
try:
with open(filename, "wb") as f:
with openFile(filename, "wb") as f:
f.write("1")
except IOError as ex:
errMsg = "there has been a file opening/writing error "