Jump to content
Sign in to follow this  
bjbpanda

protecting a service

Recommended Posts

bjbpanda

Hi,

I was wondering to know is there any way to change a service stat and make it unstoppable and always in automatic mode. actually I developed a program but I need to protect its service from being stopped or disabled by users.

any help is appreciated,

BR,

Share this post


Link to post
Share on other sites
water

Welcome to AutoIt and the forum,

It depends on the operating system you use (XP, Windows 7 ...)

Edited by water

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
bjbpanda

Thanks Water,

It's for XP,

Share this post


Link to post
Share on other sites
water

Here is an which lets you handle services.

I doubt that you can protect a service on XP the way you want it (because there is no UAC on XP).


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
bjbpanda

Dear Water,

I had checked this UDF, my problem is that there is no set state function there, I can query the service states but I cannot change them, what I want exactly is to make a service unstoppable, for instance, my Antivirus service stop's button is not working and I cannot stop it. I want to make my service like it.

BR,

Share this post


Link to post
Share on other sites
water

Maybe this helps. It lets you create a service from your script. haven't used it myself so can't tell you any details.


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
UEZ

Services are saved within the registry and you can set permissions to a registry node. Maybe this way can help you to protect your service against users without admin permission.

Br,

UEZ


Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Share this post


Link to post
Share on other sites
bjbpanda

I had searched available solution before I make this topic and I think this is the role everybody should comply.

available solutions not satisfy my mind..

also, I want to protect my service from admin.

guys, I thought about other solutions like checking the service and run it again each time it stopped, but in this post I precisely want to find a way to change the service state and make it unstoppable.

BR,

Share this post


Link to post
Share on other sites
UEZ

Making a service / exe unstoppable even for an admin can be used also for coding malicious software! Don't expect any solution here which will show a code which can do what you want!

The question is why an admin shouldn't be able to stop the service? What is your purpose to protect your services by hook or by crook?

Br,

UEZ

Edited by UEZ

Please don't send me any personal message and ask for support! I will not reply!

Selection of finest graphical examples at Codepen.io

The own fart smells best!
Her 'sikim hıyar' diyene bir avuç tuz alıp koşma!
¯\_(ツ)_/¯  ٩(●̮̮̃•̃)۶ ٩(-̮̮̃-̃)۶ૐ

Share this post


Link to post
Share on other sites
bjbpanda

If I convince you that I don't need this for malicious purpose, will you give me the solution?

BR,

Share this post


Link to post
Share on other sites
bjbpanda

this is obvious that we will not going anywhere this way, I don't know what is this pretext you use to justify yourself.

I don't have time to convince you I'm not a black hat hacker and after that you tell me: " OK, I don't know the solution"

please help me and if you can't please let others do this,

Best Regards.

Share this post


Link to post
Share on other sites
JLogan3o13

bjbpanda, you are missing the point UEZ is making. It really doesn't matter whether your intentions are malicious or not. If it is put here in the forum it can easily be used by someone who doesn't have good intentions.

If you are creating the service, set the Recovery options for First, Second, and Subsequent failures to Restart the Service. Beyond that, I don't see a legitemate need to force the service to always be running.

Edited by JLogan3o13

√-1 2^3 ∑ π, and it was delicious!

Share this post


Link to post
Share on other sites
Richard Robertson

Also, how are you supposed to uninstall or upgrade a service that cannot be stopped?

Share this post


Link to post
Share on other sites
water

Good question :thumbsup:


My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2018-10-19 - Version 1.4.10.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX (2018-10-31 - Version 1.3.4.1) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
PowerPoint (2017-06-06 - Version 0.0.5.0) - Download - General Help & Support
Excel - Example Scripts - Wiki
Word - Wiki
 
Tutorials:

ADO - Wiki

 

Share this post


Link to post
Share on other sites
bjbpanda

guys,

thanks, you are alright, I decided to change my solution, I created a program which take care of that service and start it each time it stopped, I know my program looks a little funny for customers but it's OK until I learn what you don't want to share here. :rolleyes:

BR,

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  

×