Tag: local

C, Microsoft Windows

How to get the local IP address(es) using C in Windows

GetIpAddrTable function You have to add the following libraries into your project: ws2_32.lib and iphlpapi.lib. Check this post on how to link your eclipse project with libraries. #include <winsock2.h> #include <iphlpapi.h> #include <windows.h>   #define MALLOC(x) HeapAlloc(GetProcessHeap(), 0, (x)) #define FREE(x) HeapFree(GetProcessHeap(), 0, (x))   int main(void) { int i; PMIB_IPADDRTABLE pIPAddrTable; DWORD dwSize = …

Auditing, Detection, Enumeration, Exploitation, Scanners

Local and Remote file inclusion

fimap – A little open source tool for local and remote file inclusion auditing and exploitation. It is published under GNU GPLv2.   fimap is awritten in python and can find, prepare, audit, exploit and even google automaticly for local and remote file inclusion bugs in webapps. fimap should be something like sqlmap just for …


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 List<User>(); foreach (ManagementObject mo in (new ManagementObjectSearcher(new SelectQuery("Win32_UserAccount"))).Get()) { users.Add(new User { Name = mo["Name"].ToString(), Caption = mo["Caption"].ToString(), IsDisabled = Boolean.Parse(mo["Disabled"].ToString()), IsLocalAccount = Boolean.Parse(mo["LocalAccount"].ToString()), …