Program that test username and password in authorization required server? [closed]

StackOverflow https://stackoverflow.com/questions/21724553

  •  10-10-2022
  •  | 
  •  

Pregunta

I do: open start menu, run, nameofserver, then I get this: enter image description here

How to pass two strings (user name and password), put them on the form login and then simulate an enter press? If I grant login, stop to test, if not continue to put the strings and try to enter.

How can I do that through a program in C, C++ or C#? Obviously is only academic, thanks in advance.

¿Fue útil?

Solución

Maybe:

  • enumerate the windows on the system
  • find the one with the text "Windows Security"
  • find it's children's HWND and search for the text fields
  • SetWindowText (HWND, etc ... )
  • Send a message to the "Ok" button

Tell us if it works or not ...

Licenciado bajo: CC-BY-SA con atribución
No afiliado a StackOverflow
scroll top