aboutsummaryrefslogtreecommitdiff
path: root/src/proone-recon.c
diff options
context:
space:
mode:
authorDavid Timber <mieabby@gmail.com>2020-09-17 19:00:28 +0930
committerDavid Timber <mieabby@gmail.com>2020-09-17 19:00:28 +0930
commite6953dcb47193746a4f4d9fff0193723fadbb3e6 (patch)
treeb6fe802c3faf48ec7e294fa61207b4e9126fc3c1 /src/proone-recon.c
parentb54ace5cd8a873be804529f7b8221ee62600d17d (diff)
* Change value types of containers to uintptr_t
* htbt: fix leak in `htbt_main_q_hover()` * proone-recon: fix parse bug
Diffstat (limited to 'src/proone-recon.c')
-rw-r--r--src/proone-recon.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/proone-recon.c b/src/proone-recon.c
index 7f996f2..f5a979e 100644
--- a/src/proone-recon.c
+++ b/src/proone-recon.c
@@ -23,10 +23,10 @@ static regex_t re_entry, re_comment, re_empty;
static void print_help (FILE *o, const char *prog) {
fprintf(
- stderr,
+ o,
"Usage: %s <conf> <port 1> [port 2] ... [port n]\n"
"Options:\n"
- "\t<conf>: Path to config file. Pass \"-\" to read stdin\n"
+ "\t<conf>: path to config file. \"-\" to read stdin\n"
"Config Format: <ENTRY SPEC> <NET SPEC>\n"
"\t<ENTRY SPEC>: \"T\" for target or \"BL\" for blacklist\n"
"\t<NET SPEC>: <IPv4 or IPv6 Address>/<CIDR>\n"
@@ -167,10 +167,10 @@ int main (const int argc, const char **args) {
prne_assert(regcomp(
&re_entry,
- // ^(\s+)?(T|BL)(\s+)?([0-9a-f:.]+)\/([0-9]{1,3})(\s+)?(#.*)?$
+ // ^(\s+)?(T|BL)(\s+)([0-9a-f:.]+)\/([0-9]{1,3})(\s+)?(#.*)?$
// number of captures: 7
// significant groups: 2, 4, 5
- "^(\\s+)?(T|BL)(\\s+)?([0-9a-f:.]+)\\/([0-9]{1,3})(\\s+)?(#.*)?$",
+ "^(\\s+)?(T|BL)(\\s+)([0-9a-f:.]+)\\/([0-9]{1,3})(\\s+)?(#.*)?$",
REG_EXTENDED | REG_ICASE) == 0);
prne_assert(regcomp(
&re_comment,