From 105a6af88597015e23ddc5b3ae76c648869bcd96 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adolfo=20G=C3=B3mez=20Garc=C3=ADa?= Date: Fri, 18 Dec 2020 11:08:05 +0100 Subject: [PATCH] fixed windows access scripts --- server/src/uds/transports/RDP/scripts/windows/direct.py | 4 ++++ .../uds/transports/RDP/scripts/windows/direct.py.signature | 2 +- server/src/uds/transports/RDP/scripts/windows/tunnel.py | 2 +- .../uds/transports/RDP/scripts/windows/tunnel.py.signature | 2 +- 4 files changed, 7 insertions(+), 3 deletions(-) diff --git a/server/src/uds/transports/RDP/scripts/windows/direct.py b/server/src/uds/transports/RDP/scripts/windows/direct.py index ac7a3416..589d6db7 100644 --- a/server/src/uds/transports/RDP/scripts/windows/direct.py +++ b/server/src/uds/transports/RDP/scripts/windows/direct.py @@ -35,6 +35,10 @@ theFile = sp['as_file'].format(# @UndefinedVariable ) filename = tools.saveTempFile(theFile) executable = tools.findApp('mstsc.exe') + +if executable is None: + raise Exception('Unable to find mstsc.exe. Check that path points to your SYSTEM32 folder') + subprocess.Popen([executable, filename]) tools.addFileToUnlink(filename) diff --git a/server/src/uds/transports/RDP/scripts/windows/direct.py.signature b/server/src/uds/transports/RDP/scripts/windows/direct.py.signature index 6c8ee21d..95b49bb5 100644 --- a/server/src/uds/transports/RDP/scripts/windows/direct.py.signature +++ b/server/src/uds/transports/RDP/scripts/windows/direct.py.signature @@ -1 +1 @@ -LHhfEiFD08vGqLuQT4ebXrETq9cLqDWff2CYhPeUblr6gkqtEbVrU7T2iaOGjvAfriIdd0lgLDJ/hWQt/5KE6tMkl/cBBwG3t48wRpygyVC/5cz/M+1kYhc2TBzSB4n2SNMd777uhNoPyfu1sZMXhiQhNNtUJr8LKPOdzc20qyfjPKP48nSc/exWccVL62RmfOm68uD/7ClwWzUIC3xKW52Eeqzeli8SJpqhKGTDCMkT3cBIPN07xLe3wG7Iy7bEg7zE4IiuS9pm8fpg7paX9+/Sj8wksmaPr/+Q+2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SB+sZpw= \ No newline at end of file diff --git a/server/src/uds/transports/RDP/scripts/windows/tunnel.py b/server/src/uds/transports/RDP/scripts/windows/tunnel.py index 4e42283e..1b8b269f 100644 --- a/server/src/uds/transports/RDP/scripts/windows/tunnel.py +++ b/server/src/uds/transports/RDP/scripts/windows/tunnel.py @@ -40,7 +40,7 @@ theFile = sp['as_file'].format(# @UndefinedVariable filename = tools.saveTempFile(theFile) executable = tools.findApp('mstsc.exe') if executable is None: - raise Exception('Unable to find mstsc.exe') + raise Exception('Unable to find mstsc.exe. Check that path points to your SYSTEM32 folder') try: key = wreg.OpenKey(wreg.HKEY_CURRENT_USER, 'Software\Microsoft\Terminal Server Client\LocalDevices', 0, wreg.KEY_SET_VALUE) # @UndefinedVariable diff --git a/server/src/uds/transports/RDP/scripts/windows/tunnel.py.signature b/server/src/uds/transports/RDP/scripts/windows/tunnel.py.signature index 13b2a0a5..5465cffb 100644 --- a/server/src/uds/transports/RDP/scripts/windows/tunnel.py.signature +++ b/server/src/uds/transports/RDP/scripts/windows/tunnel.py.signature @@ -1 +1 @@ -E4+UYzeFHbQsU1VeQ/FYTcTaaE0eW4vTa2XgGd4HBaP5dzl9qgTBgy2MxmeCL5EOWOq1mZf38JkOmFi1+fu18oeINEgKW9mwbxJ1GABX2DUkhNscM2jF7nfMgPlBk4/QkfcN5PIj6eolE+A7XiwbfweMVz+UDlGrz8e4k8tsr55PV+T7yntXKf0506fSzhBzthblKCIWJGARKGGJKhBrvEFusdsiPLaNcXn2Ahu1TZP6uCT4VWu819cMD3KP8VOSzvuX2X0fyK0QE856AAKUMNzc6vA5uQUKmGGSAJ8nEyue+GyVcdOltFAUzNW1s0Mcsff3KOHBUa4G1iZ7sNIg4deofzfUpbVj9auOLfYe3G/odUtjZQZcDz7a5n1f7wgUq1C0K28a1BsNlU1Bej5fCbCxaj3TANyOzGEOzwFinYKOVKvA2lzNFwdLDRhvRPpzZV9nOZ6VlUojcQu9dn3lIFDAf5CBtfKju/t3BpOLTQR9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