#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
int main() {
execl("c:\\windows\\system32\\ipconfig", "ipconfig", (char *)0);
return 0;
}
/*
run:
Windows IP Configuration
Ethernet adapter Ethernet:
Connection-specific DNS Suffix . :
Link-local IPv6 Address . . . . . : ae00::6010:a000:5300:7101%3
IPv4 Address. . . . . . . . . . . : 123.123.1.12
Subnet Mask . . . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . . : 123.123.1.1
*/