Changeset 466

Show
Ignore:
Timestamp:
04/03/06 22:53:55 (3 years ago)
Author:
common
Message:

shellcode-signatures
- fix the parser, with me it has to be instead of when assigning the value

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • nepenthes/trunk/modules/shellcode-signatures/parser.y

    r462 r466  
    6868                printf("\tmap                                    "); 
    6969 
     70      int i; 
    7071                for( i = 0; i < shellcodes->map_items; i++ ) 
    7172                { 
     
    186187        { 
    187188                if( shellcodes->map_items < (MAP_MAX - 1) ) 
    188                         shellcodes->map[shellcodes->map_items++] = $1
     189                        shellcodes->map[shellcodes->map_items++] = $2
    189190        } 
    190191        ; 
  • nepenthes/trunk/modules/shellcode-signatures/sch_namespace.cpp

    r448 r466  
    115115        } 
    116116 
    117 //      printf("%s\n",m_Shellcode->pattern); 
     117//      printf("%s\n",m_Pattern.c_str()); 
    118118//      g_Nepenthes->getUtilities()->hexdump((byte *)m_Shellcode->pattern,m_Shellcode->pattern_size); 
    119119        return true;