Skip to content
Snippets Groups Projects
Commit 79610ed3 authored by Robert David Graham's avatar Robert David Graham
Browse files

config

parent 6e664453
Branches
No related tags found
No related merge requests found
...@@ -299,6 +299,8 @@ masscan_echo(struct Masscan *masscan, FILE *fp) ...@@ -299,6 +299,8 @@ masscan_echo(struct Masscan *masscan, FILE *fp)
fprintf(fp, "rate = %10.2f\n", masscan->max_rate); fprintf(fp, "rate = %10.2f\n", masscan->max_rate);
fprintf(fp, "randomize-hosts = true\n"); fprintf(fp, "randomize-hosts = true\n");
fprintf(fp, "seed = %" PRIu64 "\n", masscan->seed); fprintf(fp, "seed = %" PRIu64 "\n", masscan->seed);
if (masscan->shard.one != 1 && masscan->shard.of != 1)
fprintf(fp, "shard = %u/%u\n", masscan->shard.one, masscan->shard.of); fprintf(fp, "shard = %u/%u\n", masscan->shard.one, masscan->shard.of);
if (masscan->is_banners) if (masscan->is_banners)
fprintf(fp, "banners = true\n"); fprintf(fp, "banners = true\n");
...@@ -986,6 +988,8 @@ config_top_ports(struct Masscan *masscan, unsigned n) ...@@ -986,6 +988,8 @@ config_top_ports(struct Masscan *masscan, unsigned n)
} }
} }
/***************************************************************************
***************************************************************************/
int int
isInteger(const char *value) isInteger(const char *value)
{ {
...@@ -1000,6 +1004,10 @@ isInteger(const char *value) ...@@ -1000,6 +1004,10 @@ isInteger(const char *value)
return 1; return 1;
} }
/***************************************************************************
***************************************************************************/
/*************************************************************************** /***************************************************************************
* Called either from the "command-line" parser when it sees a --parm, * Called either from the "command-line" parser when it sees a --parm,
* or from the "config-file" parser for normal options. * or from the "config-file" parser for normal options.
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment