Skip to content

Commit

Permalink
Removed beta flag from wiglecsv
Browse files Browse the repository at this point in the history
  • Loading branch information
dragorn committed Feb 12, 2019
1 parent b45f4d1 commit 313a5d8
Showing 1 changed file with 1 addition and 11 deletions.
12 changes: 1 addition & 11 deletions log_tools/kismetdb_to_wiglecsv.cc
Expand Up @@ -141,7 +141,6 @@ int main(int argc, char *argv[]) {
{ "skip-clean", no_argument, 0, 's' },
{ "rate-limit", required_argument, 0, 'r'},
{ "cache-limit", required_argument, 0, 'c'},
{ "secret", no_argument, 0, 'k' }, // secret argument required to make it work until we're sure it feeds good data to wigle
{ 0, 0, 0, 0 }
};

Expand All @@ -154,8 +153,6 @@ int main(int argc, char *argv[]) {
bool force = false;
bool skipclean = false;

bool beta_ok_secret = false;

int sql_r = 0;
char *sql_errmsg = NULL;
sqlite3 *db = NULL;
Expand All @@ -169,7 +166,7 @@ int main(int argc, char *argv[]) {

while (1) {
int r = getopt_long(argc, argv,
"-hi:o:r:c:vfsk",
"-hi:o:r:c:vfs",
longopt, &option_idx);
if (r < 0) break;

Expand All @@ -186,8 +183,6 @@ int main(int argc, char *argv[]) {
force = true;
} else if (r == 's') {
skipclean = true;
} else if (r == 'k') {
beta_ok_secret = true;
} else if (r == 'r') {
if (sscanf(optarg, "%u", &rate_limit) != 1) {
fprintf(stderr, "ERROR: Expected a rate limit of # seconds between packets of the same device.\n");
Expand All @@ -201,11 +196,6 @@ int main(int argc, char *argv[]) {
}
}

if (!beta_ok_secret) {
fprintf(stderr, "ERROR: This code doesn't isn't quite done yet! It will be soon though. Sorry!\n");
exit(1);
}

if (out_fname == "" || in_fname == "") {
fprintf(stderr, "ERROR: Expected --in [kismetdb file] and "
"--out [wigle CSV file]\n");
Expand Down

0 comments on commit 313a5d8

Please sign in to comment.