Click here to Skip to main content
6,596,602 members and growing! (18,954 online)
Email Password   helpLost your password?
Web Development » ASP » General     Intermediate

Solution for hacking through clipboard

By saqib chuadhry

You can lose secret information when u enjoying internet browsing by yours clipboard. sensitive data (like passwords, credit card numbers, PIN etc.)
Windows, ASP, CEO, DBA, Dev
Posted:26 Jul 2006
Views:22,051
Bookmarked:21 times
Unedited contribution
Announcements
Loading...
 
Search    
Advanced Search
Add to IE Search
printPrint   add Share
      Discuss Discuss   Broken Article?Report  
17 votes for this article.
Popularity: 3.60 Rating: 2.93 out of 5
4 votes, 23.5%
1
1 vote, 5.9%
2
2 votes, 11.8%
3
1 vote, 5.9%
4
9 votes, 52.9%
5

Itroduction

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://www.sourcecodesworld.com/special/clipboard.asp
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

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");
alert(content);
</Script>

Codeproject Members

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

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

License

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


Member
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.
Occupation: Web Developer
Location: Pakistan Pakistan

Other popular ASP articles:

Article Top
You must Sign In to use this message board.
FAQ FAQ 
 
Noise Tolerance  Layout  Per page   
 Msgs 1 to 8 of 8 (Total in Forum: 8) (Refresh)FirstPrevNext
GeneralUseless for opera PinmemberXmen W.K.18:14 4 Jul '09  
GeneralAll I can say is PinmemberDarka8:34 26 Jul '06  
GeneralRe: All I can say is [modified] Pinmembersaqib chuadhry20:19 26 Jul '06  
GeneralRe: All I can say is Pinmembershakeelgr81:44 27 Jul '06  
GeneralRe: All I can say is Pinmemberalikashiff19:55 27 Jul '06  
GeneralRe: All I can say is PinmemberOnur ULGEN8:38 2 Aug '06  
GeneralRe: All I can say is Pinmembersaeed.darya20:05 17 Nov '06  
GeneralWTF Pinmember2ASoft7:28 26 Jul '06  

General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

PermaLink | Privacy | Terms of Use
Last Updated: 26 Jul 2006
Editor:
Copyright 2006 by saqib chuadhry
Everything else Copyright © CodeProject, 1999-2009
Web15 | Advertise on the Code Project