Quantcast
Channel: IT | Security | Hacking | Programming » list
Browsing all 10 articles
Browse latest View live

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 Article



Get 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 Article

List 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 Article

What 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 Article

Get 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 Article


List 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 Article

Enumerate 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 Article

Modify 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 Article


Kohana – list all database tables

foreach(Database::instance()->list_tables() as $table_name) { //blah blah }

View Article


List 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
Browsing all 10 articles
Browse latest View live




Latest Images