Skip to content

Instantly share code, notes, and snippets.

@elpatron68
Created November 28, 2022 18:51
Show Gist options
  • Save elpatron68/984855505d84abd0c79cb81ab83aa8a5 to your computer and use it in GitHub Desktop.
Save elpatron68/984855505d84abd0c79cb81ab83aa8a5 to your computer and use it in GitHub Desktop.
Reveal Teamviewer Quicksupport credentials and save them to disk
#include <Constants.au3>
#include <FileConstants.au3>
; Run("TeamViewerQS.exe")
WinWait("TeamViewer QuickSupport")
WinActivate("TeamViewer QuickSupport")
Sleep(5000)
Local $i = 0
While $i <= 10
Local $tText=WinGetText("TeamViewer QuickSupport")
If StringInStr($tText, "Bereit zum Verbinden") Then
ExitLoop
EndIf
$i = $i + 1
Sleep(1000)
WEnd
If StringInStr($tText, "Bereit zum Verbinden") Then
Local Const $sFilePath = @TempDir & "\tv.txt"
Local $hFileOpen = FileOpen($sFilePath, $FO_OVERWRITE)
FileWrite($hFileOpen, $tText)
FileClose($hFileOpen)
EndIf
; ShellExecute("notepad.exe", $sFilePath)
Exit
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment