Click here to Skip to main content
13,458,430 members
Click here to Skip to main content
Add your own
alternative version


30 bookmarked
Posted 26 Jul 2006

Solution for hacking through clipboard

, 26 Jul 2006
Rate this:
Please Sign up or sign in to vote.
You can lose secret information when u enjoying internet browsing by yours clipboard. sensitive data (like passwords, credit card numbers, PIN etc.)


Hi, My friends. We do copy various data by ctrl+c or ctrl+insert for pasting elsewhere. This
copied data is stored in clipboard and is accessible from the net by a
combination of Javascripts and ASP.

I want share this information with all codeproject members bcz it is very harmful for users.

This information gethered from sourcrcodeworld forum.

Hacking Case

Just try this:
1) Copy any text by ctrl+c
2) Click the Link:
<HTTP: clipboard.asp special>
3) You will see the text you copied on the Screen which was
accessed by this web page.
Do not keep sensitive data (like passwords, credit card numbers, PIN etc.) in 
the clipboard while surfing the web. It is extremely easy to extract the 
text stored in the clipboard to steal your sensitive information. 

This works for IE and Netscape.



Solution to Clipboard Hack
To avoid Clipboard Hack Problem, do the following:
1- Go to internet options->security. 
2- Press custom level.
3- In the security settings, select disable under Allow paste operations via script.
Now the contents of your clipboard are safe. :)
and u can continue to enjoy web browsing

Actual Script

The following few lines are the actual agent to stolen the clipboard data of your machine.
<Script Language="JavaScript">
var content = clipboardData.getData("Text");

Codeproject Members

please share this kind of information on this forum to protect our data.

enjoy and try to live with pleasure moments............


This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here


About the Author

saqib chuadhry
Web Developer
Pakistan Pakistan
Saqib belonges from sahiwal pakistan.Now in these days, he is working as Software Engineer in Cooprative office of Nero Burn at Islamabad Pakistan.
He is famous as GURU of plugins specially in MS office application. His Keen and core experties in C/C++/vc++(STL,ATL,COM), Socket programming, SMTP/ESMTP imlementation with SSL from last three years.
Some things...about nature!
About love: Love is most important ingredient of life like water.

He enjoys hot coffee in rainy days.

You may also be interested in...


Comments and Discussions

GeneralUseless for opera Pin
Xmen W.K.4-Jul-09 17:14
memberXmen W.K.4-Jul-09 17:14 
GeneralRe: Useless for opera Pin
ibrahim_ragab20-Apr-13 3:33
memberibrahim_ragab20-Apr-13 3:33 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

Permalink | Advertise | Privacy | Terms of Use | Mobile
Web01 | 2.8.180323.1 | Last Updated 26 Jul 2006
Article Copyright 2006 by saqib chuadhry
Everything else Copyright © CodeProject, 1999-2018
Layout: fixed | fluid