dcsimg


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Page 1 of 2 12 LastLast
Results 1 to 15 of 21

Thread: How to reveal hidden passwords behind asterisks in Windows XP

  1. #1
    Join Date
    Jan 2007
    Posts
    22

    Question How to reveal hidden passwords behind asterisks in Windows XP

    It gives me great pleasure to join this wonderful forum and posting my first thread to ask about how to reavel hidden passwords behind asterisks on windows XP using a Visual Basic 6 Code

    I can do it under windows 98/me but I have seen some software like this working on windows XP

    Can anyone help me to write a code using some API Functions to do this task under windows XP ?

  2. #2
    Join Date
    Jan 2007
    Posts
    22
    34 Views ,
    0 replies !

    what a pity!

    I'm new member in the forum no one helped me !

  3. #3
    Join Date
    Aug 2004
    Location
    Orange, California
    Posts
    1,263
    Try this link, it might get you started.
    http://www.freevbcode.com/ShowCode.Asp?ID=783

  4. #4
    Join Date
    Jan 2007
    Posts
    22
    Thank U 4 replying
    (sorry my English is bad)

    but this code does not work on windows XP !!

    I want a code works with Windows XP

    I thought that Windows XP uses a complicated system for encrypting passwords
    but I found a software that gets and logs passwords from a password textboxes

    I 'll look for this code to use in my application

    if some one can help me
    I'm waiting for his / her replying

  5. #5
    Join Date
    Oct 2005
    Location
    Maady
    Posts
    1,819
    U want to show yahoo, msn and gmail messanger passwords or what ?
    I basically know a method to know the password cashed for any running program, and if u want make the textbox pass-char = nothing .. so if u need this tell me, otherwise I don't know how do u want it for windows xp itself , if I haven't good understood u, I'm sorry ; but my method doesn't depends on windows encryption method , just some api calls to know the "forground program text caption value" .. that's all .
    Programmer&Cracker CS
    MyBlog:Blog.Amahdy.com
    MyWebsite:www.Amahdy.com

  6. #6
    Join Date
    Oct 2005
    Location
    Maady
    Posts
    1,819

    Arrow

    Well after testing Ron's psted code, I found that it runs under XP and media center too .
    look here :


    maybe just u have tested it in a program like the new gmail and yahoo messanger that protect themself from those types of passviewers .. but a simple vb project and textbox in it with a password char u can test it and it works .
    p.s. it's coded with vb5 but converting it to vb6 will be made easily from your vb6 IDE .
    p.s.s. if this is not what u want so please explain more what u want to "decrypt" exactly .
    Last edited by Amahdy; 02-15-2007 at 06:24 PM.
    Programmer&Cracker CS
    MyBlog:Blog.Amahdy.com
    MyWebsite:www.Amahdy.com

  7. #7
    Join Date
    Jan 2007
    Posts
    22
    Thank U , amahdy for caring with my topic

    U R from Maady an I 'm from Menuf

    I know that Ron's posted code works on visual basic applications , but if you use it to show a dialup connection password ( for example ) it will not work

    also if you tried it with yahoo messenger it will not work

    Look at the attached pictures

    here I want ( for Example ) to get stored ( remote desktop password )

    in the first one I succeeded to get the password using a free program called "asterisk logger" ( Great work !!)

    while in the second image I couldn't get it using Ron's posted code

    look !
    how could this program get this password

    don't care about revealing it in the same window
    I don't want that in my program

    My program is for logging typed passwords

    it is now working and logs files like this

    25/1/2007 06:45:10 AM ,Windows Started

    S pressed
    left shift pressed
    T pressed
    A pressed
    left shift released
    R pressed
    T pressed

    left mouse clicked on 245,101
    alt pressed
    ctrl pressed
    del preesed
    alt released
    ctrl released
    del released
    Enter key pressed
    ___________

    Here (in this example ) the password of starting windows is "sTArt"

    I have to run this program invisibly by adding it to startup scripts from gpedit.msc console program

    so any user logs in , the keystrokes is saved to a file

    but I think this method is so stupid , so I tried to get password using SendMessage Function and no way !
    Ron's code : no way !
    asterisk logger : did it easily!

    I explained this for U to understand what I mean


    but in last few hours I found a software that recovers windows XP passwords so I think that my project will be useless

    my program has been used in some companies by employees to get the Adminstrator Password to get rid of controlling internet services and was successful

    I 'm sorry for this long reply but may someone learn something


    I'm a beginner but no one teached me

    All my experience is from VB documentation in microsoft office , the msdn or by viewing source codes and articles and some eBooks.
    Attached Images Attached Images

  8. #8
    Join Date
    Oct 2005
    Location
    Maady
    Posts
    1,819
    U r welcome Amr, and I'm happy to see u here .
    Btw the software u have used has a website as showen in the picture, and there there is many open source codes .. they haven't put the full program's sources but the general idea so u may use their method -not used in the previous Ron's link- and make the same thing to update it to be able to get the password from any other window .
    look at their vb source code here: http://nirsoft.net/vb/index.html
    Programmer&Cracker CS
    MyBlog:Blog.Amahdy.com
    MyWebsite:www.Amahdy.com

  9. #9
    Join Date
    Jan 2007
    Posts
    22
    Thank U Mahdy for replying
    I'm pleased to see U here , too
    I knew this website when I searched the web for what I need and downloaded the program from it

    any case , thank you for co-operating

  10. #10
    Join Date
    Jan 2007
    Posts
    22
    But I couldn't find any idea as you told me amahdy at the given website

    I'm still searching and thinking

  11. #11
    Join Date
    Jan 2007
    Posts
    22

    Lightbulb

    Yes !
    Here is a program and its source code 4 what I need
    but unfortunately , It's coded in Visual C

    Can any one help me to convert it to a VB Code ?!
    Attached Files Attached Files

  12. #12
    Join Date
    Oct 2005
    Location
    Maady
    Posts
    1,819
    Hey Amr;
    In my previous posted website; in the third link there is a sample showing their method for getting the hidden chars .. using it with the method on the ron's posted link to get the textbox of any running program , both of them will help u making what u want ..

    about the c source, unfortunaltly it's a big project, and I can't help u to make this conversion , but if u give it a try and start making this conversion yourself then u got any panic or problems just send here and u will find responses isa , like asking what is the equivalent of this c expresion : "..." in vb ... etc .
    Programmer&Cracker CS
    MyBlog:Blog.Amahdy.com
    MyWebsite:www.Amahdy.com

  13. #13
    Join Date
    Jan 2007
    Posts
    22

    Exclamation

    Well this is the explained code :


    'Password Revealer
    'Copyright (c) 2002 Nir Sofer
    'Web site: http://nirsoft.mirrorz.com
    '
    'The following code sample scans all opened windows, and reveals the passwords
    'behind the password text-boxes (with asterisks '***').


    ' This code sample works properly only on Windows 95/98/ME/NT. It doesn't work on Windows 2000/XP


    Public Declare Function EnumWindows Lib "user32" _
    (ByVal lpEnumFunc As Long, ByVal lParam As Long) As Long
    Public Declare Function EnumChildWindows Lib "user32" _
    (ByVal hWndParent As Long, ByVal lpEnumFunc As Long, ByVal lParam As Long) As Long
    Public Declare Function SendMessage Lib "user32" Alias "SendMessageA" _
    (ByVal hwnd As Long, ByVal wMsg As Long, ByVal wParam As Long, lParam As Any) As Long

    Public Type POINTAPI
    x As Long
    y As Long
    End Type

    Public Type MSG
    hwnd As Long
    message As Long
    wParam As Long
    lParam As Long
    time As Long
    pt As POINTAPI
    End Type

    Public Declare Function GetWindowLong Lib "user32" Alias "GetWindowLongA" _
    (ByVal hwnd As Long, ByVal nIndex As Long) As Long
    Public Const GWL_STYLE = (-16)
    Public Const ES_PASSWORD = &H20&
    Public Const EM_SETPASSWORDCHAR = &HCC

    Public Declare Function InvalidateRect Lib "user32" _
    (ByVal hwnd As Long, lpRect As Any, ByVal bErase As Long) As Long
    Public Declare Function UpdateWindow Lib "user32" _
    (ByVal hwnd As Long) As Long


    Public Function EnumChildWindowsProc(ByVal hwnd As Long, ByVal lParam As Long) As Long
    If (GetWindowLong(hwnd, GWL_STYLE) And ES_PASSWORD) <> 0 Then
    'Clear the password character
    SendMessage hwnd, EM_SETPASSWORDCHAR, 0, 0
    'Repaint the window
    InvalidateRect hwnd, ByVal 0, 0
    UpdateWindow hwnd
    End If
    EnumChildWindowsProc = 1
    End Function

    Public Function EnumWindowsProc(ByVal hwnd As Long, ByVal lParam As Long) As Long
    'Enumerating all child windows.
    EnumChildWindows hwnd, AddressOf EnumChildWindowsProc, 0
    EnumWindowsProc = 1
    End Function

    Public Sub EnumPasswords()
    'Enumerating all top-level windows.
    EnumWindows AddressOf EnumWindowsProc, 0
    End Sub


    note :

    read the above bold text :

    'This code sample works properly only on Windows 95/98/ME/NT. It doesn't work on Windows 2000/XP.
    '




    The only solution is to convert the visual C++ code to a vb code
    but I don't know of Visual C++ exept its name !

  14. #14
    Join Date
    Jan 2007
    Posts
    22
    The explained code differs from the downloadable software

    the explained method depends on the SendMessage API Function
    the working program depends on the hooking API Functions

  15. #15
    Join Date
    Aug 2005
    Location
    Hermosillo, Sonora, Mexico
    Posts
    103
    Last edited by jggtz; 01-31-2007 at 08:39 PM.

Similar Threads

  1. REAL Software Ships REALbasic 5 for WINDOWS
    By Gwen Smith in forum vb.announcements
    Replies: 0
    Last Post: 04-28-2003, 02:37 PM
  2. Hidden from Windows???
    By Tyeth in forum VB Classic
    Replies: 2
    Last Post: 05-04-2000, 03:29 PM
  3. Interfaces, hidden windows and fixed string pointers
    By Lobo in forum authorevents.appleman
    Replies: 5
    Last Post: 04-12-2000, 03:49 PM
  4. Array of showing / hidden windows..
    By Matt Williamson in forum VB Classic
    Replies: 4
    Last Post: 03-28-2000, 10:06 AM
  5. Array of showing / hidden windows..
    By Matt Williamson in forum VB Classic
    Replies: 0
    Last Post: 03-27-2000, 06:35 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center