69,373
社区成员
发帖
与我相关
我的任务
分享
#include<stdio.h>
#include<stdlib.h>
int main()
{
system("ipconfig /all");
return 0;
}
int main()
{
system("ipconfig /all");
}
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
FILE *f;
char ln[80];
int main() {
system("ipconfig /all | find \"Physical Address\" >ipconfig.txt");
f=fopen("ipconfig.txt","r");
if (NULL!=f) {
fgets(ln,80,f);
fclose(f);
printf("MAC:%s",ln+strlen(ln)-19);
return 0;
} return 1;
}
//MAC:48-5B-39-CC-38-E5