Changeset 463

Show
Ignore:
Timestamp:
04/01/06 18:37:11 (3 years ago)
Author:
dp
Message:

shellcode-signatures

  • allow invalid escape sequences (ignore escape request)
Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • nepenthes/trunk/modules/shellcode-signatures/lex.yy.c

    r462 r463  
    283283        yy_c_buf_p = yy_cp; 
    284284 
    285 #define YY_NUM_RULES 57 
    286 #define YY_END_OF_BUFFER 58 
     285#define YY_NUM_RULES 58 
     286#define YY_END_OF_BUFFER 59 
    287287static yyconst short int yy_accept[219] = 
    288288    {   0, 
    289        55,   55,   40,   40,   53,   53,   58,   57,   55,   56
    290        44,    1,    2,    7,   57,    6,    5,   38,   38,   38, 
     289       56,   56,   40,   40,   53,   53,   59,   58,   56,   57
     290       44,    1,    2,    7,   58,    6,    5,   38,   38,   38, 
    291291       38,   38,   38,   38,   38,   38,   38,   38,   38,   38, 
    292292       38,   38,   38,    3,    4,   40,   43,   42,   53,   45, 
    293        57,   55,   39,   54,   38,   38,   38,   38,   38,   38, 
     293       54,   56,   39,   55,   38,   38,   38,   38,   38,   38, 
    294294       38,   38,   38,   38,   38,   38,   38,   38,   38,   38, 
    295295       38,   38,   38,   38,   38,   38,   38,   40,   42,   41, 
    296        53,   49,   50,   51,   46,   47,   48,    0,   54,   38, 
     296       53,   49,   50,   51,   46,   47,   48,    0,   55,   38, 
    297297       38,   38,   38,   38,   38,   38,   38,   28,   38,   38, 
    298298       38,   38,   38,   38,   38,   38,   38,   36,   38,   38, 
     
    10321032case 54: 
    10331033YY_RULE_SETUP 
    1034 #line 99 "parser.l" 
     1034#line 98 "parser.l" 
    10351035{ } 
    10361036        YY_BREAK 
    10371037case 55: 
    10381038YY_RULE_SETUP 
    1039 #line 101 "parser.l" 
     1039#line 100 "parser.l" 
    10401040{ } 
    10411041        YY_BREAK 
     
    10431043YY_RULE_SETUP 
    10441044#line 102 "parser.l" 
     1045{ } 
     1046        YY_BREAK 
     1047case 57: 
     1048YY_RULE_SETUP 
     1049#line 103 "parser.l" 
    10451050{ line_number++; } 
    10461051        YY_BREAK 
    1047 case 57
    1048 YY_RULE_SETUP 
    1049 #line 104 "parser.l" 
     1052case 58
     1053YY_RULE_SETUP 
     1054#line 105 "parser.l" 
    10501055ECHO; 
    10511056        YY_BREAK 
    1052 #line 1053 "lex.yy.c" 
     1057#line 1058 "lex.yy.c" 
    10531058case YY_STATE_EOF(INITIAL): 
    10541059case YY_STATE_EOF(comment): 
     
    19331938        } 
    19341939#endif 
    1935 #line 104 "parser.l" 
     1940#line 105 "parser.l" 
    19361941 
    19371942 
  • nepenthes/trunk/modules/shellcode-signatures/parser.l

    r462 r463  
    9696} 
    9797<string>[^\"\\]*                                        { string_append(yytext, yyleng); } 
     98<string>"\\"                                            { } 
    9899 
    99100"//"[^\n]*                                                      { }