From 1551fa8efa089352e0f0d946afd436d01193c392 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Wed, 23 Sep 2015 17:39:24 +0200 Subject: [PATCH] Updated client to work fine on windows 32 bits --- client/src/UDSClient.py | 7 ++++--- server/src/uds/transports/RDP/scripts/windows/direct.py | 2 +- server/src/uds/transports/RDP/scripts/windows/tunnel.py | 2 +- 3 files changed, 6 insertions(+), 5 deletions(-) diff --git a/client/src/UDSClient.py b/client/src/UDSClient.py index 1db025065..77227460d 100755 --- a/client/src/UDSClient.py +++ b/client/src/UDSClient.py @@ -149,12 +149,13 @@ class UDSClient(QtGui.QMainWindow): script = data['result'].decode('base64').decode('bz2') - six.exec_(script, globals(), {'parent': self}) - self.ui.progressBar.setValue(100) - self.showMinimized() + # self.showMinimized() QtCore.QTimer.singleShot(3000, self.endScript) + self.hide() + + six.exec_(script, globals(), {'parent': self}) except RetryException as e: self._updateProgressBar(5, 80) diff --git a/server/src/uds/transports/RDP/scripts/windows/direct.py b/server/src/uds/transports/RDP/scripts/windows/direct.py index dcb5ef861..6274dbd18 100644 --- a/server/src/uds/transports/RDP/scripts/windows/direct.py +++ b/server/src/uds/transports/RDP/scripts/windows/direct.py @@ -17,7 +17,7 @@ theFile = '''{m.r.as_file}'''.format(password=win32crypt.CryptProtectData(six.bi filename = tools.saveTempFile(theFile) executable = tools.findApp('mstsc.exe') -subprocess.call([executable, filename]) +subprocess.Popen([executable, filename]) tools.addFileToUnlink(filename) # QtGui.QMessageBox.critical(parent, 'Notice', filename + ", " + executable, QtGui.QMessageBox.Ok) diff --git a/server/src/uds/transports/RDP/scripts/windows/tunnel.py b/server/src/uds/transports/RDP/scripts/windows/tunnel.py index e722ea58c..2762bc661 100644 --- a/server/src/uds/transports/RDP/scripts/windows/tunnel.py +++ b/server/src/uds/transports/RDP/scripts/windows/tunnel.py @@ -30,7 +30,7 @@ executable = tools.findApp('mstsc.exe') if executable is None: raise Exception('Unable to find mstsc.exe') -subprocess.call([executable, filename]) +subprocess.Popen([executable, filename]) tools.addFileToUnlink(filename) # QtGui.QMessageBox.critical(parent, 'Notice', filename + ", " + executable, QtGui.QMessageBox.Ok)