Sie sind auf Seite 1von 5

Password Hacking in VB.NET

Password Hacking in VB.NET

http://www.c-sharpcorner.com/uploadfile/v

In Focus Need Advice: When a developer should get stable life Ask a
In Focus
Need Advice: When a developer should get stable life
Ask a

TECHNOLOGIESNeed Advice: When a developer should get stable life Ask a ANSWERS BLOGS VIDEOS INTERVIEWS BOOKS

ANSWERS BLOGS VIDEOS

INTERVIEWS

BOOKS

LINKS NEWS

CHAPTERS

Debugging jQuery in ASP.NET

Debugging jQuery in ASP.NET

Debugging jQuery in ASP.NET

C# Corner Search

C# Corner Search
CHAPTERS Debugging jQuery in ASP.NET C# Corner Search Posted by Vishal Kulkarni in Ar cles |
CHAPTERS Debugging jQuery in ASP.NET C# Corner Search Posted by Vishal Kulkarni in Ar cles |
CHAPTERS Debugging jQuery in ASP.NET C# Corner Search Posted by Vishal Kulkarni in Ar cles |

Posted by Vishal Kulkarni in Ar cles | Visual Basic .NET on November 10, 2012 Tags: .NET, API, DllImport, Langauage, Password Hacking, Password Hacking in VB.NET., VB.NET, Windows

This code when run gets the password from a password window of any applica on. To try it out use the following procedure to get the password.

Tweet 0
Tweet
0

ShareShare Share

0 Like 1 5485 0
0
Like
1
5485
0
0 Reader Level:

0

0 Reader Level:

Reader Level:

0 Reader Level:
Tweet 0 Share Share 0 Like 1 5485 0 0 Reader Level: Download Files: PasswordHackVBNetVK.zip Description.

Download Files: PasswordHackVBNetVK.zip

Description.

This code when run gets the password from a password window of any application. To try it out use the following procedure to get the password.

Procedure:

Run the code . A small window will open.use the following procedure to get the password. Procedure: Now open an application, which inputs password.

Now open an application, which inputs password. Try opening a MSN messenger window or Yahoo messenger window or any other window of your choice. messenger window or any other window of your choice.

Now you will see two windows. Put the password in the password box of the window. the password in the password box of the window.

Click in the password box of the application window.Put the password in the password box of the window. Then click the button "Get Password"

Then click the button "Get Password" of the VB form.window. Click in the password box of the application window. Again click on the password bo

Again click on the password box of the appli cation window. x of the application window.

Wait for 5 seconds . The password will be seen in alphabets not as *****.Again click on the password bo x of the appli cation window. Thus the password is

Thus the password is exposed.. The password will be seen in alphabets not as *****. T Source Code: API Description

in alphabets not as *****. Thus the password is exposed. T Source Code: API Description :

T

Source Code:

API Description :

1. GetCursorPos :

' GetCursorPos: API used to get the current mouse pointer location. 'Parameters 'lpPoint

Password Hacking in VB.NET

5/14/2013 1:18 PM

Password Hacking in VB.NET

Password Hacking in VB.NET

http://www.c-sharpcorner.com/uploadfile/v

'[out] Long pointer to a POINT structure that receives the screen coordinates of the cursor. 'Return Values. 'Nonzero indicates success. Zero indicates failure. To get extended error information, call GetLastError.

'Remarks 'The cursor position is always given in screen coordinates and is not affected by the mapping mode of the window that contains the cursor. Public Shared Function <DllImport("user32")> _ GetCursorPos(ByRef lpPoint As POINTAPI) As Integer End Function

2. WindowFromPoint:

'WindowFromPoint: API is used to get the window handle by giving the

' location

' Parameters

'Point

'Specifies a POINT structure that defines the point to be checked. 'Return Values. 'A handle to the window that contains the point indicates success. NULL indicates that no window exists at the specified point. A handle to the window under the 'static' text control indicates that the point is over a static text control.

Public Shared Function <DllImport("user32")> _ WindowFromPoint(ByVal xPoint As Integer, _ ByVal yPoint As Integer) As Integer End Function

3. GetClassName:

As Integer ) As Integer End Function 3. GetClassName: M Fin d 10,2 ' GetClassName: By

M

Find

Fin d 10,2

10,2

Fin d 10,2
Fin d 10,2
Fin d 10,2

' GetClassName: By passing window handle this will return the class name of

' window object.

' Parameters

'hWnd

'Handle to the window and, indirectly, the class to which the window belongs.

'lpClassName

'Long pointer to the buffer that is to receive the class name string.

'nMaxCount

'Specifies the length, in characters, of the buffer pointed to by the lpClassName parameter. The class name string is truncated if it is longer than the buffer.

'Return Values

' 'The number of characters copied to the specified buffer indicates success. ' Zero indicates failure. To get extended error information, call GetLastError.

H

S

Password Hacking in VB.NET

5/14/2013 1:18 PM

Password Hacking in VB.NET

Password Hacking in VB.NET

Public Shared Function <DllImport("user32")> _ GetClassName(ByRef hwnd As Integer, ByVal _ lpClassName As String, ByRef nMaxCount As Integer) As Integer End Function

4. SendMessage:

'SendMessage: API used to send a message to another window.

' Parameters.

'hWnd.

http://www.c-sharpcorner.com/uploadfile/v

'[in] Handle to the window whose window procedure will receive the message. If this parameter is HWND_BROADCAST, the message is sent to all top-level windows in 'the' system, including disabled or invisible unowned windows, overlapped windows, 'and pop'-up windows; but the message is not sent to child windows.

'Msg.

'[in] Specifies the message to be sent.

'wParam.

'[in] Specifies additional message-specific information.

'lParam.

'[in] Specifies additional message-specific information.

'Return Values.

additional message-specific information. 'Return Values. W 'The return value specifies the result of the message

W

'The return value specifies the result of the message processing and depends 'on the message sent.

Public Shared Function <DllImport("user32")> _ SendMessage(ByVal hwnd As Integer, ByVal wMsg As Integer, _ ByVal wParam As Integer, ByVal lParam As Integer) As Integer End Function End Class

General Description:

Waooooo getting password was never so easy. Lets dissect the code. The "GetCursorPos" api gets the current mouse position on the screen in a structure i.e. the x and y coordinates on the screen.

POLL
POLL

The "WindowFromPoint" api gets the window handle from the x and y coordinates.

The "GetClassName" api gets the classname of the control on which mouse is placed might be a "text" or an "edit" control (Password).

The "SendMessage" api sends the window (of which we are having the handle) , the control(text or edit) a message

Password Hacking in VB.NET

5/14/2013 1:18 PM

Password Hacking in VB.NET

Password Hacking in VB.NET

http://www.c-sharpcorner.com/uploadfile/v

where in the password character is changed from * to nothing (0) . Meaning that no password char is applicable to the edit box.

Thus the password is exposed.

Login to add your contents and source code to this ar cle

DynamicPDF Merger is a developers dream for interac ng with any exis ng PDF documents.

DynamicPDF Merger is a developers dream for interac ng with any exis ng PDF documents. Merge, append, split, form ll, a en stamp and so much more.

Control statements in VB.NET Tags: .NET, Break, Con nue, Control, Control Statements in VB.NET., Do
Control statements in VB.NET
Tags: .NET, Break, Con nue, Control, Control
Statements in VB.NET., Do ‐While Loop, For
Loop
An easy approach to Displaying a ASP.NET
2.0 Message Box in VB.NET
Tags: .NET, ASP.NET, ASP.NET 2.0, Message Box

RELATED ARTICLES

Change password in VB.NET.NET, ASP.NET, ASP.NET 2.0, Message Box RELATED ARTICLES Change User Password in Windows XP in VB.NET

Change User Password in Windows XP in VB.NET User Password in Windows XP in VB.NET

Working With the Encryp on Password Func on in on Password Func on in

MySQL

HomeGroup Network Password on Windows 7Working With the Encryp on Password Func on in MySQL Generate Random Password in ASP.NET Password

Generate Random Password in ASP.NET ASP.NET

Password Policy/Strength ASP.NET MVC ValidatorPassword on Windows 7 Generate Random Password in ASP.NET My Network Scanner aka Hacking 101 in

My Network Scanner aka Hacking 101 in VB.NET Scanner aka Hacking 101 in VB.NET

Remove Sleep Mode Password in Windows 8Validator My Network Scanner aka Hacking 101 in VB.NET Change Password in Windows 8 How to

Change Password in Windows 8101 in VB.NET Remove Sleep Mode Password in Windows 8 How to Change Password in SQL

How to Change Password in SQL Server 2012 2012

8 Change Password in Windows 8 How to Change Password in SQL Server 2012 Password Hacking
8 Change Password in Windows 8 How to Change Password in SQL Server 2012 Password Hacking
8 Change Password in Windows 8 How to Change Password in SQL Server 2012 Password Hacking
8 Change Password in Windows 8 How to Change Password in SQL Server 2012 Password Hacking

Password Hacking in VB.NET

5/14/2013 1:18 PM

Password Hacking in VB.NET

Password Hacking in VB.NET

Password Hacking in VB.NET Password Hacking in VB .NET http://www.c-sharpcorner.com/uploadfile/v COMMENT USING Facebook
Password Hacking in VB.NET Password Hacking in VB .NET http://www.c-sharpcorner.com/uploadfile/v COMMENT USING Facebook

http://www.c-sharpcorner.com/uploadfile/v

Hacking in VB .NET http://www.c-sharpcorner.com/uploadfile/v COMMENT USING Facebook social plugin MVPs MOST VIEWED

COMMENT USING

COMMENT USING
.NET http://www.c-sharpcorner.com/uploadfile/v COMMENT USING Facebook social plugin MVPs MOST VIEWED LEGENDS
.NET http://www.c-sharpcorner.com/uploadfile/v COMMENT USING Facebook social plugin MVPs MOST VIEWED LEGENDS

Facebook social plugin

MVPs

MOST VIEWED

LEGENDS

NOW

PRIZES

AWARDS

REVIEWS

SURVEY

CERTIFICATIONS

DOWNLOADS

PHOTOS TIPS CONSULTING TRAINING STUDENTS MEMBERS MEDIA KIT SUGGEST AN IDEA

PRIVACY POLICY | TERMS & CONDITIONS | SITEMAP | CONTACT US | ABOUT US | REPORT ABUSE

 
 

©20 1

Password Hacking in VB.NET

5/14/2013 1:18 PM