Tag: identify

C#

Identifying the GPU using C#

public static String GetGPU() { ManagementObjectSearcher mos = new ManagementObjectSearcher("SELECT * FROM Win32_DisplayConfiguration");   String GPU = ""; foreach (ManagementObject mo in mos.Get()) foreach (PropertyData property in mo.Properties) if (property.Name == "Description") GPU = property.Value.ToString(); return GPU; }public static String GetGPU() { ManagementObjectSearcher mos = new ManagementObjectSearcher("SELECT * FROM Win32_DisplayConfiguration"); String GPU = ""; foreach …

C#

Identifying the CPU architecture type using C#

public String GetCpuArchitecture() { ManagementObjectSearcher mos = new ManagementObjectSearcher("SELECT Architecture FROM Win32_Processor"); ManagementObjectCollection moc = mos.Get(); ManagementObjectCollection.ManagementObjectEnumerator moe = moc.GetEnumerator(); moe.MoveNext(); ushort arch = (ushort)moe.Current["Architecture"];   switch (arch) { case 0: return "x86"; case 1: return "MIPS"; case 2: return "Alpha"; case 3: return "PowerPC"; case 6: return "Itanium"; case 9: return "x64"; default: return …

NMAP

Identifying the version number of running services

If you wish to identify the software Version (-sV flag) of services running on machine’s open ports, just provide the -sV flag to nmap. Type the command: nmap -sV x.x.x.x where x.x.x.x is the ip address that you wish to scan.   You will get an answer similar to this: Starting Nmap 5.21 ( http://nmap.org …