Changeset 469
- Timestamp:
- 04/04/06 02:35:18 (3 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
nepenthes/trunk/modules/shellcode-signatures/y.tab.c
r467 r469 384 384 static const unsigned short int yyrline[] = 385 385 { 386 0, 53, 53, 55, 59, 84, 93, 98, 103, 108,387 1 13, 118, 123, 128, 133, 138, 143, 148, 154, 156,388 1 60, 164, 165, 166, 170, 177, 181, 184, 186, 194,389 198, 202, 206, 210, 214, 218, 222, 226, 230, 234,390 2 38, 242, 246, 253, 261, 263386 0, 53, 53, 55, 59, 100, 109, 114, 119, 124, 387 129, 134, 139, 144, 149, 154, 159, 164, 170, 172, 388 176, 180, 181, 182, 186, 193, 197, 204, 206, 214, 389 218, 222, 226, 230, 234, 238, 242, 246, 250, 254, 390 258, 262, 266, 273, 281, 283 391 391 }; 392 392 #endif … … 1163 1163 #line 60 "parser.y" 1164 1164 { 1165 /* 1165 1166 int mapinverse[MAP_MAX]; 1167 int i,j; 1168 1169 for( i = 0, j=shellcodes->map_items-1; i < shellcodes->map_items; i++,j-- ) 1170 { 1171 printf(" i = %i j = %i value %i\n",i,j,shellcodes->map[i]); 1172 mapinverse[j] = shellcodes->map[i]; 1173 } 1174 1175 for( i = 0 ; i < shellcodes->map_items; i++) 1176 { 1177 shellcodes->map[i] = mapinverse[i]; 1178 } 1179 1180 1181 1166 1182 printf("shellcode:\n"); 1167 1183 … … 1172 1188 printf("\tmap "); 1173 1189 1174 int i;1190 1175 1191 for( i = 0; i < shellcodes->map_items; i++ ) 1176 1192 { … … 1179 1195 1180 1196 printf("\n\n"); 1181 */ 1197 1182 1198 /* prepare for the next one */ 1183 1199 init_shellcode(); … … 1186 1202 1187 1203 case 5: 1188 #line 85"parser.y"1204 #line 101 "parser.y" 1189 1205 { 1190 1206 shellcodes->nspace = (yyvsp[-3]); … … 1195 1211 1196 1212 case 6: 1197 #line 94"parser.y"1213 #line 110 "parser.y" 1198 1214 { 1199 1215 (yyval) = sc_xor; … … 1202 1218 1203 1219 case 7: 1204 #line 99"parser.y"1220 #line 115 "parser.y" 1205 1221 { 1206 1222 (yyval) = sc_linkxor; … … 1209 1225 1210 1226 case 8: 1211 #line 1 04"parser.y"1227 #line 120 "parser.y" 1212 1228 { 1213 1229 (yyval) = sc_konstanzxor; … … 1216 1232 1217 1233 case 9: 1218 #line 1 09"parser.y"1234 #line 125 "parser.y" 1219 1235 { 1220 1236 (yyval) = sc_leimbachxor; … … 1223 1239 1224 1240 case 10: 1225 #line 1 14"parser.y"1241 #line 130 "parser.y" 1226 1242 { 1227 1243 (yyval) = sc_bindshell; … … 1230 1246 1231 1247 case 11: 1232 #line 1 19"parser.y"1248 #line 135 "parser.y" 1233 1249 { 1234 1250 (yyval) = sc_connectbackshell; … … 1237 1253 1238 1254 case 12: 1239 #line 1 24"parser.y"1255 #line 140 "parser.y" 1240 1256 { 1241 1257 (yyval) = sc_connectbackfiletransfer; … … 1244 1260 1245 1261 case 13: 1246 #line 1 29"parser.y"1262 #line 145 "parser.y" 1247 1263 { 1248 1264 (yyval) = sc_execute; … … 1251 1267 1252 1268 case 14: 1253 #line 1 34"parser.y"1269 #line 150 "parser.y" 1254 1270 { 1255 1271 (yyval) = sc_download; … … 1258 1274 1259 1275 case 15: 1260 #line 1 39"parser.y"1276 #line 155 "parser.y" 1261 1277 { 1262 1278 (yyval) = sc_url; … … 1265 1281 1266 1282 case 16: 1267 #line 1 44"parser.y"1283 #line 160 "parser.y" 1268 1284 { 1269 1285 (yyval) = sc_bindfiletransfer; … … 1272 1288 1273 1289 case 17: 1274 #line 1 49"parser.y"1290 #line 165 "parser.y" 1275 1291 { 1276 1292 (yyval) = sc_base64; … … 1279 1295 1280 1296 case 24: 1281 #line 1 71"parser.y"1297 #line 187 "parser.y" 1282 1298 { 1283 1299 printf("flags none...\n"); … … 1285 1301 break; 1286 1302 1287 case 2 8:1288 #line 1 87"parser.y"1303 case 26: 1304 #line 198 "parser.y" 1289 1305 { 1290 1306 if( shellcodes->map_items < (MAP_MAX - 1) ) … … 1293 1309 break; 1294 1310 1311 case 28: 1312 #line 207 "parser.y" 1313 { 1314 if( shellcodes->map_items < (MAP_MAX - 1) ) 1315 shellcodes->map[shellcodes->map_items++] = (yyvsp[-1]); 1316 } 1317 break; 1318 1295 1319 case 29: 1296 #line 195 "parser.y"1320 #line 215 "parser.y" 1297 1321 { 1298 1322 (yyval) = sc_key; … … 1301 1325 1302 1326 case 30: 1303 #line 199 "parser.y"1327 #line 219 "parser.y" 1304 1328 { 1305 1329 (yyval) = sc_subkey; … … 1308 1332 1309 1333 case 31: 1310 #line 2 03 "parser.y"1334 #line 223 "parser.y" 1311 1335 { 1312 1336 (yyval) = sc_size; … … 1315 1339 1316 1340 case 32: 1317 #line 2 07 "parser.y"1341 #line 227 "parser.y" 1318 1342 { 1319 1343 (yyval) = sc_sizeinvert; … … 1322 1346 1323 1347 case 33: 1324 #line 2 11 "parser.y"1348 #line 231 "parser.y" 1325 1349 { 1326 1350 (yyval) = sc_port; … … 1329 1353 1330 1354 case 34: 1331 #line 2 15 "parser.y"1355 #line 235 "parser.y" 1332 1356 { 1333 1357 (yyval) = sc_host; … … 1336 1360 1337 1361 case 35: 1338 #line 2 19 "parser.y"1362 #line 239 "parser.y" 1339 1363 { 1340 1364 (yyval) = sc_command; … … 1343 1367 1344 1368 case 36: 1345 #line 2 23 "parser.y"1369 #line 243 "parser.y" 1346 1370 { 1347 1371 (yyval) = sc_uri; … … 1350 1374 1351 1375 case 37: 1352 #line 2 27 "parser.y"1376 #line 247 "parser.y" 1353 1377 { 1354 1378 (yyval) = sc_pcre; … … 1357 1381 1358 1382 case 38: 1359 #line 2 31 "parser.y"1383 #line 251 "parser.y" 1360 1384 { 1361 1385 (yyval) = sc_pre; … … 1364 1388 1365 1389 case 39: 1366 #line 2 35 "parser.y"1390 #line 255 "parser.y" 1367 1391 { 1368 1392 (yyval) = sc_post; … … 1371 1395 1372 1396 case 40: 1373 #line 2 39 "parser.y"1397 #line 259 "parser.y" 1374 1398 { 1375 1399 (yyval) = sc_none; … … 1378 1402 1379 1403 case 41: 1380 #line 2 43 "parser.y"1404 #line 263 "parser.y" 1381 1405 { 1382 1406 (yyval) = sc_hostkey; … … 1385 1409 1386 1410 case 42: 1387 #line 2 47 "parser.y"1411 #line 267 "parser.y" 1388 1412 { 1389 1413 (yyval) = sc_portkey; … … 1392 1416 1393 1417 case 43: 1394 #line 2 54 "parser.y"1418 #line 274 "parser.y" 1395 1419 { 1396 1420 shellcodes->pattern = strndup(string_get_buffer(), string_get_len()); … … 1404 1428 1405 1429 /* Line 1037 of yacc.c. */ 1406 #line 14 07"y.tab.c"1430 #line 1431 "y.tab.c" 1407 1431 1408 1432 yyvsp -= yylen; … … 1632 1656 1633 1657 1634 #line 2 66 "parser.y"1658 #line 286 "parser.y" 1635 1659 1636 1660
