using System; using System.Collections.Generic; using System.Linq; using System.Text; using System.Runtime.InteropServices; using Microsoft.Win32; using System.Diagnostics; namespace ConsoleApplication1 { class Program { static void Main(string[] args) { Process p = new Process(); p.StartInfo.FileName = GetIERunString(); string c = "http://127.0.0.1/admin"; p.StartInfo.Arguments = c; p.Start(); } public static string GetIERunString() { string IEString = string.Empty; RegistryKey regKey = Registry.ClassesRoot; regKey = regKey.OpenSubKey(@"http\shell\open\command"); IEString = regKey.GetValue("").ToString(); string a = IEString; string[] b; b = a.Split(new char[1] { '"' }); IEString = b[1]; return IEString; } } }
转载于:https://www.cnblogs.com/nocoding/p/3405714.html