Sign in to follow this  
Followers 0
Him

Close a Compiled Script

17 posts in this topic

I wrote a script that autostarts. I want to make my script not to be able to be terminated

from the task manager. I want it to be terminated when i input a password. Is this possible?

Thanks


[size="1"][font="Tahoma"]On the internet, nobody knows you're a dog.[/font][/size]

Share this post


Link to post
Share on other sites



Welcome. Merry Xmas to you too and a happy new year.

Before I help you, i would like to know for what reason this has to be done. This smells, well, somewhat malicious.

Just let me know why you want to do this and I will help you further.

-The Kandie Man


"So man has sown the wind and reaped the world. Perhaps in the next few hours there will no remembrance of the past and no hope for the future that might have been." & _"All the works of man will be consumed in the great fire after which he was created." & _"And if there is a future for man, insensitive as he is, proud and defiant in his pursuit of power, let him resolve to live it lovingly, for he knows well how to do so." & _"Then he may say once more, 'Truly the light is sweet, and what a pleasant thing it is for the eyes to see the sun.'" - The Day the Earth Caught Fire

Share this post


Link to post
Share on other sites

I wrote a script that autostarts. I want to make my script not to be able to be terminated

from the task manager. I want it to be terminated when i input a password. Is this possible?

Thanks

ANy program/Task can be killed ... but why would you want this ?

Visit the SciTE4AutoIt3 Download page for the latest versions        Beta files                                                          Forum Rules
 
Live for the present,
Dream of the future,
Learn from the past.
  :)

Share this post


Link to post
Share on other sites

Welcome. Merry Xmas to you too and a happy new year.

Before I help you, i would like to know for what reason this has to be done. This smells, well, somewhat malicious.

Just let me know why you want to do this and I will help you further.

-The Kandie Man

My family owns an internet cafe and I had the idea to make this program for security.

It will prevent users that have not been given a password from using a PC.

Can you help me?


[size="1"][font="Tahoma"]On the internet, nobody knows you're a dog.[/font][/size]

Share this post


Link to post
Share on other sites

Can anybody help?

is this possible with autoit?


[size="1"][font="Tahoma"]On the internet, nobody knows you're a dog.[/font][/size]

Share this post


Link to post
Share on other sites

It sounds like you need a security program to manage the PCs in question. There are many out there that can do the job.

Here are a few that may do what you need. I didn't do much research on it, but maybe this will stear you in the direction you would like to go.

http://www.windowsecurity.com/articles/Mic...er-Toolkit.html

http://www.softheap.com/pubpcd.html

http://www.freedownloadscenter.com/Best/secure-pc-kiosk.html

Share this post


Link to post
Share on other sites

You can disable the Task Manager with one or both of the following registry keys:

[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\System]
"DisableTaskMgr"=dword:00000001
 
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\policies\system\]
"DisableTaskMgr"=dword:00000001

[font="Tahoma"]Craig Rodway, IT Support, Bishop Barrington School.[/font]

Share this post


Link to post
Share on other sites

Any other ideas?


[size="1"][font="Tahoma"]On the internet, nobody knows you're a dog.[/font][/size]

Share this post


Link to post
Share on other sites

#10 ·  Posted (edited)

Why won't disabling Taskmanager do?

If you don't know how to do it then, just ask:

#NoTrayIcon ; Hides the icon from the tray

HotKeySet("^+x", "close") ; Set the hotkey to CTRL+Shift+X to do a function

$password = "password"    ; Set a password to use

While 1
    If ProcessExists("taskmgr.exe") Then ; If a process which is called "taskmgr" exists then 
        ProcessClose("taskmgr.exe")  ; close the process called "taskmgr"
    EndIf                          
Wend

Func close() ; Start the function
    $pass = InputBox("Password", "Please enter the password!", "", "*") ; When Ctrl-Shift-X is pressed ask for password
    If $pass = $password Then                                           ; If the password is correct then
        Exit                                                            ; exit the program
    Else                                                                ; Else
        MsgBox(16, "Error", "There was an error with the password")     ; Give a Message Box with an error symbol
    EndIf                                                    
EndFunc

Secure

Edited by Secure_ICT

Share this post


Link to post
Share on other sites

Disabling the task manager is not the solution cause after ta input of a correct

password, someone could delete the compiled script at C:\program files\myscript.exe

or delete the registry entries that autostart it.

So i want this program to run as a systems' program that cannot be terminated, I think it's the safest way...

Happy new year...!!!


[size="1"][font="Tahoma"]On the internet, nobody knows you're a dog.[/font][/size]

Share this post


Link to post
Share on other sites

Disabling the task manager is not the solution cause after ta input of a correct

password, someone could delete the compiled script at C:\program files\myscript.exe

or delete the registry entries that autostart it.

So i want this program to run as a systems' program that cannot be terminated, I think it's the safest way...

Happy new year...!!!

The credibility of an internet cafe with the above post is fading fast IMHO.

[center]Common sense plays a role in the basics of understanding AutoIt... If you're lacking in that, do us all a favor, and step away from the computer.[/center]

Share this post


Link to post
Share on other sites

Well, consider it as a small step to a more reliable beta security program.

I can gain access to any computer ,at the most internet cafes of my area, just by restarting and running taskmgr.exe.

I'm sure you can do it too.

That's what I'm tring to avoid here...


[size="1"][font="Tahoma"]On the internet, nobody knows you're a dog.[/font][/size]

Share this post


Link to post
Share on other sites

#16 ·  Posted (edited)

Why not replace the Windows shell with your app, and have it automatically restart if it gets closed? Eg. no Start Menu/Desktop - just your app.

Edited by webman

[font="Tahoma"]Craig Rodway, IT Support, Bishop Barrington School.[/font]

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