The last week I dedicated my time to the ARP MITM engine and after some hours in trouble getting back control over the existing code tweaking and fixing things here and there it’s working like a charm. One of the cruxes is done on the other one i’ll start working tomorrow. To make the tool [...]
C# – Killing a process
posted in C#, Coders corner, Tools & sources on Jan 11th, 2011
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 using System; using System.Diagnostics; namespace MyProcesses { class MyProcesses { static [...]
C# – Starting a new process
posted in C#, Coders corner, Tools & sources on Jan 7th, 2011
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 using System; using System.Diagnostics; namespace MyProcesses { class MyProcesses { static void Main(string[] args) { Process lProc = new Process(); lProc.StartInfo.FileName = "iexplore.exe"; lProc.StartInfo.Arguments [...]
C# – Listing all running processes
posted in C#, Coders corner, Tools & sources on Jan 6th, 2011
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 using System; using System.Diagnostics; namespace MyProcesses { class MyProcesses { public static void Main() { Process[] lProcList = Process.GetProcesses(); foreach(Process lProc in lProcList) Console.WriteLine("Process: {0} ID: {1}", lProc.ProcessName, lProc.Id); } } [...]
C# – Listing the Windows environment variables
posted in C#, Coders corner, Tools & sources on Jan 3rd, 2011
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 using System; using System.Collections; namespace MyEnvironment { class MyEnvironment { public static void Main() { /* * List all environment variables * */ foreach (DictionaryEntry lVar in [...]