C# - Returning Startup Names

  • 0 Replies
  • 147 Views

0 Members and 1 Guest are viewing this topic.

Offline Omega

    *
  • The Boss (Admin)
  • Black Hat Sec Member
  • Telegram: @BLACKHATSEC_FORUM
  • Posts: 190
  • Popularity: +1/-0
  • God of Malware
    • View Profile
    • Awards
« on: March 14, 2022, 09:20:07 AM »
C# - Returning Startup Names

Code
using Microsoft.Win32;
private void ReturnReg()
        {
            string[] regHKLM = Registry.LocalMachine.OpenSubKey(@"Software\Microsoft\Windows\CurrentVersion\Run").GetValueNames();
            foreach (string r in regHKLM)
            {
                listView1.Items.Add(r);
            }
            string[] regHKCU = Registry.CurrentUser.OpenSubKey(@"Software\Microsoft\Windows\CurrentVersion\Run").GetValueNames();
            foreach (string r in regHKCU)
            {
                listView1.Items.Add(r);
            }
        }






  • Discord: BLACK HAT SEC#5222
  • [+]
  • [-]

  •