Vike your IE clipboard through script

xiaoxiao2021-03-30  224

Digg.com An article

Do you use ie? I bet i can tell you what in your clipboard! I caught my attention.

Original presentation here: http://www.jerryandmissy.com/work/clipboard.htm

With a script API comes with IE, you can directly read the contents of the user's current clipboard, if the user IE's permissions are set to the default. I tested it with my IE, obviously, this trick is very useful. You can access the user's clipboard through the script, regardless of where the user COPY data, you can access it through a script command. This is probably a problem that is unclear, if you can, you can do a small program, collect the contents of all the clipboards, and make a data mining what.

In fact, the code is simple, just in one sentence:

Document.getlementByid ("textbox"). InnerText = Window.clipboardData.GetData ("text");

This code will not run in Mozilla.

The author of course also provides a way to solve this security problem, it seems simple:

To Turn Off this "Feature" in Internet Explorer:

1. Go to Tools -> Internet Options -> Security 2. Click on The Custom Level Security Setting and Uncheck The Option "Allow Paste Operations Via script."

转载请注明原文地址:https://www.9cbs.com/read-130728.html

New Post(0)