Getting information from WMI in C

You will need to include the libraries ole32.lib, oleaut32.lib and wbemuuid.lib into your project. The following code can be compiled…

How to identify unknown file type

You should never rely on a filename extension to determine what a file is or what is supposed to “do”…

Crack linux passwords – Bruteforce

> Open your kali distribution where john the ripper is already installed. > Assuming you have a copy of a…

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…

Next Page