List files and their properties
List all files and their properties for a given folder in C#. public void ListFiles() try { String[] files = System.IO.Directory.GetFiles(@"c:Windows", "*", System.IO.SearchOption.TopDirectoryOnly); if...
View ArticleGet local system users
Use the following code to retrieve local system users and some of their properties, using WMI and Management namespace . Method public List<User> GetUsers() { try { List<User> users = new...
View ArticleList active tcp connections
We are going to use two classes to retrieve network connections, IPGlobalProperties and TcpConnectionInformation. You will need a ListView control with two columns, one for local endpoint and another...
View ArticleWhat programs are configured to run during system boot or login
Sysinternals Autoruns for Windows has the most comprehensive knowledge of auto-starting locations of any startup monitor, shows you what programs are configured to run during system bootup or login,...
View ArticleGet a list of all network interfaces
To use the following C# code you have to add a reference to SharpPcap library in your project. class Computer { public static List<NetworkInterface> NetworkInterfaces { get { try {...
View ArticleList all running processes in Java
Tasklist displays a list of applications and services with their Process ID (PID) for all tasks running on either a local or a remote computer. void ListAllProcesses() { try { Process p =...
View ArticleEnumerate System Devices
Enumerate system devices using C#. You have to add a reference to the System.Management component. ManagementObjectSearcher devices = new ManagementObjectSearcher("Select Name, Description, Status from...
View ArticleModify access control lists on specified files through cmd
Icacls displays or modifies discretionary access control lists (DACLs) on specified files, and applies stored DACLs to files in specified directories. Parameters Parameter Description...
View ArticleKohana – list all database tables
foreach(Database::instance()->list_tables() as $table_name) { //blah blah }
View ArticleList Mutex names on your system
1. Download Handle by Mark Russinovich 1. Run cmd.exe as administrator 2. Type and execute: handle -a | findstr Mutant
View Article
More Pages to Explore .....