Changeset 453

Show
Ignore:
Timestamp:
03/30/06 02:11:34 (3 years ago)
Author:
common
Message:

shellcode-signatures
- the new y.tab.c file

Files:

Legend:

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

    r451 r453  
    141141#line 2 "parser.y" 
    142142 
    143        #define _GNU_SOURCE 
    144        #include <string.h> 
    145        #include <stdio.h> 
    146        #include <memory.h> 
    147        #include <errno.h> 
    148  
    149     #include "config.h" 
    150        #include "parser.h" 
     143   #define _GNU_SOURCE 
     144   #include <string.h> 
     145   #include <stdio.h> 
     146   #include <memory.h> 
     147   #include <errno.h> 
     148 
     149   #include "config.h" 
     150   #include "parser.h" 
    151151     
    152152 
     
    164164         
    165165        static char error_buffer[0xff]; 
     166 
     167#ifndef HAVE_STRNDUP 
     168        extern char *strndup(const char *, size_t len);  
     169#endif 
     170         
    166171 
    167172 
     
    192197 
    193198/* Line 213 of yacc.c.  */ 
    194 #line 195 "y.tab.c" 
     199#line 200 "y.tab.c" 
    195200 
    196201#if ! defined (yyoverflow) || YYERROR_VERBOSE 
     
    376381 
    377382/* YYRLINE[YYN] -- source line where rule number YYN was defined.  */ 
    378 static const unsigned char yyrline[] = 
    379 { 
    380        0,    47,    47,    49,    53,    78,    86,    91,    96,   101
    381      106,   111,   116,   121,   126,   131,   136,   141,   147,   149
    382      153,   157,   158,   159,   163,   170,   174,   177,   179,   183
    383      187,   191,   195,   199,   203,   207,   211,   215,   219,   223
    384      227,   231,   235,   243,   251,   253 
     383static const unsigned short int yyrline[] = 
     384{ 
     385       0,    52,    52,    54,    58,    83,    91,    96,   101,   106
     386     111,   116,   121,   126,   131,   136,   141,   146,   152,   154
     387     158,   162,   163,   164,   168,   175,   179,   182,   184,   188
     388     192,   196,   200,   204,   208,   212,   216,   220,   224,   228
     389     232,   236,   240,   248,   256,   258 
    385390}; 
    386391#endif 
     
    11551160    { 
    11561161        case 4: 
    1157 #line 54 "parser.y" 
     1162#line 59 "parser.y" 
    11581163    { 
    11591164                int i; 
     
    11801185 
    11811186  case 5: 
    1182 #line 79 "parser.y" 
     1187#line 84 "parser.y" 
    11831188    { 
    11841189                shellcodes->name = strndup(string_get_buffer(), string_get_len()); 
     
    11881193 
    11891194  case 6: 
    1190 #line 87 "parser.y" 
     1195#line 92 "parser.y" 
    11911196    { 
    11921197                shellcodes->nspace = sc_xor; 
     
    11951200 
    11961201  case 7: 
    1197 #line 92 "parser.y" 
     1202#line 97 "parser.y" 
    11981203    { 
    11991204                shellcodes->nspace = sc_linkxor; 
     
    12021207 
    12031208  case 8: 
    1204 #line 97 "parser.y" 
     1209#line 102 "parser.y" 
    12051210    { 
    12061211                shellcodes->nspace = sc_konstanzxor; 
     
    12091214 
    12101215  case 9: 
    1211 #line 102 "parser.y" 
     1216#line 107 "parser.y" 
    12121217    { 
    12131218                shellcodes->nspace = sc_leimbachxor; 
     
    12161221 
    12171222  case 10: 
    1218 #line 107 "parser.y" 
     1223#line 112 "parser.y" 
    12191224    { 
    12201225                shellcodes->nspace = sc_bindshell; 
     
    12231228 
    12241229  case 11: 
    1225 #line 112 "parser.y" 
     1230#line 117 "parser.y" 
    12261231    { 
    12271232                shellcodes->nspace = sc_connectbackshell; 
     
    12301235 
    12311236  case 12: 
    1232 #line 117 "parser.y" 
     1237#line 122 "parser.y" 
    12331238    { 
    12341239                 shellcodes->nspace = sc_connectbackfiletransfer; 
     
    12371242 
    12381243  case 13: 
    1239 #line 122 "parser.y" 
     1244#line 127 "parser.y" 
    12401245    { 
    12411246                shellcodes->nspace = sc_execute; 
     
    12441249 
    12451250  case 14: 
    1246 #line 127 "parser.y" 
     1251#line 132 "parser.y" 
    12471252    { 
    12481253                shellcodes->nspace = sc_download; 
     
    12511256 
    12521257  case 15: 
    1253 #line 132 "parser.y" 
     1258#line 137 "parser.y" 
    12541259    { 
    12551260                shellcodes->nspace = sc_url; 
     
    12581263 
    12591264  case 16: 
    1260 #line 137 "parser.y" 
     1265#line 142 "parser.y" 
    12611266    { 
    12621267                shellcodes->nspace = sc_bindfiletransfer; 
     
    12651270 
    12661271  case 17: 
    1267 #line 142 "parser.y" 
     1272#line 147 "parser.y" 
    12681273    { 
    12691274                shellcodes->nspace = sc_base64; 
     
    12721277 
    12731278  case 24: 
    1274 #line 164 "parser.y" 
     1279#line 169 "parser.y" 
    12751280    { 
    12761281                printf("flags none...\n"); 
     
    12791284 
    12801285  case 29: 
    1281 #line 184 "parser.y" 
     1286#line 189 "parser.y" 
    12821287    { 
    12831288                shellcodes->map[shellcodes->map_items++] = sc_key; 
     
    12861291 
    12871292  case 30: 
    1288 #line 188 "parser.y" 
     1293#line 193 "parser.y" 
    12891294    { 
    12901295                shellcodes->map[shellcodes->map_items++] = sc_subkey; 
     
    12931298 
    12941299  case 31: 
    1295 #line 192 "parser.y" 
     1300#line 197 "parser.y" 
    12961301    { 
    12971302                shellcodes->map[shellcodes->map_items++] = sc_size; 
     
    13001305 
    13011306  case 32: 
    1302 #line 196 "parser.y" 
     1307#line 201 "parser.y" 
    13031308    { 
    13041309                shellcodes->map[shellcodes->map_items++] = sc_sizeinvert; 
     
    13071312 
    13081313  case 33: 
    1309 #line 200 "parser.y" 
     1314#line 205 "parser.y" 
    13101315    {    
    13111316                 shellcodes->map[shellcodes->map_items++] = sc_port; 
     
    13141319 
    13151320  case 34: 
    1316 #line 204 "parser.y" 
     1321#line 209 "parser.y" 
    13171322    { 
    13181323                shellcodes->map[shellcodes->map_items++] = sc_host; 
     
    13211326 
    13221327  case 35: 
    1323 #line 208 "parser.y" 
     1328#line 213 "parser.y" 
    13241329    { 
    13251330                shellcodes->map[shellcodes->map_items++] = sc_command; 
     
    13281333 
    13291334  case 36: 
    1330 #line 212 "parser.y" 
     1335#line 217 "parser.y" 
    13311336    { 
    13321337           shellcodes->map[shellcodes->map_items++] = sc_uri; 
     
    13351340 
    13361341  case 37: 
    1337 #line 216 "parser.y" 
     1342#line 221 "parser.y" 
    13381343    { 
    13391344           shellcodes->map[shellcodes->map_items++] = sc_pcre; 
     
    13421347 
    13431348  case 38: 
    1344 #line 220 "parser.y" 
     1349#line 225 "parser.y" 
    13451350    { 
    13461351           shellcodes->map[shellcodes->map_items++] = sc_pre; 
     
    13491354 
    13501355  case 39: 
    1351 #line 224 "parser.y" 
     1356#line 229 "parser.y" 
    13521357    { 
    13531358           shellcodes->map[shellcodes->map_items++] = sc_post; 
     
    13561361 
    13571362  case 40: 
    1358 #line 228 "parser.y" 
     1363#line 233 "parser.y" 
    13591364    { 
    13601365           shellcodes->map[shellcodes->map_items++] = sc_none; 
     
    13631368 
    13641369  case 41: 
    1365 #line 232 "parser.y" 
     1370#line 237 "parser.y" 
    13661371    { 
    13671372           shellcodes->map[shellcodes->map_items++] = sc_hostkey; 
     
    13701375 
    13711376  case 42: 
    1372 #line 236 "parser.y" 
     1377#line 241 "parser.y" 
    13731378    { 
    13741379           shellcodes->map[shellcodes->map_items++] = sc_portkey; 
     
    13771382 
    13781383  case 43: 
    1379 #line 244 "parser.y" 
     1384#line 249 "parser.y" 
    13801385    { 
    13811386                shellcodes->pattern = strndup(string_get_buffer(), string_get_len()); 
     
    13891394 
    13901395/* Line 1037 of yacc.c.  */ 
    1391 #line 1392 "y.tab.c" 
     1396#line 1397 "y.tab.c" 
    13921397  
    13931398  yyvsp -= yylen; 
     
    16171622 
    16181623 
    1619 #line 256 "parser.y" 
     1624#line 261 "parser.y" 
    16201625 
    16211626