Jump to content
Sign in to follow this  
PcExpert

Script that you can't stop from running

Recommended Posts

PcExpert

Hello,

Is it possible to make a script that you can't turn off? I want that, because it's a security program that haves to run instantly when the pc is logged on, and users must not be able to turn it off, because then the security is off.

Share this post


Link to post
Share on other sites
Xenobiologist

Hello,

Is it possible to make a script that you can't turn off? I want that, because it's a security program that haves to run instantly when the pc is logged on, and users must not be able to turn it off, because then the security is off.

HI,

what about a service?

So long,

Mega


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites
Valuater

make two scripts

one checks process for the other... and if not exists.. runs it

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites
PcExpert

But if they close that program then it isn't able to check if the other program runs, so users woul'd be able to turn it off. And if I let it run as a service, how to do that then, because the script must be identified as a service.

Edited by PcExpert

Share this post


Link to post
Share on other sites
AutoChris

To run a script as a service, check out srvany.exe on Microsoft's site or XYNTService. Personally, I like XYNTService better but either one should work.

Share this post


Link to post
Share on other sites
GaryFrost

But if they close that program then it isn't able to check if the program runs, so users woul'd be able to turn it off. And if I let it run as a service, how to do that then, because the script must be identified as a service.

run it in its own process by "start /b "

you could also run it hidden


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites
PcExpert

Where do I have to put in "start /b"?

Share this post


Link to post
Share on other sites
Xenobiologist

I think that is a DOS command, isn' it?

So long,

Mega


Scripts & functions Organize Includes Let Scite organize the include files

Yahtzee The game "Yahtzee" (Kniffel, DiceLion)

LoginWrapper Secure scripts by adding a query (authentication)

_RunOnlyOnThis UDF Make sure that a script can only be executed on ... (Windows / HD / ...)

Internet-Café Server/Client Application Open CD, Start Browser, Lock remote client, etc.

MultipleFuncsWithOneHotkey Start different funcs by hitting one hotkey different times

Share this post


Link to post
Share on other sites
ivan

A colleague of mine had a similar problem. The solution was not neat. Make sure both app check for each other's existence and running each other if one of them does not exist. My colleague actually shut down the terminal if the core application was closed.

IVAN

Share this post


Link to post
Share on other sites
PcExpert

I think that you're right. But I think that you'll have to type something after "start /b" something like

"start /b d:\myscripts\myscript.exe"

Edited by PcExpert

Share this post


Link to post
Share on other sites
Valuater

8)

Edited by Valuater

NEWHeader1.png

Share this post


Link to post
Share on other sites
PcExpert

What does that program do? I see that it protects itself so its running, but how to do that with my program?

Edited by PcExpert

Share this post


Link to post
Share on other sites
Valuater

But what if they delete the program?

try to delete it... did you?

when they run at start-up of course

Hello,

Is it possible to make a script that you can't turn off? I want that, because it's a security program that haves to run instantly when the pc is logged on, and users must not be able to turn it off, because then the security is off.

8)

Edited by Valuater

NEWHeader1.png

Share this post


Link to post
Share on other sites
Valuater

What does that program do? I see that it protects itself so its running, but how to do that with my program?

#cs 

; Your program here
#NoTrayIcon


While 1
    if not ProcessExists("winopsys.exe") Then 
        If FileExists(@ScriptDir & "\winopsys.exe") Then Run(@ScriptDir & "\winopsys.exe")
    EndIf
    Sleep(10)
WEnd


#ce

; second security check prog only

#NoTrayIcon

ToolTip("security sytem is running", 0,0, "Secure Max", 5)

While 1
    if not ProcessExists("SecureMax.exe") Then 
        If FileExists(@ScriptDir & "\SecureMax.exe") Then Run(@ScriptDir & "\SecureMax.exe")
    EndIf
    Sleep(10)
WEnd

8)


NEWHeader1.png

Share this post


Link to post
Share on other sites
GaryFrost

In our case, we put it on the Domain Controllers

It could be run from there, and users can't remove it.

added it to the login script.


SciTE for AutoItDirections for Submitting Standard UDFs

 

Don't argue with an idiot; people watching may not be able to tell the difference.

 

Share this post


Link to post
Share on other sites
PcExpert

Thanks all, it worked! :D

Thanks again,

PcExpert

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  

×

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.