Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Protect process in delphi

Posted on 2011-03-04
7
Medium Priority
?
970 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 4
  • 3
7 Comments
 
LVL 38

Accepted Solution

by:
Geert Gruwez earned 2000 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 38

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
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

 

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 38

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: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say 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

In this post we will learn how to make Android Gesture Tutorial and give different functionality whenever a user Touch or Scroll android screen.
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?
With the power of JIRA, there's an unlimited number of ways you can customize it, use it and benefit from it. With that in mind, there's bound to be things that I wasn't able to cover in this course. With this summary we'll look at some places to go…
Starting up a Project
Suggested Courses

636 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