Compiling file . il (Intermediate Language) with admin permission

Asked

Viewed 28 times

0

I’ve been doing a lot of research on how to insert certain parameters into an already created executable. And I arrived in that post of the Stack

But the program initially has administrator privileges. Only when recompiling, it loses this permission. How to proceed to compile a file .il with admin permissions?

1 answer

1

Compilation and permission have nothing to do with, who installs the software gives permission to what it can do, a created executable has no privilege property, so the question doesn’t even make sense. Then you will have to ask for permission and the user will determine whether you give it or not. Often an installer can help with this. Nor could it be different, otherwise making attacks will be extremely simple.

Actually it doesn’t even make sense to do what you did. The question is mainly answer linked are very bad, do not need to do what the person said to get the requested result, nor does it make sense to do what she wanted, is just a wrong "solution" to the real need.

  • So what would be the correct way to ask and what would be the correct solution to this problem (change parameters of an executable)

  • And on the compilation, I just meant that it loses Adm permission when I compile a file .il. Was basically that I did in the application, initially, for it to ask Adm permission when running.

  • Parameters should not be in the executable, simple.

  • But to make it more practical for the user, what I want to do, needs to. Explaining better, the user will choose certain things on a site, and I have to send him an executable with the parameters according to what he chose...

  • This is no longer practical and is wrong. Find the right solution, this is not.

  • Yeah, I always value good practice. But the only way I found it was this. Because the program I did installs some programs in the mode Silent. Is basically that what I want to do. Do you know/indicate another alternative to solve this problem? I am doing this for C learning purposes#

Show 1 more comment

Browser other questions tagged

You are not signed in. Login or sign up in order to post.