Fix OUI download url
@@ -38,7 +38,7 @@ if((fhoui = fopen(ouiname, "w")) == NULL)
}
hnd = curl_easy_init ();
-curl_easy_setopt(hnd, CURLOPT_URL, "http://standards-oui.ieee.org/oui.txt");
+curl_easy_setopt(hnd, CURLOPT_URL, "http://standards-oui.ieee.org/oui/oui.txt");
curl_easy_setopt(hnd, CURLOPT_NOPROGRESS, 1L);
curl_easy_setopt(hnd, CURLOPT_MAXREDIRS, 5L);
curl_easy_setopt(hnd, CURLOPT_WRITEDATA, fhoui);
@@ -48,7 +48,7 @@ curl_easy_cleanup(hnd);
fclose(fhoui);
if(ret != 0)
{
- fprintf(stderr, "download not successful");
+ fprintf(stderr, "download not successful\n");
exit(EXIT_FAILURE);
}
@@ -421,7 +421,7 @@ printf("%s %s (C) %s ZeroBeat\n"
"usage: %s <options>\n"
"\n"
"options:\n"
- "-d : download http://standards-oui.ieee.org/oui.txt\n"
+ "-d : download http://standards-oui.ieee.org/oui/oui.txt\n"
" : and save to ~/.hcxtools/oui.txt\n"
" : internet connection required\n"
"-m <mac> : mac (six bytes of mac addr) or \n"
@@ -600,7 +600,7 @@ if(ouiname == NULL)
{
fprintf(stderr, "failed read oui.txt\n"
"use download option -d to download it\n"
- "or download file http://standards-oui.ieee.org/oui.txt\n"
+ "or download file http://standards-oui.ieee.org/oui/oui.txt\n"
"and save it to ~/.hcxtools/oui.txt\n");
exit(EXIT_FAILURE);
}
@@ -608,7 +608,7 @@ if(stat(ouiname, &statinfo) < 0)
{
fprintf(stderr, "failed read oui.txt\n"
"use download option -d to download it\n"
- "or download file http://standards-oui.ieee.org/oui.txt\n"
+ "or download file http://standards-oui.ieee.org/oui/oui.txt\n"
"and save it to ~/.hcxtools/oui.txt\n");
exit(EXIT_FAILURE);
}
