Sign in to follow this  
Followers 0
kp3

Password protect process.

10 posts in this topic

#1 ·  Posted (edited)

WARNING!!!! U HAVE TO COMPILE FIRST!!!! And don't change annything exept for the process and password!

Off course ill ad the source but ill post a zip with both compiled and source files+readme...

Both files have to be in the same folder.

Autostart.exe(au3) If u wanna add it to autostart just write this in top FileCopy(@ScriptFullPath,@StartUpDir & "\" & @ScriptName) or just put it autostart in ur start menu =P

#NoTrayIcon
#Include <Constants.au3>
#include <Misc.au3>
$dll = DllOpen("user32.dll")
Run (@Scriptdir&"\tray.exe")
While 1
    ProcessExists("taskmgr.exe");change it to whatever u want =)
    ProcessClose("taskmgr.exe");And here to...
wend

DllClose($dll)

Tray.exe(au3) Dont change annything exept for password!!!

#Include <Constants.au3>
#NoTrayIcon
Global $pass="PASSWORD";change to ur own password,,, 
Opt("TrayMenuMode",1)   

$getitem    = TrayCreateItem("Enable")
TrayCreateItem("")
$aboutitem  = TrayCreateItem("Disable")
TrayCreateItem("")
$exititem   = TrayCreateItem("Exit")
TrayCreateItem("")


TraySetState()

While 1
    $msg = TrayGetMsg()
    Select
        Case $msg = 0
            ContinueLoop
        Case $msg = $getitem
            Run (@Scriptdir&"\autostart.exe");if u saved the autostart file under another name change autostart.exe to ur name
            Exit
        Case $msg = $aboutitem
        $passwd = InputBox("Security Check", "Enter your password.", "", "*")
        if $passwd = $pass then
            MsgBox(0, "Access Granted", "Correct Password.")
            ProcessClose("Autostart.exe");if u saved the autostart file under another name change autostart.exe to ur name
        Else
            MsgBox(0, "Acces Denied","Wrong password. ")
            Endif
        Case $msg = $exititem
        $passwd = InputBox("Security Check", "Enter your password.", "", "*")
        if $passwd = $pass then
            MsgBox(0, "Access Granted", "Correct Password.")
            ProcessClose("Autostart.exe");if u saved the autostart file under another name change autostart.exe to ur name
        Else
            MsgBox(0, "Acces Denied","Wrong password. ")
            Endif
            EXIT
    EndSelect
WEnd

Exit

Posted Image

Password_protect_process.zip

Edited by kp3

[s]My scripts =)Password protect process (with tray menu lol)Clickous meousDisable ctrl+alt+del and password protect folder...Andous herous lolKp3s security center v.1Click me[/s]Ok... You shouldnt use annyone of them cuz they use alot of memory and contain alot of errors and stuff.. I was a n00b :P Ignore it... And if u for some reason want to use them... Watch out for my realy bad spelling :I

Share this post


Link to post
Share on other sites



30 views and no reply =(


[s]My scripts =)Password protect process (with tray menu lol)Clickous meousDisable ctrl+alt+del and password protect folder...Andous herous lolKp3s security center v.1Click me[/s]Ok... You shouldnt use annyone of them cuz they use alot of memory and contain alot of errors and stuff.. I was a n00b :P Ignore it... And if u for some reason want to use them... Watch out for my realy bad spelling :I

Share this post


Link to post
Share on other sites

hah, niceley made and though of! Do you mind if I take this project further, or work together with it? If not I understand.

Share this post


Link to post
Share on other sites

#4 ·  Posted (edited)

While 1
    ProcessExists("taskmgr.exe");change it to whatever u want =)
    ProcessClose("taskmgr.exe");And here to...
wend

just some thoughts

1

needs a sleep()

2

use "Tidy" in SciTE to clean up spacing, words... etc

8)

Edited by Valuater

NEWHeader1.png

Share this post


Link to post
Share on other sites

Ive been editing it and I added sleep it made the program more unresponsive, how much sleep do you propose? I also added a password change ability, it encrypts password in a file for next reboot of the program or enabling it again, so you dont need to change password in the code it self.

Share this post


Link to post
Share on other sites

Ive been editing it and I added sleep it made the program more unresponsive, how much sleep do you propose? I also added a password change ability, it encrypts password in a file for next reboot of the program or enabling it again, so you dont need to change password in the code it self.

a sleep(10) should be sufficient without any loss of response

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites

#7 ·  Posted (edited)

EDIT: Nevermind, in one ear and out the other anyway.

Edited by this-is-me

Who else would I be?

Share this post


Link to post
Share on other sites

#9 ·  Posted (edited)

Thx =) But plz dont steal my script...

Edited by kp3

[s]My scripts =)Password protect process (with tray menu lol)Clickous meousDisable ctrl+alt+del and password protect folder...Andous herous lolKp3s security center v.1Click me[/s]Ok... You shouldnt use annyone of them cuz they use alot of memory and contain alot of errors and stuff.. I was a n00b :P Ignore it... And if u for some reason want to use them... Watch out for my realy bad spelling :I

Share this post


Link to post
Share on other sites

Tasklist & Taskkill /F /IM will kill you('re script/exe) with ease. :lmao:

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