Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. .NET (Core and Framework)
  4. How protect a .EXE againt Process Termination ?

How protect a .EXE againt Process Termination ?

Scheduled Pinned Locked Moved .NET (Core and Framework)
securityquestion
9 Posts 6 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Sunil123
    wrote on last edited by
    #1

    Hi ! I want to make some kind of Process/application/EXE that cannot be terminated using the task manager. for the security purpose. Thank you Sunil Patel

    C D S 3 Replies Last reply
    0
    • S Sunil123

      Hi ! I want to make some kind of Process/application/EXE that cannot be terminated using the task manager. for the security purpose. Thank you Sunil Patel

      C Offline
      C Offline
      Colin Angus Mackay
      wrote on last edited by
      #2

      Sunil123 wrote:

      for the security purpose

      I think you might want to rethink your security strategy.

      Upcoming FREE developer events: * Developer Day Scotland Recent blog posts: * Follow up on hiring a software developer * The Value of Smaller Methods My website | blog

      1 Reply Last reply
      0
      • S Sunil123

        Hi ! I want to make some kind of Process/application/EXE that cannot be terminated using the task manager. for the security purpose. Thank you Sunil Patel

        D Offline
        D Offline
        DigiOz Multimedia
        wrote on last edited by
        #3

        Sunil123 wrote:

        I want to make some kind of Process/application/EXE that cannot be terminated using the task manager. for the security purpose.

        Sounds to me like you are trying to create some sort of a virus. If not I agree with the previous reply, in that you should change your security strategy.

        Pete Soheil DigiOz Multimedia http://www.digioz.com

        S 1 Reply Last reply
        0
        • D DigiOz Multimedia

          Sunil123 wrote:

          I want to make some kind of Process/application/EXE that cannot be terminated using the task manager. for the security purpose.

          Sounds to me like you are trying to create some sort of a virus. If not I agree with the previous reply, in that you should change your security strategy.

          Pete Soheil DigiOz Multimedia http://www.digioz.com

          S Offline
          S Offline
          Sunil123
          wrote on last edited by
          #4

          yes, it seems some what difficult. but i found that some system process that can not deleted using the taskmanager. when i try to do so it gives Unable to Terminate Process The operation could not be completed. The operation is not valid for this process. so I am looking for some what like this. Thank You.

          D 1 Reply Last reply
          0
          • S Sunil123

            Hi ! I want to make some kind of Process/application/EXE that cannot be terminated using the task manager. for the security purpose. Thank you Sunil Patel

            S Offline
            S Offline
            Scott Dorman
            wrote on last edited by
            #5

            There is generally no legitimate need to do this. There are some of the critical operating system processes that are protected like this but user processes shouldn't need to do this.

            Scott. —In just two days, tomorrow will be yesterday. —Hey, hey, hey. Don't be mean. We don't have to be mean because, remember, no matter where you go, there you are. - Buckaroo Banzai


            [Forum Guidelines] [Articles] [Blog]

            1 Reply Last reply
            0
            • S Sunil123

              yes, it seems some what difficult. but i found that some system process that can not deleted using the taskmanager. when i try to do so it gives Unable to Terminate Process The operation could not be completed. The operation is not valid for this process. so I am looking for some what like this. Thank You.

              D Offline
              D Offline
              Dave Kreskowiak
              wrote on last edited by
              #6

              Sunil123 wrote:

              but i found that some system process that can not deleted using the taskmana

              That's because they're running either as part of the kernel or are running under the System account, which you cannot use yourself. There is no way to do what you're describing in a user-level application.

              A guide to posting questions on CodeProject[^]
              Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                   2006, 2007

              S 1 Reply Last reply
              0
              • D Dave Kreskowiak

                Sunil123 wrote:

                but i found that some system process that can not deleted using the taskmana

                That's because they're running either as part of the kernel or are running under the System account, which you cannot use yourself. There is no way to do what you're describing in a user-level application.

                A guide to posting questions on CodeProject[^]
                Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                     2006, 2007

                S Offline
                S Offline
                Sunil123
                wrote on last edited by
                #7

                I have seen some other process that also can not be deleted using the taskmanager. like some anti virus program's process.

                P D 2 Replies Last reply
                0
                • S Sunil123

                  I have seen some other process that also can not be deleted using the taskmanager. like some anti virus program's process.

                  P Offline
                  P Offline
                  Pete OHanlon
                  wrote on last edited by
                  #8

                  These applications have typically been allowed to modify the kernel that give them systemwide privileges. There was a whole furore when Vista was released because it prevented AV programs from doing precisely that.

                  Deja View - the feeling that you've seen this post before.

                  My blog | My articles

                  1 Reply Last reply
                  0
                  • S Sunil123

                    I have seen some other process that also can not be deleted using the taskmanager. like some anti virus program's process.

                    D Offline
                    D Offline
                    Dave Kreskowiak
                    wrote on last edited by
                    #9

                    Yep. These are services that have been installed and allowed to run as part of the kernel. Users cannot stop system services. Also, you have never seen a USER LAUNCHED process with this ability.

                    A guide to posting questions on CodeProject[^]
                    Dave Kreskowiak Microsoft MVP Visual Developer - Visual Basic
                         2006, 2007

                    1 Reply Last reply
                    0
                    Reply
                    • Reply as topic
                    Log in to reply
                    • Oldest to Newest
                    • Newest to Oldest
                    • Most Votes


                    • Login

                    • Don't have an account? Register

                    • Login or register to search.
                    • First post
                      Last post
                    0
                    • Categories
                    • Recent
                    • Tags
                    • Popular
                    • World
                    • Users
                    • Groups