How to get total amount of RAM in C

GlobalMemoryStatusEx – retrieves information about the system’s current usage of both physical and virtual memory. MEMORYSTATUSEX – contains information about…

Detect system architecture in C

GetNativeSystemInfo – retrieves information about the current system to an application running under WOW64. If the function is called from…

Crack zip passwords – Bruteforcing

1> Open your kali Distribution 2> Extract password hash from your zip file: /usr/share/metasploit-framework/data/john/run.linux.x64.mmx/zip2john Desktop/myfile.zip > Desktop/myzipfile.hash 3> Try to…

Get Windows version in C

I am not gonna use GetVersionEx or GetVersion. Both these functions may be altered or unavailable for releases after Windows…

Get Domain or Workgroup with C

You will need to include the libraries netapi32.lib and iphlpapi.lib into your project. DsRoleGetPrimaryDomainInformation – retrieves state data for the…

Check if user is an administrator in C

AllocateAndInitializeSid – allocates and initializes a security identifier (SID) with up to eight subauthorities. CheckTokenMembership – determines whether a specified…

Get IP address of network adapter in C – Unicode

You will need to include the libraries ws2_32.lib and iphlpapi.lib into your project. GetAdaptersAddresses – retrieves the addresses associated with…

Get Username in C – Unicode

You will need to include the library secur32.lib into your project. GetUserNameExW – Retrieves the name of the user or…

Get Processes and Windows using C#

Add a reference in your project to System.Management namespace. Windows API: private delegate bool EnumWindowsProc(IntPtr hWnd, int lParam); [DllImport("user32.dll")] static…

Browse and query WMI

Windows Management Instrumentation (WMI) is the infrastructure for management data and operations on Windows-based operating systems. You can write WMI…

Next Page