Sign in to follow this  
Followers 0
Thornhunt

PC login proctection

12 posts in this topic

#1 ·  Posted (edited)

ok i dont want to run this script just incase its wrong.

what i want it to do is lock your mouse and keyboard untill you type in the right password.

i supouse this is simple, but is the script correct at the moment. all it should do is. block the input but allow the keys a-z and {enter}

i havent made it save in the regestry yet .. but so far is ot ok ?

Hotkeyset("a","Nothinga")
Hotkeyset("b","Nothingb")
Hotkeyset("c","Nothingc")
Hotkeyset("d","Nothingd")
Hotkeyset("e","Nothinge")
Hotkeyset("f","Nothingf")
Hotkeyset("g","Nothingg")
Hotkeyset("h","Nothingh")
Hotkeyset("i","Nothingi")
Hotkeyset("j","Nothingj")
Hotkeyset("k","Nothingk")
Hotkeyset("l","Nothingl")
Hotkeyset("m","Nothingm")
Hotkeyset("n","Nothingn")
Hotkeyset("o","Nothingo")
Hotkeyset("p","Nothingp")
Hotkeyset("q","Nothingq")
Hotkeyset("r","Nothingr")
Hotkeyset("s","Nothings")
Hotkeyset("t","Nothingt")
Hotkeyset("u","Nothingu")
Hotkeyset("v","Nothingv")
Hotkeyset("w","Nothingw")
Hotkeyset("q","Nothingx")
Hotkeyset("y","Nothingy")
Hotkeyset("z","Nothingz")
Hotkeyset("{ENTER}","Nothingenter")
BlockInput(1)


; Loop around until the user gives a valid "password" answer
$bLoop = 1
While $bLoop = 1
    $text = InputBox("pasword please", "PLEASE type in the password")
    If @error = 1 Then
        MsgBox(4096, "Error", "You pressed 'Cancel' - try again!")
    Else
      ; They clicked OK, but did they type the right thing?
        If $text <> "password" Then
            MsgBox(4096, "Error", "You typed in the wrong thing - try again!")
        Else
            $bLoop = 0  ; Exit the loop - ExitLoop would have been an alternative too :)
        EndIf
    EndIf
WEnd

Func Nothinga()
    send("a")
EndFunc
Func Nothingb()
    send("b")
EndFunc
Func Nothingc()
    send("c")
EndFunc
Func Nothingd()
    send("d")
EndFunc
Func Nothinge()
    send("e")
EndFunc
Func Nothingf()
    send("f")
EndFunc
Func Nothingg()
    send("g")
EndFunc
Func Nothingh()
    send("h")
EndFunc
Func Nothingi()
    send("i")
EndFunc
Func Nothingj()
    send("j")
EndFunc
Func Nothingk()
    send("k")
EndFunc
Func Nothingl()
    send("l")
EndFunc
Func Nothingm()
    send("m")
EndFunc
Func Nothingn()
    send("n")
EndFunc
Func Nothingo()
    send("o")
EndFunc
Func Nothingp()
    send("p")
EndFunc
Func Nothingq()
    send("q")
EndFunc
Func Nothingr()
    send("r")
EndFunc
Func Nothings()
    send("s")
EndFunc
Func Nothingt()
    send("t")
EndFunc
Func Nothingu()
    send("u")
EndFunc
Func Nothingv()
    send("v")
EndFunc
Func Nothingw()
    send("w")
EndFunc
Func Nothingx()
    send("x")
EndFunc
Func Nothingy()
    send("y")
EndFunc
Func Nothingz()
    send("z")
EndFunc
Func Nothingenter()
    send("{enter}")
EndFunc


; Print the success message
MsgBox(4096,"welcome", "well done and welcome.")

; Finished!
Edited by Thornhunt

Budweiser + room = warm beerwarm beer + fridge = too long!warm beer + CO2 fire extinguisher = Perfect![quote]Protect the easly offended ... BAN EVERYTHING[/quote]^^ hmm works for me :D

Share this post


Link to post
Share on other sites



ok i dont want to run this script just incase its wrong.

what i want it to do is lock your mouse and keyboard untill you type in the right password.

i supouse this is simple, but is the script correct at the moment. all it should do is. block the input but allow the keys a-z and {enter}

i havent made it save in the regestry yet .. but so far is ot ok ?

Why not just use InputBox()? Although non-functional because the hotkeys call themselves, it looks a lot like an attempt at a key logger, which can get you banned on this forum.

:)


Valuater's AutoIt 1-2-3, Class... Is now in Session!For those who want somebody to write the script for them: RentACoder"Any technology distinguishable from magic is insufficiently advanced." -- Geek's corollary to Clarke's law

Share this post


Link to post
Share on other sites

it looks a lot like an attempt at a key logger, which can get you banned on this forum.

it may look like that but its not..

its a password popup screen that i want to appear as soon as youv logged in .

i took this part from the help file

; Loop around until the user gives a valid "password" answer
$bLoop = 1
While $bLoop = 1
    $text = InputBox("pasword please", "PLEASE type in the password")
    If @error = 1 Then
        MsgBox(4096, "Error", "You pressed 'Cancel' - try again!")
    Else
     ; They clicked OK, but did they type the right thing?
        If $text <> "password" Then
            MsgBox(4096, "Error", "You typed in the wrong thing - try again!")
        Else
            $bLoop = 0 ; Exit the loop - ExitLoop would have been an alternative too :)
        EndIf
    EndIf
WEnd

i think its called "imput box"

but anyway .. its not a key logger.. all its gonna do (hopefully)is pop up as soon as youve logged in and prompt you for a word(password) and meanwhile disabeling all input exsept the a-z keys so you cant close the window down..

all i want it for is because my bro keeps going on mi comp . he uses a program to get my login password(not a keylogger.. it serches the .ini files i think).. so im making this script so when he does find out my password hell haft to face another password window.. do you understand now??


Budweiser + room = warm beerwarm beer + fridge = too long!warm beer + CO2 fire extinguisher = Perfect![quote]Protect the easly offended ... BAN EVERYTHING[/quote]^^ hmm works for me :D

Share this post


Link to post
Share on other sites

Windows has builtin authentication and user account management. Lock your computer by hitting Win + L.

Share this post


Link to post
Share on other sites

Unless he cuts off your finger, there is no way he can get in.

And if he does, you've got bigger problems than unauthorized access :)


- MoChr(77)& Chr(97)& Chr(100)& Chr(101)& Chr(32)& Chr(121)& Chr(97)& Chr(32)& Chr(108)& Chr(111)& Chr(111)& Chr(107)-------I've told you 100,000 times not to exaggerate!-------Don't make me hit you with my cigarette hand...-------My scripts:Random Episode Selector, Keyboard MouseMover, CopyPath v2.1, SmartRename for XP,Window Tracer[sup]New![/sup]

Share this post


Link to post
Share on other sites

... and meanwhile disabeling all input exsept the a-z keys so you cant close the window down...

The code that you posted in your original post will not work.

The BlockInput line will prevent all users from typing in the InputBox.

If you remove the BlockInput line, then your script would do the following:

1) When you type the letter "a",

2) your script will... "see" that "a" was typed,

3) your script will... go to the function named "Nothinga",

4) your script will... send the letter "a",

5) your script will... repeat steps 2 thru 4 until you kill your script.

To disable a key, you would want to assign it to a function that does nothing.

http://www.autoitscript.com/forum/index.ph...st&p=387144

-MSP-


[size="1"][font="Arial"].[u].[/u][/font][/size]

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

all i want it for is because my bro keeps going on mi comp . he uses a program to get my login password(not a keylogger.. it serches the .ini files i think).. so im making this script so when he does find out my password hell haft to face another password window.. do you understand now??

Are you using Windows? Windows stores the passwords in certain files (SAM files, or it used to at least) that can not be read. The only way I've been able to get into a system is use to use Linux to CHANGE the password (or an Admin account for a local user, domain users are easy because of Active Directory). There's no software I know that allows you to view a password of a user. If there was, I'd be using it at work instead of waiting for users to get off the phone to type their password (however, most users leave it on a sticky, so it works out in the end.

It'd have to be a keylogger (hence why they exist).

Also, when using inputbox, you can make the password a part of the script. That way he can't hack it.

Another method is to get a fingerprint scanner. pretty cheap, go to walmart. Unless he cuts off your finger, there is no way he can get in.

That won't help. Most fingerprint scanners just act as keyboard wedges IIRC. The ones I've used simply authenticate the fingerprint then send the proper password (essentially as if the user typed it). Kinda pointless, and would still show up on a keylogger as far as I know.

Edited by kylek29

Share this post


Link to post
Share on other sites

just hide all windows that are opened until the correct password is given. That would pretty much lock the computer and you would have to mess around with all these hotkeys.

Share this post


Link to post
Share on other sites

kk tnks 4 the hlp :)


Budweiser + room = warm beerwarm beer + fridge = too long!warm beer + CO2 fire extinguisher = Perfect![quote]Protect the easly offended ... BAN EVERYTHING[/quote]^^ hmm works for me :D

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0