Tag: address

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 = …

Add-ons, Anonymity, Browsers, Chrome, Firefox, Protection, VPN

WebRTC Vulnerability leaks Real IP Address

WebRTC Vulnerability leaks Real IP Address of VPN User. This security flaw can reveal your real IP address, even if you’re using a VPN, and it’s easy to exploit. To check if you are safe or not: > Visit https://diafygi.github.io/webrtc-ips/ while you are connected to your vpn. > If your real IP address is in …

C#

Get public/external IP address in C#

1) Create a simple form with one button and one textbox. 2) Code private void button1_Click(object sender, EventArgs e) { ThreadStart starter = delegate { Request(); }; Thread thread = new Thread(starter); thread.Start(); }private void button1_Click(object sender, EventArgs e) { ThreadStart starter = delegate { Request(); }; Thread thread = new Thread(starter); thread.Start(); } public …

Microsoft Servers, Microsoft Windows

Physical Address Extension (PAE)

Physical Address Extension (PAE) is a processor feature that enables x86 processors to access more than 4 GB of physical memory on capable versions of Windows. Certain 32-bit versions of Windows Server running on x86-based systems can use PAE to access up to 64 GB or 128 GB of physical memory, depending on the physical …

C, Microsoft Windows, Network

Resolve hostname to ip address in C

Resolve hostname to ip address (TCP v4) in Windows using C and gethostbyname. #include <stdio.h> #include <winsock2.h> #include <ws2tcpip.h>   #pragma comment (lib, "Ws2_32.lib")   void resolve_hostname_to_ipaddress(char* hostname);   int main(int argc, char* argv[]) { resolve_hostname_to_ipaddress("hostname.com");   return EXIT_SUCCESS; }   void resolve_hostname_to_ipaddress(char* hostname) { struct hostent *he; struct in_addr **addr_list; int i;   WSADATA …

C, Microsoft Windows, Network

Resolve hostname to ip address in C

Resolve hostname to ip address (TCP v4) in Windows using C and getaddrinfo. #include <stdio.h> #include <winsock2.h> #include <ws2tcpip.h>   #pragma comment (lib, "Ws2_32.lib")   void resolve_hostname_to_ipaddress(char* hostname);   int main(int argc, char* argv[]) { resolve_hostname_to_ipaddress("hostname.com");   return EXIT_SUCCESS; }   void resolve_hostname_to_ipaddress(char* hostname) { DWORD ppi = -1; struct addrinfo hints; struct addrinfo *ptr …

C#

Get public/external IP address

Use the following code to get your wan/external/public ip address using http://dyndns.org site. try { System.Net.WebClient wc = new System.Net.WebClient(); String s = wc.DownloadString("http://checkip.dyndns.org"); s = ( new System.Text.RegularExpressions.Regex( @"bd{1,3}.d{1,3}.d{1,3}.d{1,3}b")). Match(s).Value; wc.Dispose(); Console.WriteLine(s); } catch (Exception) { //… }try { System.Net.WebClient wc = new System.Net.WebClient(); String s = wc.DownloadString("http://checkip.dyndns.org"); s = ( new System.Text.RegularExpressions.Regex( @"bd{1,3}.d{1,3}.d{1,3}.d{1,3}b")). …

Anonymity, Linux, Microsoft Windows

Change or spoof your Mac address

Windows 1. Open Control Panel 2. Open Network and Internet 3. Open Network and Sharing Center 4. Choose Change adapter settings from the left menu 5. Right click on your ethernet adapter and choose Properties 6. Click Configure.. button 7. Select Advanced tab 8. Click on Network Address property and check the value option on …