Jump to content
Sign in to follow this  
para

Making a Keylogger (Legal Use)

Recommended Posts

I sometimes let my little brother use my laptop even when I am not around.

He is 12 years old, and I'm afraid he is obsessed with pornography.

He is a smart kid, he knows how to delete history/temp/whatever.

I have tried putting parental controls on the computer, but everyone knows cgi proxies, aka (www.proxify.com) owns the hell out of those.

I don't want to just say, YOU CANT USE IT ANYMORE!

I made a deal with him... Every time I catch him looking up porn, he looses it for a week.

This caused him to get better. I am PRETTY sure he is looking up porn but cant prove it, there by I can't just take the laptop away because I could be wrong.

THE REASON WHY I DONT WANT HIM LOOKING UP PORNOGRAPHY! :

I have found in my short 15 years that porn is "ok". The only problem is the mental part of it. If he keeps looking at all of these pictures of females doing all of these things, and all of these nude pictures and movies, it will change his mind set to think that all woman are is a piece of meat... I do NOT want him thinking like that. If you sit there all day looking up porn, thats all you will think about woman. You will see a female and think... hmmm... wonder how she is in bed, and thats IT. You will not have any fun with them, you wont have any respect for them, and most of all, you will be a lonely ass hole. I don't want him being like this.

I want to make a keylogger. I want to specify a site and see what was typed in there. Somthing like... say... www.google.com. I want to log what was typed in the search field, but only when sent. I want to add in all search engines.

----------------------------Question Time----------------------------------------------

What would I have to do to make the autoit script log what was sent in "said window" but only when submitted?

I think I could do it like,

Select
   Case WinExists("Google - Microsoft Internet Explorer")
       "WHATEVER I WOULD HAVE TO DO TO LOG THE TEXT"
        "ACTUALLY LOG IT IF WINEXISTS-NEXT WINDOW AFTER SUBMIT"
EndSelect

That kinda deal.

So.... Anyone have any suggestions on how to make this...

Log whatever was typed in said field if it was submited and went through successfully?

Thanks alot... If more detail is needed, ask away!

-Para :idiot:

Edited by para

Share this post


Link to post
Share on other sites

I think that the keylogger is little "too much".

Talk with him seriously about "why".

I read the "reason why..." You tell him that.

You can't stop people from doing evil/illegal/other stuff.

Like drinking, smoking, doing drugs, watching porn, shoplifting, robbing liquor stores, etc.

So talk with him seriously and then leave him alone.

The same about smoking. If you tell him why he should not smoke, he won't.

When I was on highschool 75% of all people smoked there.

I like smoking. I used to do it once a week.

But then I thought seriously about what the advantages and disadvantages were.

Since then I never smoked any sigarette and I try to avoid the smell of it.

Share this post


Link to post
Share on other sites

i have a keylogger.au3 but i aint gonna give it out because

1.) i already have

2.) it wasnt one piece of code, it was a lot

3.) what slim said is correct, have a serious talk, and leave your kid alone (don't just ditch him, you must talk with him)

4.) i dont know if any mods would accept it


FootbaG

Share this post


Link to post
Share on other sites

I have talked to him.

I do not care if he smokes or drinks, thats his decission. I smoke, so I cant really tell him not to.

As you said, A talk won't help... In his mind, hes right I'm wrong. I just want proof that he is doing it so I can show him it and explain why he just lost access to the laptop. Simple.

Thanks for your help.


Share this post


Link to post
Share on other sites

one other option is just to take screen shots. You can have it only do so when say an explorer window is open, or the mouse changes position.

There are a lot of free ones out there, and they are not easily detectable. This way you have proof in pictures, and you can just tell him the site addresses so that he won't catch on. Many folks use these to screen capture games, and they have some nice compression.

Alternately you could have autoit copy the temp files at certain times, or depending on the version you could disable his account from deleting the temp files at all.


AutoIt3, the MACGYVER Pocket Knife for computers.

Share this post


Link to post
Share on other sites

I would suggest against installing a keylogger on your machine. This is for many reasons.


-I am the giver of life and the bringer of death.

Share this post


Link to post
Share on other sites

well if you want to keylog secretly sometimes without he ever knows, it may be allright if you feel you should.

think about this:

is it morally right that you break his privacy? In fact, even privacy is protected by law. If you read what he speaks with his girfriend or friends or what ever without he allowing you. Even the porn pages. I mean that you show him he could do it with other people without feeling bad because he learnt of you.

He could have future problems with his wife, when he makes what he learnt.

I dont know if it is worse the solution or the problem.

I hate to give moral advice because the frontier between bad and good, can usually not been found.

Very young people learn more with examples where they see something extreme could be bad for you, for his family and for himself.

They understand more than you think, before they were lost.

sorry for any inconvenience ...

I saw here somewhere a dllcall which could do something like that. Try it.

Edited by BasicOs

Autoit.es - Foro Autoit en EspaƱol Word visitors Image Clustrmap image: - Football Spanish team - Spanish team: Casillas, Iniesta, Villa, Xavi, Puyol, Campdevilla, etc..Programando en Autoit+Html - Coding Autoit-Html - Arranca programas desde Internet - Preprocesador de Autoit a http

Share this post


Link to post
Share on other sites

search for teh _IsPressed func, thats what my homeade autoit keylogger program is based on.. (but i havent used since my friend used it because he wants to see if anyone uses his computer, so far it has worked, he has caught a few people searching through things on his computer, and he has busted them with proof, so in one way, keyloggers can be put to good, but this is very rare, ufortunatley)... :idiot:


FootbaG

Share this post


Link to post
Share on other sites

An extremely better way in my opinion:

Make a script to back up the internet files every ~ 5 minutes...

Every time you leave your computer use _StringEncrypt() for passwording and have a folder you define as the backup.


Offering any help to anyone (to my capabilities of course)Want to say thanks? Click here! [quote name='Albert Einstein']Only two things are infinite, the universe and human stupidity, and I'm not sure about the former.[/quote][quote name='Wolvereness' date='7:35PM Central, Jan 11, 2005']I'm NEVER wrong, I call it something else[/quote]

Share this post


Link to post
Share on other sites

Do you use IE? Most probably your brother don't delete the index.dat file, it can be a good starting point for taking proof.

A cooworker of mine get fired because the boss used the index.dat as proof of watching porn...

Btw... Even if you say that is a good intention, I am afraid this is not a legal anyway. But the computer is yours, do what you want.

I think the easiest keyloger you can create is using the _IsPressed function, make a loop beetween all letters.

Edited by ezzetabi

Share this post


Link to post
Share on other sites

Why do you deactivate the hotkey and reactivate it a little after?

Func _a()
  HotKeySet ( "a")
  send("a")
  $log = $log & "a"
  HotKeySet ( "a" , "_a" )
EndFunc

Share this post


Link to post
Share on other sites

When you set a hotkey, AutoIt captures the keypress and does not pass it on to the active application

it has to turn it off so it can send the key you pressed.

Edit:

If you wish to send the captured hotkey to the active application you must unregister the hotkey before invoking Send or must use ControlSend:

Edited by UP NORTH

Share this post


Link to post
Share on other sites

First of all, my brother is 12 years old. It is perfectly legal. He has no rights when it comes to privacy in his home from his family, unless of course it is sexual privacy, but legally, even that can be taken away.

I want to see what he searches for so I can try to prevent it. A screen shot wont help that.

Thank you for the keylogger, that will help. I'll edit it and make it how I need, thank you much.


Share this post


Link to post
Share on other sites

Right, but how would i implement it to tell what was said in which window. Like... how to make it say that in the log? I feel like i know nothing... I have never had to deal with logs or filewrite before. sorry... any help is appriciated...

EDIT : I could easily make it say the window name before EVERY character, but that would suck, it would be the most cluttered log ever...

Any suggestions on how to make it turn in this format?

WindowName : 01-19-05 : text that was keylogged... blah blah 12 !-!---!

Edited by para

Share this post


Link to post
Share on other sites

Here is a logger i just made you'll need the beta. uses hotkeys.

<{POST_SNAPBACK}>

Nice job, I was going to make something like that, but I know we can't do more than 64 hotkeys. Best way is to create a script using _IsPressed as mentioned earlier in the thread. You can get any key with it.

I tried this below, to just experiment. I tried just one N keypress and then exited but for some reason I get multiple N's in the logfile. However when I uncomment the msgbox showing $log and let it run the log file works just fine (just 1 N).

Anyone know why this quirky behavior?

Edit:

;use to log the users keystrokes
Dim $log = ""
dim $file
;In this little example pressing n will pop up a message
;pressing Esc will leave.
$file = FileOpen("C:\WINNT\Profiles\dfriedman\Desktop\log.log", 1)
While 1
  If _IsPressed('1b') = 1 Then Exit;1b is ESC
  If _IsPressed('4e') = 1 Then 
      $log='n'
    ;msgbox(0,"",$log,2)
     FileWrite($file, $log)
     
     $log=""
 EndIf 
 Sleep(10)
Wend

Exit
Func _IsPressed($hexKey)
; $hexKey must be the value of one of the keys.
; _IsPressed will return 0 if the key is not pressed, 1 if it is.

 Local $aR, $bRv;$hexKey
 $hexKey = '0x' & $hexKey
 $aR = DllCall("user32", "int", "GetAsyncKeyState", "int", $hexKey)
;If $aR[0] = -32767 Then
 If $aR[0] <> 0 Then
    $bRv = 1
 Else
    $bRv = 0
 EndIf

 Return $bRv
EndFunc;==>_IsPressed

Func OnAutoItExit()
if StringLen($log) > 0 Then
    msgbox(0,"","here")
;$file = FileOpen("C:\WINNT\Profiles\dfriedman\Desktop\log.log", 1)
    FileWrite($file, $log)
    FileClose($file)
endif
EndFunc
Edited by closeupman

Share this post


Link to post
Share on other sites
Guest
This topic is now closed to further replies.
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...