Exetools

Exetools (https://forum.exetools.com/index.php)
-   General Discussion (https://forum.exetools.com/forumdisplay.php?f=2)
-   -   Password grabbers (https://forum.exetools.com/showthread.php?t=3068)

cbri 12-13-2003 21:00

Password grabbers
 
May not be related but how do these things work? Usually you drag an icon our something to a target (password box) and it displays whats behind the *'s. Here is the vb source to one that works for some but not all pw'd programs.

hxxp://www.freevbcode.com/ShowCode.Asp?ID=2884

Thanks!

cb


doug 12-14-2003 05:16

sourceless, but works well nevertheless:
http://www.snadboy.com/.

(revelation v2)

cbri 12-14-2003 05:30

That one works great, but how does it work??

cbri 12-16-2003 09:02

Main code in C (that I could find) -


BOOL CALLBACK EnumWindowsProc(HWND hwnd,LPARAM lParam);
BOOL CALLBACK EnumWindowsProc2(HWND hwnd,LPARAM lParam);

LRESULT CALLBACK MainWndProc(HWND hWndMain,UINT Msg,UINT wParam,LONG lParam)
{
switch(Msg) {
case WM_COMMAND:
if(HIWORD(wParam)==BN_CLICKED)
EnumWindows(EnumWindowsProc,0); // call every main window
break;
case WM_DESTROY:
PostQuitMessage(0);
return 0L;
}
return DefWindowProc(hWndMain,Msg,wParam,lParam);
}

BOOL CALLBACK EnumWindowsProc(HWND hwnd,LPARAM lParam)
{
// call every child window (to find edit boxes)
EnumChildWindows(hwnd,EnumWindowsProc2,lParam);
return TRUE;
}

BOOL CALLBACK EnumWindowsProc2(HWND hwnd,LPARAM)
{
::SendMessage(hwnd,EM_SETPASSWORDCHAR,0,0); // reveal the password
InvalidateRect(hwnd,NULL,FALSE);
return TRUE;
}


All times are GMT +8. The time now is 15:25.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX