From: Jean-Marc Pigeon (Delson) Date: Sun, 13 Jul 2025 13:29:36 +0000 (-0400) Subject: Starting to implement check_credibility within scarmt.c X-Git-Tag: tag-0.14~106 X-Git-Url: https://jmp-git.ovh.safe.ca/?a=commitdiff_plain;h=8985bcd4c6f0c65c7e56ee24b6111b78ac7f6c6c;p=jmp%2Fmailleur Starting to implement check_credibility within scarmt.c --- diff --git a/app/scarmt.c b/app/scarmt.c index f419d06..0245c76 100644 --- a/app/scarmt.c +++ b/app/scarmt.c @@ -28,6 +28,29 @@ */ /********************************************************/ /* */ +/* Procedure to check the remote ip credibility */ +/* remote ip credibility. */ +/* */ +/********************************************************/ +static void check_credibility(SQLPTR *sqlptr,char **dnsbls,char *rmtip) + +{ +#define OPEP "scarmt.c:check_credibilty," + +if (dnsbls!=(char **)0) { + while (*dnsbls!=(char *)0) { + (void) rou_alert(0,"%s JMPDBG scan <%s> against <%s>",OPEP,rmtip,*dnsbls); + dnsbls++; + } + } + +#undef OPEP +} +/* + +*/ +/********************************************************/ +/* */ /* Procedure to load the list of dnsbls server */ /* remote ip credibility. */ /* */ @@ -166,7 +189,7 @@ while (proceed==true) { break; case 4 : //check entries for (int i=0;rmtip[i]!=(char *)0;i++) { - (void) rou_alert(0,"%s JMPDBG need to scan <%s>",OPEP,rmtip[i]); + (void) check_credibility(sqlptr,dnsbls,rmtip[i]); if ((hangup==true)||((reload==true))) break; //No need to check other remote }