From a617957516603dd68588459298d1ad3e24353134 Mon Sep 17 00:00:00 2001 From: Brock Date: Thu, 18 Dec 2014 15:47:53 +0800 Subject: [PATCH] add tcpscan.py --- data/nmap_tcp_port.txt | 4243 ++++++++++++++++++++++++++++++++++++++++ tcpscan.py | 32 + 2 files changed, 4275 insertions(+) create mode 100644 data/nmap_tcp_port.txt create mode 100644 tcpscan.py diff --git a/data/nmap_tcp_port.txt b/data/nmap_tcp_port.txt new file mode 100644 index 0000000..c425549 --- /dev/null +++ b/data/nmap_tcp_port.txt @@ -0,0 +1,4243 @@ +1 +2 +3 +4 +6 +7 +8 +9 +10 +11 +12 +13 +14 +15 +16 +17 +19 +20 +21 +22 +23 +24 +25 +26 +27 +28 +29 +30 +31 +32 +33 +34 +35 +37 +38 +40 +42 +43 +44 +45 +47 +48 +49 +50 +51 +52 +53 +54 +55 +56 +57 +58 +59 +60 +65 +66 +67 +68 +69 +70 +71 +72 +73 +74 +75 +76 +77 +79 +80 +81 +82 +83 +84 +85 +86 +87 +88 +89 +90 +91 +92 +93 +94 +95 +96 +97 +98 +99 +100 +101 +102 +103 +104 +106 +108 +109 +110 +111 +112 +113 +114 +115 +116 +117 +118 +119 +120 +122 +123 +124 +125 +127 +128 +129 +130 +132 +133 +135 +136 +137 +138 +139 +141 +142 +143 +144 +146 +148 +149 +150 +151 +157 +158 +161 +162 +163 +168 +173 +174 +176 +177 +179 +180 +181 +182 +184 +185 +189 +190 +191 +192 +193 +194 +196 +199 +200 +201 +202 +204 +205 +206 +209 +210 +211 +212 +213 +214 +216 +217 +219 +220 +221 +222 +223 +224 +225 +226 +228 +229 +230 +231 +233 +234 +235 +236 +237 +238 +248 +249 +250 +251 +252 +253 +254 +255 +256 +257 +258 +259 +260 +261 +262 +264 +265 +267 +268 +270 +271 +273 +276 +277 +280 +284 +288 +289 +293 +294 +295 +300 +301 +303 +305 +306 +308 +311 +315 +316 +322 +325 +326 +329 +333 +334 +336 +337 +340 +343 +346 +350 +351 +352 +353 +355 +358 +360 +361 +362 +364 +366 +369 +370 +373 +380 +383 +388 +389 +391 +392 +397 +399 +400 +401 +402 +403 +404 +406 +407 +408 +410 +411 +412 +413 +414 +415 +416 +417 +418 +419 +420 +422 +423 +425 +427 +428 +432 +434 +435 +437 +438 +439 +440 +441 +442 +443 +444 +445 +446 +447 +448 +449 +450 +451 +452 +453 +454 +456 +457 +458 +460 +462 +464 +465 +466 +470 +472 +473 +475 +479 +480 +481 +485 +486 +487 +491 +492 +493 +496 +497 +500 +501 +502 +505 +507 +509 +510 +511 +512 +513 +514 +515 +516 +518 +522 +523 +524 +525 +526 +528 +530 +533 +535 +536 +538 +540 +541 +542 +543 +544 +545 +548 +552 +553 +554 +555 +556 +557 +560 +561 +563 +564 +568 +569 +570 +571 +572 +577 +578 +582 +583 +587 +591 +593 +596 +598 +599 +600 +601 +602 +603 +604 +605 +606 +607 +608 +609 +610 +611 +612 +613 +614 +615 +616 +617 +618 +619 +620 +621 +622 +623 +624 +625 +626 +627 +628 +629 +630 +631 +632 +633 +634 +635 +636 +637 +638 +639 +640 +641 +642 +643 +644 +645 +646 +647 +648 +649 +651 +652 +653 +654 +655 +656 +657 +658 +659 +660 +661 +662 +663 +664 +665 +666 +667 +668 +669 +670 +672 +673 +674 +675 +676 +677 +678 +680 +681 +682 +683 +684 +685 +686 +687 +688 +689 +690 +691 +692 +694 +695 +696 +697 +698 +699 +700 +701 +702 +703 +704 +705 +706 +707 +708 +709 +710 +711 +712 +713 +714 +715 +716 +717 +718 +719 +720 +721 +722 +723 +724 +725 +726 +727 +728 +729 +730 +731 +732 +733 +734 +735 +736 +737 +738 +739 +740 +741 +742 +743 +744 +745 +746 +747 +748 +749 +750 +751 +752 +753 +754 +755 +756 +757 +758 +759 +760 +761 +762 +763 +764 +765 +766 +767 +768 +769 +770 +771 +773 +774 +775 +776 +777 +778 +779 +780 +781 +782 +783 +784 +785 +786 +787 +788 +789 +790 +791 +792 +793 +794 +795 +796 +797 +798 +799 +800 +801 +802 +803 +804 +805 +806 +807 +808 +809 +810 +811 +812 +813 +814 +815 +816 +817 +818 +819 +820 +821 +822 +823 +824 +825 +826 +827 +828 +829 +830 +831 +832 +833 +834 +835 +836 +837 +838 +839 +840 +841 +842 +843 +844 +845 +846 +847 +848 +849 +850 +851 +852 +853 +854 +855 +856 +857 +858 +859 +860 +861 +862 +863 +864 +865 +866 +867 +868 +869 +870 +871 +872 +873 +874 +875 +876 +877 +878 +879 +880 +881 +882 +883 +884 +885 +886 +887 +888 +889 +890 +891 +892 +893 +894 +895 +896 +897 +898 +899 +900 +901 +902 +903 +904 +905 +906 +907 +908 +909 +910 +911 +912 +913 +914 +915 +916 +918 +919 +920 +921 +922 +923 +924 +925 +926 +927 +928 +929 +930 +931 +932 +933 +934 +935 +936 +937 +938 +939 +941 +942 +943 +944 +945 +946 +947 +948 +949 +950 +951 +952 +953 +954 +955 +956 +957 +958 +959 +960 +961 +962 +963 +964 +965 +966 +967 +968 +969 +970 +971 +972 +973 +974 +975 +976 +977 +978 +979 +980 +981 +982 +983 +984 +985 +986 +987 +988 +989 +990 +991 +992 +993 +994 +995 +996 +997 +998 +999 +1000 +1001 +1002 +1003 +1004 +1005 +1006 +1007 +1008 +1009 +1010 +1011 +1012 +1013 +1014 +1015 +1016 +1017 +1018 +1019 +1020 +1021 +1022 +1023 +1024 +1025 +1026 +1027 +1028 +1029 +1030 +1031 +1032 +1033 +1034 +1035 +1036 +1037 +1038 +1039 +1040 +1041 +1042 +1043 +1044 +1045 +1046 +1047 +1048 +1049 +1050 +1051 +1052 +1053 +1054 +1055 +1056 +1057 +1058 +1059 +1060 +1061 +1062 +1063 +1064 +1065 +1066 +1067 +1068 +1069 +1070 +1071 +1072 +1073 +1074 +1075 +1076 +1077 +1078 +1079 +1080 +1081 +1082 +1083 +1084 +1085 +1086 +1087 +1088 +1089 +1090 +1091 +1092 +1093 +1094 +1095 +1096 +1097 +1098 +1099 +1100 +1101 +1102 +1103 +1104 +1105 +1106 +1107 +1108 +1109 +1110 +1111 +1112 +1113 +1114 +1116 +1117 +1118 +1119 +1121 +1122 +1123 +1124 +1125 +1126 +1127 +1128 +1130 +1131 +1132 +1134 +1135 +1136 +1137 +1138 +1139 +1141 +1143 +1144 +1145 +1147 +1148 +1149 +1150 +1151 +1152 +1153 +1154 +1156 +1157 +1158 +1159 +1162 +1163 +1164 +1165 +1166 +1167 +1168 +1169 +1173 +1174 +1175 +1176 +1178 +1179 +1180 +1182 +1183 +1184 +1185 +1186 +1187 +1188 +1190 +1191 +1192 +1194 +1195 +1196 +1198 +1199 +1200 +1201 +1204 +1207 +1208 +1209 +1210 +1211 +1212 +1213 +1214 +1215 +1216 +1217 +1218 +1220 +1221 +1222 +1223 +1228 +1229 +1233 +1234 +1236 +1239 +1240 +1241 +1243 +1244 +1247 +1248 +1249 +1250 +1251 +1259 +1261 +1262 +1264 +1268 +1270 +1271 +1272 +1276 +1277 +1279 +1282 +1287 +1290 +1291 +1296 +1297 +1299 +1300 +1301 +1302 +1303 +1305 +1306 +1307 +1308 +1309 +1310 +1311 +1314 +1315 +1316 +1317 +1318 +1319 +1321 +1322 +1324 +1327 +1328 +1330 +1331 +1334 +1336 +1337 +1339 +1340 +1346 +1347 +1348 +1349 +1350 +1351 +1352 +1353 +1354 +1355 +1356 +1357 +1358 +1359 +1360 +1361 +1362 +1363 +1364 +1365 +1366 +1367 +1368 +1369 +1370 +1371 +1372 +1373 +1374 +1376 +1379 +1381 +1383 +1384 +1385 +1386 +1387 +1388 +1389 +1390 +1391 +1393 +1394 +1395 +1396 +1397 +1398 +1399 +1400 +1401 +1402 +1403 +1404 +1405 +1407 +1408 +1409 +1410 +1411 +1412 +1413 +1414 +1416 +1417 +1418 +1419 +1420 +1422 +1423 +1424 +1426 +1427 +1429 +1430 +1432 +1433 +1434 +1435 +1436 +1437 +1438 +1439 +1440 +1441 +1442 +1443 +1444 +1445 +1446 +1448 +1449 +1451 +1453 +1454 +1455 +1456 +1457 +1458 +1459 +1461 +1462 +1464 +1465 +1466 +1467 +1469 +1470 +1472 +1473 +1474 +1475 +1476 +1479 +1480 +1482 +1483 +1484 +1486 +1488 +1491 +1492 +1493 +1494 +1495 +1496 +1497 +1498 +1499 +1500 +1501 +1502 +1503 +1505 +1507 +1508 +1509 +1510 +1511 +1513 +1515 +1516 +1517 +1518 +1519 +1521 +1522 +1523 +1524 +1525 +1526 +1527 +1528 +1529 +1531 +1532 +1533 +1535 +1537 +1538 +1539 +1540 +1541 +1542 +1543 +1544 +1545 +1547 +1548 +1549 +1550 +1551 +1552 +1556 +1558 +1559 +1560 +1565 +1566 +1569 +1580 +1583 +1584 +1592 +1594 +1598 +1600 +1605 +1607 +1615 +1620 +1622 +1632 +1635 +1638 +1641 +1645 +1650 +1651 +1652 +1658 +1661 +1662 +1663 +1664 +1666 +1667 +1668 +1670 +1671 +1672 +1677 +1680 +1683 +1687 +1688 +1691 +1694 +1699 +1700 +1701 +1703 +1707 +1708 +1709 +1711 +1712 +1713 +1715 +1717 +1718 +1719 +1720 +1721 +1722 +1723 +1730 +1735 +1736 +1745 +1750 +1752 +1753 +1755 +1761 +1762 +1763 +1782 +1783 +1791 +1792 +1799 +1800 +1801 +1805 +1806 +1807 +1808 +1811 +1812 +1823 +1825 +1827 +1835 +1839 +1840 +1858 +1861 +1862 +1863 +1864 +1871 +1875 +1900 +1901 +1911 +1912 +1914 +1918 +1924 +1927 +1935 +1947 +1954 +1958 +1971 +1972 +1973 +1974 +1975 +1976 +1981 +1984 +1986 +1987 +1988 +1989 +1990 +1991 +1992 +1993 +1994 +1995 +1996 +1997 +1998 +1999 +2000 +2001 +2002 +2003 +2004 +2005 +2006 +2007 +2008 +2009 +2010 +2011 +2012 +2013 +2014 +2015 +2016 +2018 +2019 +2020 +2021 +2022 +2023 +2024 +2025 +2026 +2027 +2028 +2030 +2031 +2033 +2034 +2035 +2038 +2040 +2041 +2042 +2043 +2044 +2045 +2046 +2047 +2048 +2049 +2053 +2062 +2064 +2065 +2067 +2068 +2069 +2070 +2080 +2081 +2082 +2083 +2086 +2087 +2095 +2096 +2099 +2100 +2101 +2103 +2104 +2105 +2106 +2107 +2108 +2111 +2112 +2115 +2119 +2120 +2121 +2124 +2126 +2134 +2135 +2142 +2144 +2148 +2150 +2160 +2161 +2170 +2179 +2187 +2190 +2191 +2196 +2197 +2200 +2201 +2203 +2222 +2224 +2232 +2241 +2250 +2251 +2253 +2260 +2261 +2262 +2265 +2269 +2270 +2271 +2280 +2288 +2291 +2292 +2300 +2301 +2302 +2304 +2307 +2312 +2313 +2323 +2325 +2326 +2330 +2335 +2340 +2366 +2371 +2372 +2381 +2382 +2383 +2391 +2393 +2394 +2399 +2401 +2418 +2425 +2430 +2431 +2432 +2433 +2435 +2436 +2438 +2439 +2449 +2456 +2463 +2472 +2492 +2500 +2501 +2505 +2522 +2525 +2531 +2532 +2550 +2551 +2557 +2558 +2564 +2567 +2580 +2583 +2584 +2598 +2600 +2601 +2602 +2604 +2605 +2606 +2607 +2608 +2622 +2623 +2627 +2628 +2631 +2638 +2644 +2691 +2700 +2701 +2702 +2706 +2710 +2711 +2712 +2717 +2718 +2723 +2725 +2728 +2734 +2766 +2800 +2804 +2806 +2809 +2811 +2812 +2847 +2850 +2869 +2875 +2882 +2888 +2889 +2898 +2901 +2902 +2903 +2908 +2909 +2910 +2920 +2930 +2957 +2958 +2967 +2968 +2973 +2984 +2987 +2988 +2991 +2997 +2998 +3000 +3001 +3002 +3003 +3005 +3006 +3007 +3011 +3013 +3014 +3017 +3023 +3025 +3030 +3031 +3045 +3049 +3050 +3052 +3057 +3062 +3063 +3064 +3071 +3077 +3080 +3086 +3089 +3102 +3103 +3118 +3119 +3121 +3128 +3141 +3146 +3162 +3167 +3168 +3190 +3200 +3210 +3211 +3220 +3221 +3240 +3260 +3261 +3263 +3264 +3268 +3269 +3280 +3281 +3283 +3291 +3292 +3299 +3300 +3301 +3304 +3306 +3307 +3310 +3311 +3319 +3322 +3323 +3324 +3325 +3333 +3334 +3351 +3362 +3363 +3365 +3367 +3368 +3369 +3370 +3371 +3372 +3374 +3376 +3388 +3389 +3390 +3396 +3397 +3398 +3399 +3400 +3404 +3410 +3414 +3415 +3419 +3421 +3425 +3430 +3439 +3443 +3456 +3457 +3476 +3479 +3483 +3485 +3486 +3493 +3497 +3503 +3505 +3506 +3511 +3513 +3514 +3515 +3517 +3519 +3520 +3526 +3527 +3530 +3531 +3532 +3546 +3551 +3577 +3580 +3586 +3599 +3600 +3602 +3603 +3621 +3622 +3632 +3636 +3637 +3652 +3653 +3656 +3658 +3659 +3663 +3669 +3670 +3672 +3680 +3681 +3683 +3684 +3689 +3690 +3697 +3700 +3703 +3712 +3728 +3731 +3737 +3742 +3749 +3765 +3766 +3784 +3787 +3788 +3790 +3792 +3793 +3795 +3796 +3798 +3799 +3800 +3801 +3803 +3806 +3808 +3809 +3810 +3811 +3812 +3813 +3814 +3817 +3820 +3823 +3824 +3825 +3826 +3827 +3828 +3830 +3831 +3837 +3839 +3842 +3846 +3847 +3848 +3849 +3850 +3851 +3852 +3853 +3856 +3859 +3860 +3863 +3868 +3869 +3870 +3871 +3872 +3876 +3878 +3879 +3880 +3882 +3888 +3889 +3890 +3897 +3899 +3900 +3901 +3902 +3904 +3905 +3906 +3907 +3908 +3909 +3911 +3913 +3914 +3915 +3916 +3918 +3919 +3920 +3922 +3923 +3928 +3929 +3930 +3931 +3935 +3936 +3937 +3940 +3941 +3943 +3944 +3945 +3946 +3948 +3949 +3952 +3956 +3957 +3961 +3962 +3963 +3964 +3967 +3968 +3969 +3971 +3972 +3975 +3979 +3980 +3981 +3982 +3983 +3984 +3985 +3986 +3989 +3990 +3991 +3992 +3993 +3994 +3995 +3996 +3997 +3998 +3999 +4000 +4001 +4002 +4003 +4004 +4005 +4006 +4007 +4008 +4009 +4010 +4016 +4020 +4022 +4024 +4025 +4029 +4035 +4036 +4039 +4040 +4045 +4056 +4058 +4065 +4080 +4087 +4090 +4096 +4100 +4101 +4111 +4112 +4113 +4118 +4119 +4120 +4121 +4125 +4126 +4129 +4132 +4133 +4135 +4141 +4143 +4144 +4147 +4158 +4161 +4164 +4174 +4190 +4192 +4199 +4200 +4206 +4220 +4224 +4234 +4242 +4252 +4262 +4279 +4294 +4297 +4298 +4300 +4302 +4321 +4325 +4328 +4333 +4342 +4343 +4355 +4356 +4357 +4358 +4369 +4374 +4375 +4376 +4384 +4388 +4401 +4407 +4414 +4415 +4418 +4430 +4433 +4442 +4443 +4444 +4445 +4446 +4447 +4449 +4454 +4464 +4471 +4476 +4480 +4500 +4516 +4517 +4530 +4534 +4545 +4550 +4555 +4557 +4558 +4559 +4567 +4570 +4599 +4600 +4601 +4602 +4606 +4609 +4644 +4649 +4658 +4660 +4662 +4665 +4672 +4687 +4689 +4700 +4712 +4713 +4745 +4760 +4767 +4770 +4771 +4778 +4793 +4800 +4819 +4848 +4859 +4860 +4875 +4876 +4877 +4881 +4899 +4900 +4903 +4912 +4931 +4949 +4987 +4998 +4999 +5000 +5001 +5002 +5003 +5004 +5005 +5009 +5010 +5011 +5012 +5013 +5014 +5015 +5016 +5017 +5020 +5021 +5023 +5030 +5033 +5040 +5050 +5051 +5052 +5053 +5054 +5055 +5060 +5061 +5063 +5066 +5070 +5074 +5080 +5081 +5087 +5088 +5090 +5095 +5096 +5098 +5100 +5101 +5102 +5111 +5114 +5120 +5121 +5122 +5125 +5133 +5137 +5145 +5147 +5151 +5152 +5190 +5191 +5193 +5200 +5201 +5202 +5212 +5214 +5219 +5221 +5222 +5223 +5225 +5226 +5232 +5233 +5234 +5235 +5242 +5250 +5252 +5259 +5261 +5269 +5279 +5280 +5291 +5298 +5300 +5301 +5302 +5303 +5308 +5339 +5347 +5353 +5357 +5370 +5377 +5400 +5405 +5414 +5423 +5431 +5432 +5433 +5440 +5441 +5442 +5444 +5457 +5458 +5473 +5475 +5490 +5500 +5501 +5502 +5510 +5520 +5530 +5544 +5550 +5552 +5553 +5554 +5555 +5557 +5560 +5566 +5580 +5581 +5611 +5612 +5620 +5621 +5622 +5631 +5632 +5633 +5665 +5666 +5667 +5672 +5678 +5679 +5680 +5711 +5713 +5714 +5717 +5718 +5721 +5722 +5723 +5730 +5732 +5734 +5737 +5800 +5801 +5802 +5803 +5804 +5806 +5807 +5808 +5810 +5811 +5812 +5814 +5815 +5817 +5818 +5820 +5821 +5822 +5823 +5824 +5825 +5826 +5827 +5831 +5834 +5836 +5838 +5839 +5840 +5845 +5848 +5849 +5850 +5852 +5853 +5854 +5858 +5859 +5860 +5862 +5868 +5869 +5871 +5874 +5875 +5877 +5878 +5881 +5887 +5888 +5899 +5900 +5901 +5902 +5903 +5904 +5905 +5906 +5907 +5908 +5909 +5910 +5911 +5912 +5914 +5915 +5917 +5918 +5920 +5921 +5922 +5923 +5924 +5925 +5926 +5927 +5931 +5934 +5936 +5938 +5939 +5940 +5945 +5948 +5949 +5950 +5952 +5953 +5954 +5958 +5959 +5960 +5961 +5962 +5963 +5966 +5968 +5969 +5971 +5974 +5975 +5977 +5978 +5981 +5985 +5986 +5987 +5988 +5989 +5997 +5998 +5999 +6000 +6001 +6002 +6003 +6004 +6005 +6006 +6007 +6008 +6009 +6010 +6015 +6017 +6021 +6025 +6030 +6050 +6051 +6052 +6055 +6059 +6060 +6062 +6063 +6065 +6067 +6068 +6077 +6085 +6090 +6091 +6100 +6101 +6103 +6105 +6106 +6110 +6111 +6112 +6113 +6115 +6120 +6123 +6126 +6129 +6141 +6142 +6143 +6145 +6146 +6147 +6156 +6161 +6203 +6222 +6247 +6250 +6251 +6259 +6273 +6274 +6309 +6310 +6323 +6324 +6346 +6347 +6349 +6350 +6389 +6400 +6401 +6412 +6481 +6500 +6502 +6503 +6504 +6510 +6520 +6535 +6543 +6544 +6547 +6548 +6550 +6565 +6566 +6567 +6579 +6580 +6588 +6600 +6606 +6628 +6644 +6646 +6647 +6650 +6662 +6665 +6666 +6667 +6668 +6669 +6670 +6689 +6692 +6699 +6700 +6701 +6709 +6710 +6711 +6725 +6732 +6734 +6779 +6780 +6788 +6789 +6792 +6839 +6877 +6881 +6888 +6896 +6897 +6901 +6920 +6922 +6942 +6956 +6969 +6972 +6973 +7000 +7001 +7002 +7003 +7004 +7005 +7006 +7007 +7008 +7009 +7010 +7019 +7024 +7025 +7033 +7043 +7050 +7051 +7067 +7068 +7070 +7071 +7072 +7080 +7092 +7099 +7100 +7101 +7102 +7103 +7104 +7106 +7119 +7121 +7123 +7184 +7200 +7201 +7218 +7231 +7241 +7272 +7273 +7278 +7281 +7300 +7320 +7325 +7326 +7345 +7400 +7402 +7435 +7438 +7443 +7451 +7456 +7464 +7496 +7500 +7501 +7512 +7553 +7555 +7597 +7600 +7625 +7627 +7628 +7634 +7637 +7654 +7676 +7685 +7688 +7725 +7741 +7744 +7749 +7770 +7771 +7772 +7777 +7778 +7780 +7788 +7789 +7800 +7813 +7830 +7852 +7853 +7854 +7878 +7895 +7900 +7911 +7913 +7920 +7921 +7929 +7937 +7938 +7975 +7998 +7999 +8000 +8001 +8002 +8003 +8005 +8006 +8007 +8008 +8009 +8010 +8011 +8014 +8015 +8016 +8018 +8019 +8021 +8022 +8023 +8025 +8029 +8031 +8037 +8042 +8045 +8050 +8052 +8060 +8064 +8076 +8080 +8081 +8082 +8083 +8084 +8085 +8086 +8087 +8088 +8089 +8090 +8092 +8093 +8095 +8097 +8098 +8099 +8100 +8110 +8116 +8118 +8123 +8133 +8144 +8180 +8181 +8189 +8192 +8193 +8194 +8200 +8201 +8202 +8222 +8232 +8245 +8248 +8254 +8255 +8268 +8273 +8282 +8290 +8291 +8292 +8293 +8294 +8295 +8300 +8308 +8333 +8339 +8383 +8385 +8400 +8401 +8402 +8403 +8409 +8443 +8445 +8451 +8452 +8453 +8454 +8455 +8470 +8471 +8472 +8474 +8477 +8479 +8481 +8484 +8500 +8515 +8530 +8531 +8539 +8540 +8562 +8600 +8601 +8621 +8640 +8644 +8648 +8649 +8651 +8652 +8654 +8655 +8658 +8673 +8675 +8676 +8680 +8686 +8701 +8736 +8752 +8756 +8765 +8766 +8770 +8772 +8790 +8798 +8800 +8801 +8843 +8865 +8873 +8877 +8878 +8879 +8880 +8882 +8887 +8888 +8889 +8892 +8898 +8899 +8900 +8925 +8954 +8980 +8987 +8994 +8996 +8999 +9000 +9001 +9002 +9003 +9004 +9005 +9009 +9010 +9011 +9013 +9020 +9021 +9022 +9037 +9040 +9044 +9050 +9051 +9061 +9065 +9071 +9080 +9081 +9084 +9090 +9091 +9098 +9099 +9100 +9101 +9102 +9103 +9104 +9105 +9106 +9107 +9110 +9111 +9125 +9128 +9130 +9131 +9133 +9152 +9160 +9161 +9170 +9183 +9191 +9197 +9198 +9200 +9202 +9207 +9210 +9211 +9220 +9287 +9290 +9300 +9343 +9351 +9364 +9400 +9409 +9415 +9418 +9443 +9444 +9454 +9464 +9478 +9485 +9493 +9500 +9501 +9502 +9503 +9513 +9527 +9535 +9575 +9583 +9592 +9593 +9594 +9595 +9600 +9613 +9616 +9618 +9619 +9620 +9621 +9628 +9643 +9648 +9654 +9661 +9665 +9666 +9667 +9673 +9674 +9679 +9680 +9683 +9694 +9700 +9745 +9777 +9812 +9814 +9815 +9823 +9825 +9826 +9830 +9844 +9875 +9876 +9877 +9878 +9898 +9900 +9901 +9908 +9909 +9910 +9911 +9912 +9914 +9915 +9917 +9919 +9929 +9941 +9943 +9944 +9950 +9968 +9971 +9975 +9979 +9988 +9990 +9991 +9992 +9995 +9998 +9999 +10000 +10001 +10002 +10003 +10004 +10005 +10006 +10007 +10008 +10009 +10010 +10011 +10012 +10018 +10019 +10020 +10022 +10023 +10024 +10025 +10034 +10035 +10042 +10045 +10058 +10064 +10082 +10083 +10093 +10101 +10115 +10160 +10180 +10215 +10238 +10243 +10245 +10246 +10255 +10280 +10338 +10347 +10357 +10387 +10414 +10443 +10494 +10500 +10509 +10529 +10535 +10550 +10551 +10552 +10553 +10554 +10555 +10556 +10565 +10566 +10567 +10601 +10602 +10616 +10617 +10621 +10626 +10628 +10629 +10699 +10754 +10778 +10842 +10852 +10873 +10878 +10900 +11000 +11001 +11003 +11007 +11019 +11026 +11031 +11032 +11033 +11089 +11100 +11110 +11111 +11180 +11200 +11224 +11250 +11288 +11296 +11371 +11401 +11552 +11697 +11735 +11813 +11862 +11863 +11940 +11967 +12000 +12001 +12002 +12005 +12006 +12009 +12019 +12021 +12031 +12034 +12059 +12077 +12080 +12090 +12096 +12097 +12121 +12132 +12137 +12146 +12156 +12171 +12174 +12192 +12215 +12225 +12240 +12243 +12251 +12262 +12265 +12271 +12275 +12296 +12340 +12345 +12346 +12380 +12414 +12452 +12699 +12702 +12766 +12865 +12891 +12892 +12955 +12962 +13017 +13093 +13130 +13132 +13140 +13142 +13149 +13167 +13188 +13192 +13193 +13194 +13229 +13250 +13261 +13264 +13265 +13306 +13318 +13340 +13359 +13456 +13502 +13580 +13695 +13701 +13713 +13714 +13715 +13718 +13720 +13721 +13722 +13723 +13724 +13730 +13766 +13782 +13783 +13784 +13846 +13899 +14000 +14001 +14141 +14147 +14218 +14237 +14238 +14254 +14418 +14441 +14442 +14443 +14444 +14534 +14545 +14693 +14733 +14827 +14891 +14916 +15000 +15001 +15002 +15003 +15004 +15005 +15050 +15145 +15151 +15190 +15191 +15275 +15317 +15344 +15402 +15448 +15550 +15631 +15645 +15646 +15660 +15670 +15677 +15722 +15730 +15742 +15758 +15915 +16000 +16001 +16012 +16016 +16018 +16048 +16080 +16113 +16161 +16270 +16273 +16283 +16286 +16297 +16349 +16372 +16444 +16464 +16705 +16723 +16724 +16725 +16797 +16800 +16845 +16851 +16900 +16901 +16992 +16993 +17007 +17016 +17017 +17070 +17089 +17129 +17251 +17255 +17300 +17409 +17413 +17500 +17595 +17700 +17701 +17702 +17715 +17801 +17802 +17860 +17867 +17877 +17969 +17985 +17988 +17997 +18000 +18012 +18015 +18018 +18040 +18080 +18101 +18148 +18181 +18182 +18183 +18184 +18187 +18231 +18264 +18336 +18337 +18380 +18439 +18505 +18517 +18569 +18669 +18874 +18887 +18910 +18962 +18988 +19010 +19101 +19130 +19150 +19200 +19201 +19283 +19315 +19350 +19353 +19403 +19464 +19501 +19612 +19634 +19715 +19780 +19801 +19842 +19852 +19900 +19995 +19996 +20000 +20001 +20002 +20005 +20011 +20017 +20021 +20031 +20032 +20039 +20052 +20076 +20080 +20085 +20089 +20102 +20106 +20111 +20118 +20125 +20127 +20147 +20179 +20180 +20221 +20222 +20223 +20224 +20225 +20226 +20227 +20228 +20280 +20473 +20734 +20828 +20883 +20934 +20940 +20990 +21011 +21078 +21201 +21473 +21571 +21631 +21634 +21728 +21792 +21891 +21915 +22022 +22063 +22100 +22125 +22128 +22177 +22200 +22222 +22223 +22273 +22290 +22341 +22350 +22555 +22563 +22711 +22719 +22727 +22769 +22882 +22939 +22959 +22969 +23017 +23040 +23052 +23219 +23228 +23270 +23296 +23342 +23382 +23430 +23451 +23502 +23723 +23796 +23887 +23953 +24218 +24392 +24416 +24444 +24552 +24554 +24616 +24800 +24999 +25000 +25001 +25174 +25260 +25262 +25288 +25327 +25445 +25473 +25486 +25565 +25703 +25717 +25734 +25735 +25847 +26000 +26001 +26007 +26208 +26214 +26340 +26417 +26470 +26669 +26972 +27000 +27001 +27002 +27003 +27005 +27007 +27009 +27010 +27015 +27016 +27055 +27074 +27075 +27087 +27204 +27316 +27350 +27351 +27352 +27353 +27355 +27356 +27357 +27372 +27374 +27521 +27537 +27665 +27715 +27770 +28114 +28142 +28201 +28211 +28374 +28567 +28717 +28850 +28851 +28924 +28967 +29045 +29152 +29243 +29507 +29672 +29810 +29831 +30000 +30001 +30005 +30087 +30195 +30299 +30519 +30599 +30644 +30659 +30704 +30705 +30718 +30896 +30951 +31033 +31038 +31058 +31072 +31337 +31339 +31386 +31416 +31438 +31522 +31657 +31727 +31728 +32006 +32022 +32031 +32088 +32102 +32200 +32219 +32260 +32261 +32764 +32765 +32767 +32768 +32769 +32770 +32771 +32772 +32773 +32774 +32775 +32776 +32777 +32778 +32779 +32780 +32781 +32782 +32783 +32784 +32785 +32786 +32787 +32788 +32789 +32790 +32791 +32792 +32797 +32798 +32799 +32803 +32807 +32814 +32815 +32816 +32820 +32822 +32835 +32837 +32842 +32858 +32868 +32869 +32871 +32888 +32897 +32898 +32904 +32905 +32908 +32910 +32911 +32932 +32944 +32960 +32961 +32976 +33000 +33011 +33017 +33070 +33087 +33124 +33175 +33192 +33200 +33203 +33277 +33327 +33335 +33337 +33354 +33367 +33395 +33444 +33453 +33522 +33523 +33550 +33554 +33604 +33605 +33841 +33879 +33882 +33889 +33895 +33899 +34021 +34036 +34096 +34189 +34317 +34341 +34381 +34401 +34507 +34510 +34571 +34572 +34573 +34683 +34728 +34765 +34783 +34833 +34875 +35033 +35050 +35116 +35131 +35217 +35272 +35349 +35392 +35393 +35401 +35500 +35506 +35513 +35553 +35593 +35731 +35879 +35900 +35901 +35906 +35929 +35986 +36046 +36104 +36105 +36256 +36275 +36368 +36436 +36508 +36530 +36552 +36659 +36677 +36694 +36710 +36748 +36823 +36824 +36914 +36950 +36962 +36983 +37121 +37151 +37174 +37185 +37218 +37393 +37522 +37607 +37614 +37647 +37674 +37777 +37789 +37839 +37855 +38029 +38037 +38185 +38188 +38194 +38205 +38224 +38270 +38292 +38313 +38331 +38358 +38446 +38481 +38546 +38561 +38570 +38761 +38764 +38780 +38805 +38936 +39067 +39117 +39136 +39265 +39293 +39376 +39380 +39433 +39482 +39489 +39630 +39659 +39732 +39763 +39774 +39795 +39869 +39883 +39895 +39917 +40000 +40001 +40002 +40003 +40005 +40011 +40193 +40306 +40393 +40400 +40457 +40489 +40513 +40614 +40628 +40712 +40732 +40754 +40811 +40812 +40834 +40911 +40951 +41064 +41123 +41142 +41250 +41281 +41318 +41342 +41345 +41348 +41398 +41442 +41511 +41523 +41551 +41632 +41773 +41794 +41795 +41808 +42001 +42035 +42127 +42158 +42251 +42276 +42322 +42449 +42452 +42510 +42559 +42560 +42575 +42590 +42632 +42675 +42679 +42685 +42735 +42906 +42990 +43000 +43002 +43018 +43027 +43103 +43139 +43143 +43188 +43212 +43231 +43242 +43425 +43654 +43690 +43734 +43823 +43868 +44004 +44101 +44119 +44176 +44200 +44334 +44380 +44410 +44431 +44442 +44443 +44479 +44501 +44505 +44541 +44616 +44628 +44704 +44709 +44711 +44965 +44981 +45038 +45050 +45100 +45136 +45164 +45220 +45226 +45413 +45438 +45463 +45602 +45624 +45697 +45777 +45864 +45960 +46034 +46069 +46115 +46171 +46182 +46200 +46310 +46372 +46418 +46436 +46593 +46813 +46992 +46996 +47012 +47029 +47119 +47197 +47267 +47348 +47372 +47448 +47544 +47557 +47567 +47581 +47595 +47624 +47634 +47700 +47777 +47806 +47850 +47858 +47860 +47966 +47969 +48009 +48067 +48080 +48083 +48127 +48153 +48167 +48356 +48434 +48619 +48631 +48648 +48682 +48783 +48813 +48925 +48966 +48967 +48973 +49002 +49048 +49132 +49152 +49153 +49154 +49155 +49156 +49157 +49158 +49159 +49160 +49161 +49163 +49164 +49165 +49166 +49167 +49168 +49169 +49170 +49171 +49172 +49173 +49175 +49176 +49179 +49186 +49189 +49190 +49191 +49195 +49196 +49197 +49201 +49202 +49203 +49204 +49211 +49213 +49216 +49228 +49232 +49235 +49236 +49241 +49275 +49302 +49352 +49372 +49398 +49400 +49401 +49452 +49498 +49500 +49519 +49520 +49521 +49522 +49597 +49603 +49678 +49751 +49762 +49765 +49803 +49927 +49999 +50000 +50001 +50002 +50003 +50006 +50016 +50019 +50040 +50050 +50101 +50189 +50198 +50202 +50205 +50224 +50246 +50258 +50277 +50300 +50356 +50389 +50500 +50513 +50529 +50545 +50576 +50577 +50585 +50636 +50692 +50733 +50787 +50800 +50809 +50815 +50831 +50833 +50834 +50835 +50836 +50849 +50854 +50887 +50903 +50945 +50997 +51011 +51020 +51037 +51067 +51103 +51118 +51139 +51191 +51233 +51234 +51235 +51240 +51300 +51343 +51351 +51366 +51413 +51423 +51460 +51484 +51485 +51488 +51493 +51515 +51582 +51658 +51771 +51772 +51800 +51809 +51906 +51909 +51961 +51965 +52000 +52001 +52002 +52003 +52025 +52046 +52071 +52173 +52225 +52226 +52230 +52237 +52262 +52391 +52477 +52506 +52573 +52660 +52665 +52673 +52675 +52710 +52735 +52822 +52847 +52848 +52849 +52850 +52851 +52853 +52869 +52893 +52948 +53085 +53178 +53189 +53211 +53212 +53240 +53313 +53314 +53319 +53361 +53370 +53460 +53469 +53491 +53535 +53633 +53639 +53656 +53690 +53742 +53782 +53827 +53852 +53910 +53958 +54045 +54075 +54101 +54127 +54235 +54263 +54276 +54320 +54321 +54323 +54328 +54514 +54551 +54605 +54658 +54688 +54722 +54741 +54873 +54907 +54987 +54991 +55000 +55020 +55055 +55056 +55183 +55187 +55227 +55312 +55350 +55382 +55400 +55426 +55479 +55527 +55555 +55556 +55568 +55569 +55576 +55579 +55600 +55635 +55652 +55684 +55721 +55758 +55773 +55781 +55901 +55907 +55910 +55948 +56016 +56055 +56259 +56293 +56507 +56535 +56591 +56668 +56681 +56723 +56725 +56737 +56738 +56810 +56822 +56827 +56973 +56975 +57020 +57103 +57123 +57294 +57325 +57335 +57347 +57350 +57352 +57387 +57398 +57479 +57576 +57665 +57678 +57681 +57702 +57730 +57733 +57797 +57891 +57896 +57923 +57928 +57988 +57999 +58001 +58002 +58072 +58080 +58107 +58109 +58164 +58252 +58305 +58310 +58374 +58430 +58446 +58456 +58468 +58498 +58562 +58570 +58610 +58622 +58630 +58632 +58634 +58699 +58721 +58838 +58908 +58970 +58991 +59087 +59107 +59110 +59122 +59149 +59160 +59191 +59200 +59201 +59202 +59239 +59340 +59499 +59504 +59509 +59510 +59525 +59565 +59684 +59778 +59810 +59829 +59841 +59987 +60000 +60002 +60003 +60020 +60055 +60086 +60111 +60123 +60146 +60177 +60227 +60243 +60279 +60377 +60401 +60403 +60443 +60485 +60492 +60504 +60544 +60579 +60612 +60621 +60628 +60642 +60713 +60728 +60743 +60753 +60782 +60783 +60789 +60794 +60989 +61159 +61169 +61170 +61402 +61473 +61516 +61532 +61613 +61616 +61617 +61669 +61722 +61734 +61827 +61851 +61900 +61942 +62006 +62042 +62078 +62080 +62188 +62312 +62519 +62570 +62674 +62866 +63105 +63156 +63331 +63423 +63675 +63803 +64080 +64127 +64320 +64438 +64507 +64551 +64623 +64680 +64726 +64727 +64890 +65000 +65048 +65129 +65301 +65310 +65311 +65389 +65488 +65514 diff --git a/tcpscan.py b/tcpscan.py new file mode 100644 index 0000000..a0b31c8 --- /dev/null +++ b/tcpscan.py @@ -0,0 +1,32 @@ +#!/usr/bin/env python +# -*- encoding: utf-8 -*- + +# +# author: Brock | 老妖(laoyaogg@qq.com) +# date: 2014-11-15 +# ver: 0.5 +# + +import sys, os +import socket +import getopt + +def detect_port(host, port): + s = socket.socket() + s.settimeout(1) + try: + s.connect((host, port)) + s.send('GET / HTTP/1.0\n\n') + buf = s.recv(1024) + print port, buf[:buf.find('\n')] + except socket.timeout: + pass + except socket.error: + pass + + s.close() + +for port in open('data/nmap_tcp_port.txt'): + port = int(port) + detect_port(sys.argv[1], port) +