A
A
Anton Peat2014-11-13 20:53:15
Windows
Anton Peat, 2014-11-13 20:53:15

C#. How to replace explorer.exe with your application?

The question itself is in the title.
I found a similar script online.

public void KillCtrlAltDelete()
        {
            RegistryKey regkey;
            string keyValueInt = "1";
            string subKey = @"Software\Microsoft\Windows\CurrentVersion\Policies\System";

            try
            {
                regkey = Registry.CurrentUser.CreateSubKey(subKey);
                regkey.SetValue("DisableTaskMgr", keyValueInt);
                regkey.Close();
            }
            catch (Exception ex)
            { }
        }

However, alas, he
string subKey = @"SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon";

does not give the desired effect. What can be done?

Answer the question

In order to leave comments, you need to log in

2 answer(s)
V
Vitaly Pukhov, 2014-11-14
@Neuroware

It will give the desired effect only to an application that has passed UAC, that is, it has administrator rights. In general, writing viruses is bad =b

M
Max Maximov, 2014-11-16
@maximka19

Writing a virus in managed code is somehow not very good. Dig WinAPI with C++.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question