Changeset 453
- Timestamp:
- 03/30/06 02:11:34 (3 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
nepenthes/trunk/modules/shellcode-signatures/y.tab.c
r451 r453 141 141 #line 2 "parser.y" 142 142 143 #define _GNU_SOURCE144 #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" 151 151 152 152 … … 164 164 165 165 static char error_buffer[0xff]; 166 167 #ifndef HAVE_STRNDUP 168 extern char *strndup(const char *, size_t len); 169 #endif 170 166 171 167 172 … … 192 197 193 198 /* Line 213 of yacc.c. */ 194 #line 195"y.tab.c"199 #line 200 "y.tab.c" 195 200 196 201 #if ! defined (yyoverflow) || YYERROR_VERBOSE … … 376 381 377 382 /* YYRLINE[YYN] -- source line where rule number YYN was defined. */ 378 static const unsigned charyyrline[] =379 { 380 0, 47, 47, 49, 53, 78, 86, 91, 96, 101,381 1 06, 111, 116, 121, 126, 131, 136, 141, 147, 149,382 15 3, 157, 158, 159, 163, 170, 174, 177, 179, 183,383 1 87, 191, 195, 199, 203, 207, 211, 215, 219, 223,384 2 27, 231, 235, 243, 251, 253383 static 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 385 390 }; 386 391 #endif … … 1155 1160 { 1156 1161 case 4: 1157 #line 5 4"parser.y"1162 #line 59 "parser.y" 1158 1163 { 1159 1164 int i; … … 1180 1185 1181 1186 case 5: 1182 #line 79"parser.y"1187 #line 84 "parser.y" 1183 1188 { 1184 1189 shellcodes->name = strndup(string_get_buffer(), string_get_len()); … … 1188 1193 1189 1194 case 6: 1190 #line 87"parser.y"1195 #line 92 "parser.y" 1191 1196 { 1192 1197 shellcodes->nspace = sc_xor; … … 1195 1200 1196 1201 case 7: 1197 #line 9 2"parser.y"1202 #line 97 "parser.y" 1198 1203 { 1199 1204 shellcodes->nspace = sc_linkxor; … … 1202 1207 1203 1208 case 8: 1204 #line 97"parser.y"1209 #line 102 "parser.y" 1205 1210 { 1206 1211 shellcodes->nspace = sc_konstanzxor; … … 1209 1214 1210 1215 case 9: 1211 #line 10 2"parser.y"1216 #line 107 "parser.y" 1212 1217 { 1213 1218 shellcodes->nspace = sc_leimbachxor; … … 1216 1221 1217 1222 case 10: 1218 #line 1 07"parser.y"1223 #line 112 "parser.y" 1219 1224 { 1220 1225 shellcodes->nspace = sc_bindshell; … … 1223 1228 1224 1229 case 11: 1225 #line 11 2"parser.y"1230 #line 117 "parser.y" 1226 1231 { 1227 1232 shellcodes->nspace = sc_connectbackshell; … … 1230 1235 1231 1236 case 12: 1232 #line 1 17"parser.y"1237 #line 122 "parser.y" 1233 1238 { 1234 1239 shellcodes->nspace = sc_connectbackfiletransfer; … … 1237 1242 1238 1243 case 13: 1239 #line 12 2"parser.y"1244 #line 127 "parser.y" 1240 1245 { 1241 1246 shellcodes->nspace = sc_execute; … … 1244 1249 1245 1250 case 14: 1246 #line 1 27"parser.y"1251 #line 132 "parser.y" 1247 1252 { 1248 1253 shellcodes->nspace = sc_download; … … 1251 1256 1252 1257 case 15: 1253 #line 13 2"parser.y"1258 #line 137 "parser.y" 1254 1259 { 1255 1260 shellcodes->nspace = sc_url; … … 1258 1263 1259 1264 case 16: 1260 #line 1 37"parser.y"1265 #line 142 "parser.y" 1261 1266 { 1262 1267 shellcodes->nspace = sc_bindfiletransfer; … … 1265 1270 1266 1271 case 17: 1267 #line 14 2"parser.y"1272 #line 147 "parser.y" 1268 1273 { 1269 1274 shellcodes->nspace = sc_base64; … … 1272 1277 1273 1278 case 24: 1274 #line 16 4"parser.y"1279 #line 169 "parser.y" 1275 1280 { 1276 1281 printf("flags none...\n"); … … 1279 1284 1280 1285 case 29: 1281 #line 18 4"parser.y"1286 #line 189 "parser.y" 1282 1287 { 1283 1288 shellcodes->map[shellcodes->map_items++] = sc_key; … … 1286 1291 1287 1292 case 30: 1288 #line 1 88"parser.y"1293 #line 193 "parser.y" 1289 1294 { 1290 1295 shellcodes->map[shellcodes->map_items++] = sc_subkey; … … 1293 1298 1294 1299 case 31: 1295 #line 19 2"parser.y"1300 #line 197 "parser.y" 1296 1301 { 1297 1302 shellcodes->map[shellcodes->map_items++] = sc_size; … … 1300 1305 1301 1306 case 32: 1302 #line 196"parser.y"1307 #line 201 "parser.y" 1303 1308 { 1304 1309 shellcodes->map[shellcodes->map_items++] = sc_sizeinvert; … … 1307 1312 1308 1313 case 33: 1309 #line 20 0"parser.y"1314 #line 205 "parser.y" 1310 1315 { 1311 1316 shellcodes->map[shellcodes->map_items++] = sc_port; … … 1314 1319 1315 1320 case 34: 1316 #line 20 4"parser.y"1321 #line 209 "parser.y" 1317 1322 { 1318 1323 shellcodes->map[shellcodes->map_items++] = sc_host; … … 1321 1326 1322 1327 case 35: 1323 #line 2 08"parser.y"1328 #line 213 "parser.y" 1324 1329 { 1325 1330 shellcodes->map[shellcodes->map_items++] = sc_command; … … 1328 1333 1329 1334 case 36: 1330 #line 21 2"parser.y"1335 #line 217 "parser.y" 1331 1336 { 1332 1337 shellcodes->map[shellcodes->map_items++] = sc_uri; … … 1335 1340 1336 1341 case 37: 1337 #line 2 16"parser.y"1342 #line 221 "parser.y" 1338 1343 { 1339 1344 shellcodes->map[shellcodes->map_items++] = sc_pcre; … … 1342 1347 1343 1348 case 38: 1344 #line 22 0"parser.y"1349 #line 225 "parser.y" 1345 1350 { 1346 1351 shellcodes->map[shellcodes->map_items++] = sc_pre; … … 1349 1354 1350 1355 case 39: 1351 #line 22 4"parser.y"1356 #line 229 "parser.y" 1352 1357 { 1353 1358 shellcodes->map[shellcodes->map_items++] = sc_post; … … 1356 1361 1357 1362 case 40: 1358 #line 2 28"parser.y"1363 #line 233 "parser.y" 1359 1364 { 1360 1365 shellcodes->map[shellcodes->map_items++] = sc_none; … … 1363 1368 1364 1369 case 41: 1365 #line 23 2"parser.y"1370 #line 237 "parser.y" 1366 1371 { 1367 1372 shellcodes->map[shellcodes->map_items++] = sc_hostkey; … … 1370 1375 1371 1376 case 42: 1372 #line 2 36"parser.y"1377 #line 241 "parser.y" 1373 1378 { 1374 1379 shellcodes->map[shellcodes->map_items++] = sc_portkey; … … 1377 1382 1378 1383 case 43: 1379 #line 24 4"parser.y"1384 #line 249 "parser.y" 1380 1385 { 1381 1386 shellcodes->pattern = strndup(string_get_buffer(), string_get_len()); … … 1389 1394 1390 1395 /* Line 1037 of yacc.c. */ 1391 #line 139 2"y.tab.c"1396 #line 1397 "y.tab.c" 1392 1397 1393 1398 yyvsp -= yylen; … … 1617 1622 1618 1623 1619 #line 2 56"parser.y"1624 #line 261 "parser.y" 1620 1625 1621 1626
