Solved

Protect process in delphi

Posted on 2011-03-04
7
952 Views
Last Modified: 2012-05-11
Hello experts.
Please help me with one thing.

i need to make a app that automaticaly encrypts,protects self process.
To understand me program be protected from Process Terminate, WriteProcessMemory or other.

But the principial is Process Terminate.
I know a method, but this requires a file (protectdriver.sys) who is localized as a rootkit.

Anybody help me to write this program.
Thanks.
0
Comment
Question by:helyonprime96
  • 4
  • 3
7 Comments
 
LVL 37

Accepted Solution

by:
Geert Gruwez earned 500 total points
ID: 35035037
run your program (created as a service) with an adminstrator user
only allow this user to start/stop the app

doing it from code is not possible
and tends to be looked at as a virus program

in the end,
you can kill any application by just pulling out the electric cord ...
0
 

Author Comment

by:helyonprime96
ID: 35035077
and thats all?
0
 
LVL 37

Expert Comment

by:Geert Gruwez
ID: 35035082
yes, this assumes within a company that you are a network admin
or the network admin is willing to do that for you ...

0
Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

 

Author Comment

by:helyonprime96
ID: 35035118
ok thanks
0
 

Author Closing Comment

by:helyonprime96
ID: 35035121
youre master
0
 

Author Comment

by:helyonprime96
ID: 35035122
for what is used functions VirualAlloc and Virtual Protect?
0
 
LVL 37

Expert Comment

by:Geert Gruwez
ID: 35035512
VirtualAlloc:
http://msdn.microsoft.com/en-us/library/aa366887%28v=vs.85%29.aspx
in short reserving some memory in your app's virtual memory address space

VirtualProtect
http://msdn.microsoft.com/en-us/library/aa366898%28v=vs.85%29.aspx
for changing the protection on that memory area:
read/write/etc

0

Featured Post

Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
Today, the web development industry is booming, and many people consider it to be their vocation. The question you may be asking yourself is – how do I become a web developer?

808 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question