Changeset 499

Show
Ignore:
Timestamp:
04/08/06 20:40:14 (3 years ago)
Author:
common
Message:

Nepenthes
- shellcode-signatures, tweak some logging tags to spam less

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • nepenthes/trunk/modules/shellcode-signatures/sch_namespace_base64.cpp

    r445 r499  
    8181                                        continue; 
    8282 
    83                         logInfo(" i = %i map_items %i , map = %s\n",i,m_MapItems, sc_get_mapping_by_numeric(m_Map[i])); 
     83                        logSpam(" i = %i map_items %i , map = %s\n",i,m_MapItems, sc_get_mapping_by_numeric(m_Map[i])); 
    8484                        const char *match = NULL; 
    8585                        pcre_get_substring((char *) shellcode, (int *)ovec, (int)matchCount, i, &match); 
  • nepenthes/trunk/modules/shellcode-signatures/sch_namespace_bindfiletransfer.cpp

    r445 r499  
    8787                if ( (matchCount = pcre_exec(m_Pcre, 0, (char *) shellcode, len, 0, 0, (int *)ovec, sizeof(ovec)/sizeof(int32_t))) > 0 ) 
    8888                { 
    89                         logCrit("MATCH %s  matchCount %i map_items %i \n",m_ShellcodeHandlerName.c_str(), matchCount, m_MapItems); 
     89                        logSpam("MATCH %s  matchCount %i map_items %i \n",m_ShellcodeHandlerName.c_str(), matchCount, m_MapItems); 
    9090                        int32_t i; 
    9191                        for ( i=0; i < m_MapItems; i++ ) 
  • nepenthes/trunk/modules/shellcode-signatures/sch_namespace_connectbackfiletransfer.cpp

    r445 r499  
    9090                if ( (matchCount = pcre_exec(m_Pcre, 0, (char *) shellcode, len, 0, 0, (int *)ovec, sizeof(ovec)/sizeof(int32_t))) > 0 ) 
    9191                { 
    92                         logCrit("MATCH %s  matchCount %i map_items %i \n",m_ShellcodeHandlerName.c_str(), matchCount, m_MapItems); 
     92                        logSpam("MATCH %s  matchCount %i map_items %i \n",m_ShellcodeHandlerName.c_str(), matchCount, m_MapItems); 
    9393                        int32_t i; 
    9494                        for ( i=0; i < m_MapItems; i++ ) 
     
    9898                                 
    9999 
    100                                 logInfo(" i = %i map_items %i , map = %s\n",i,m_MapItems, sc_get_mapping_by_numeric(m_Map[i])); 
     100                                logSpam(" i = %i map_items %i , map = %s\n",i,m_MapItems, sc_get_mapping_by_numeric(m_Map[i])); 
    101101                                const char *match = NULL; 
    102102                                pcre_get_substring((char *) shellcode, (int *)ovec, (int)matchCount, i, &match); 
  • nepenthes/trunk/modules/shellcode-signatures/sch_namespace_connectbackshell.cpp

    r445 r499  
    9494                if ( (matchCount = pcre_exec(m_Pcre, 0, (char *) shellcode, len, 0, 0, (int *)ovec, sizeof(ovec)/sizeof(int32_t))) > 0 ) 
    9595                { 
    96                         logCrit("MATCH %s  matchCount %i map_items %i \n",m_ShellcodeHandlerName.c_str(), matchCount, m_MapItems); 
     96                        logSpam("MATCH %s  matchCount %i map_items %i \n",m_ShellcodeHandlerName.c_str(), matchCount, m_MapItems); 
    9797                        int32_t i; 
    9898                        for ( i=0; i < m_MapItems; i++ ) 
     
    102102                                 
    103103 
    104                                 logInfo(" i = %i map_items %i , map = %s\n",i,m_MapItems, sc_get_mapping_by_numeric(m_Map[i])); 
     104                                logSpam(" i = %i map_items %i , map = %s\n",i,m_MapItems, sc_get_mapping_by_numeric(m_Map[i])); 
    105105                                const char *match = NULL; 
    106106                                pcre_get_substring((char *) shellcode, (int *)ovec, (int)matchCount, i, &match); 
  • nepenthes/trunk/modules/shellcode-signatures/sch_namespace_execute.cpp

    r445 r499  
    7777                 pcre_get_substring((char *) shellcode, (int *)ovec, (int)matchCount, 1, &match); 
    7878 
    79                  logInfo("%s \"%s\" \n",m_ShellcodeHandlerName.c_str(), match); 
     79                 logSpam("%s \"%s\" \n",m_ShellcodeHandlerName.c_str(), match); 
    8080 
    8181                 if (g_Nepenthes->getFactoryMgr()->getFactory("WinNTShell DialogueFactory") == NULL) 
  • nepenthes/trunk/modules/shellcode-signatures/sch_namespace_konstanzxor.cpp

    r445 r499  
    7676        if ( (matchCount = pcre_exec(m_Pcre, 0, (char *) shellcode, len, 0, 0, (int *)ovec, sizeof(ovec)/sizeof(int32_t))) > 0 ) 
    7777        { 
    78                 logCrit("MATCH %s  matchCount %i map_items %i \n",m_ShellcodeHandlerName.c_str(), matchCount, m_MapItems); 
     78                logSpam("MATCH %s  matchCount %i map_items %i \n",m_ShellcodeHandlerName.c_str(), matchCount, m_MapItems); 
    7979                int32_t i; 
    8080                for ( i=0; i < m_MapItems; i++ ) 
     
    8383                                        continue; 
    8484 
    85                         logInfo(" i = %i map_items %i , map = %s\n",i,m_MapItems, sc_get_mapping_by_numeric(m_Map[i])); 
     85                        logSpam(" i = %i map_items %i , map = %s\n",i,m_MapItems, sc_get_mapping_by_numeric(m_Map[i])); 
    8686                        const char *match = NULL; 
    8787                        int matchSize = pcre_get_substring((char *) shellcode, (int *)ovec, (int)matchCount, i, &match); 
  • nepenthes/trunk/modules/shellcode-signatures/sch_namespace_xor.cpp

    r471 r499  
    9797        if ( (matchCount = pcre_exec(m_Pcre, 0, (char *) shellcode, len, 0, 0, (int *)ovec, sizeof(ovec)/sizeof(int32_t))) > 0 ) 
    9898        { 
    99                 logCrit("MATCH %s  matchCount %i map_items %i \n",m_ShellcodeHandlerName.c_str(), matchCount, m_MapItems); 
     99                logSpam("MATCH %s  matchCount %i map_items %i \n",m_ShellcodeHandlerName.c_str(), matchCount, m_MapItems); 
    100100                int32_t i; 
    101101                for ( i=0; i < m_MapItems; i++ ) 
     
    104104                                        continue; 
    105105 
    106                         logInfo(" i = %i map_items %i , map = %s\n",i,m_MapItems, sc_get_mapping_by_numeric(m_Map[i])); 
     106                        logSpam(" i = %i map_items %i , map = %s\n",i,m_MapItems, sc_get_mapping_by_numeric(m_Map[i])); 
    107107                        const char *match = NULL; 
    108108                        int matchSize = pcre_get_substring((char *) shellcode, (int *)ovec, (int)matchCount, i, &match); 
     
    230230                memcpy(newshellcode+preSize+decoderSize     ,decodedMessage ,postSize); 
    231231 
    232               g_Nepenthes->getUtilities()->hexdump(l_crit,(byte *)newshellcode, len);                  
     232//            g_Nepenthes->getUtilities()->hexdump(l_crit,(byte *)newshellcode, len);                  
    233233 
    234234                Message *newMessage = new Message((char *)newshellcode, len, (*msg)->getLocalPort(), (*msg)->getRemotePort(),