Add tool info function.

This commit is contained in:
Christian Deacon
2025-02-26 11:57:48 -05:00
parent 24db0f6bda
commit b3a9693d80
3 changed files with 25 additions and 1 deletions

View File

@@ -59,6 +59,12 @@ int main(int argc, char *argv[])
return EXIT_SUCCESS;
}
// Print tool info.
if (cfg.verbose > 0)
{
PrintToolInfo();
}
LogMsg(&cfg, 2, 0, "Raising RLimit...");
// Raise RLimit.

View File

@@ -55,4 +55,21 @@ ip_range_t ParseIpCidr(const char *ip)
}
return ret;
}
/**
* Prints tool name and author.
*
* @return void
*/
void PrintToolInfo()
{
printf(
" __ ______ ____ _____ _ _ _ \n"
" \\ \\/ / _ \\| _ \\ | ___(_)_ __ _____ ____ _| | |\n"
" \\ /| | | | |_) | | |_ | | '__/ _ \\ \\ /\\ / / _` | | |\n"
" / \\| |_| | __/ | _| | | | | __/\\ V V / (_| | | |\n"
" /_/\\_\\____/|_| |_| |_|_| \\___| \\_/\\_/ \\__,_|_|_|\n"
"\n\n"
);
}

View File

@@ -17,4 +17,5 @@ extern int cont;
void PrintHelpMenu();
void SignalHndl(int code);
ip_range_t ParseIpCidr(const char* ip);
ip_range_t ParseIpCidr(const char* ip);
void PrintToolInfo();