From e6953dcb47193746a4f4d9fff0193723fadbb3e6 Mon Sep 17 00:00:00 2001 From: David Timber Date: Thu, 17 Sep 2020 19:00:28 +0930 Subject: * Change value types of containers to uintptr_t * htbt: fix leak in `htbt_main_q_hover()` * proone-recon: fix parse bug --- src/proone-recon.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/proone-recon.c') 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 [port 2] ... [port n]\n" "Options:\n" - "\t: Path to config file. Pass \"-\" to read stdin\n" + "\t: path to config file. \"-\" to read stdin\n" "Config Format: \n" "\t: \"T\" for target or \"BL\" for blacklist\n" "\t: /\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, -- cgit