Skip to content

bug introduced in naabu 2.3.7 and option -pf #1615

@marrco

Description

@marrco

naabu 2.3.5 gives:

:~$ sudo go/bin/naabu -host 172.30.41.162 -pf myports.txt

[INF] Current naabu version 2.3.5 (outdated)
[WRN] UI Dashboard is disabled, Use -dashboard option to enable
[INF] Running CONNECT scan with non root privileges
172.30.41.162:5985
172.30.41.162:3268
172.30.41.162:636
172.30.41.162:88
172.30.41.162:445
172.30.41.162:53
172.30.41.162:464
172.30.41.162:139
172.30.41.162:135
172.30.41.162:3389
172.30.41.162:3269
172.30.41.162:389
172.30.41.162:593
[INF] Found 13 ports on host 172.30.41.162 (172.30.41.162)

Updated to 2.3.7

:~$  sudo go/bin/naabu -host 172.30.41.162 -pf myports.txt

[INF] Current naabu version 2.3.7 (latest)
[WRN] UI Dashboard is disabled, Use -dashboard option to enable
[FTL] Could not create runner: could not parse ports: could not read ports: invalid port selection segment: '1-7,9,11,13,15,17-27,29-31,32-33,35,37-39,41-59,61-78,79-118,119-128,129-142,143-146,147-163,164-179,180-199,200-224,225,242-248,250-252,254-268,280-287,301,306,308-322,333,340,344-397,398-415,416-417,418-438,439-448,449-458,459-465,466-475,476-481,482-497,498-511,512-539,540-542,543-547,548-557,558-563,564-588,589-593,594-603,604-609,610-615,616-628,629-634,635-645,646-658,659-665,666-682,683-687,688-699,700-702,704-707,709-711,713-715,720-723,725-726,728-732,740-742,744,747-754,757-765,767,769-778,780-783,786-787,790,792,795,799-806,808,810,822-823,825,828-830,839-840,843,846-848,856,859-860,862,864,871,873-874,878,880,886-888,898,900-905,911-913,918,921-922,924,927-928,930-931,943,950,953,969,971,975,980-981,987,989-1002,1004-1015,1020-1112,1114-1120,1121-1128,1130-1132,1134-1138,1139,1141,1143-1145,1147-1159,1161-1170,1173-1176,1178-1181,1182-1188,1190-1192,1194-1196,1198-1231,1233-1238,1239-1246,1247-1258,1259-1269,1270-1286,1287-1289,1290-1320,1321-1323,1324-1326,1327-1329,1330-1333,1334-1349,1350-1378,1379-1389,1390-1412,1413-1432,1433-1442,1443-1454,1455-1460,1461-1493,1494-1539,1540-1549,1550-1557,1558-1564,1565-1570,1571-1582,1583-1591,1592-1593,1594-1597,1598-1599,1600-1614,1615-1619,1620-1621,1622-1631,1632-1634,1635-1637,1638-1640,1641-1644,1645-1657,1658-1665,1666-1676,1677-1682,1683-1686,1687-1690,1691-1693,1694-1698,1699-1710,1711-1714,1715-1716,1717-1729,1730-1734,1735-1744,1745-1749,1750-1751,1752-1754,1755-1760,1761-1774,1776-1781,1782-1790,1791-1810,1811-1812,1813-1822,1823-1824,1825-1834,1835-1838,1839-1857,1858-1860,1861-1870,1871-1874,1875-1882,1883-1887,1888-1899,1900-1910,1911-1913,1914-1917,1918-1923,1924-1926,1927-1934,1935-1946,1947-1953,1954-1957,1958-1970,1971-1980,1981-1983,1984-1997,1998-2024,2025-2028,2030-2032,2033-2035,2037-2038,2040-2061,2062-2065,2067-2079,2080-2083,2086-2087,2089-2098,2099-2110,2111-2114,2115-2118,2119-2120,2121-2123,2124-2125,2126-2133,2134-2141,2142-2143,2144-2147,2148-2149,2150-2152,2155,2159-2167,2170-2177,2179-2181,2187,2190-2191,2196-2197,2199-2203,2207,2213,2220-2224,2232-2246,2248-2255,2260-2262,2265,2269-2271,2273,2279-2289,2291-2292,2294-2311,2312-2324,2325-2329,2330-2334,2335-2339,2340-2372,2375-2376,2381-2417,2418-2424,2425,2427-2432,2433-2434,2435-2437,2438-2448,2449-2455,2456-2462,2463-2471,2472-2488,2489-2491,2492-2499,2500-2521,2522-2524,2525-2530,2531-2549,2550-2556,2557-2566,2567-2578,2579-2582,2583-2586,2587-2597,2598-2599,2600-2621,2622-2627,2628-2630,2631-2637,2638-2643,2644-2649,2650-2681,2683-2690,2691-2699,2700-2709,2710-2716,2717-2722,2723-2724,2725-2727,2728-2733,2734-2749,2750-2799,2800-2803,2804-2805,2806-2808,2809-2810,2811-2824,2826-2846,2847-2849,2850-2854,2856-2868,2869-2874,2875-2881,2882-2887,2888-2897,2898-2900,2901-2907,2908-2919,2920-2924,2926-2929,2930-2956,2957-2966,2967-2972,2973-2983,2984-2986,2987-2990,2991-2996,2997-2999,3000-3010,3011-3012,3013-3016,3017-3022,3023-3024,3025-3029,3030-3049,3050-3051,3052-3061,3062-3070,3071-3076,3077-3079,3080-3088,3089-3096,3098-3101,3102-3117,3118-3120,3121-3138,3139-3145,3146-3161,3162-3166,3167-3171,3172-3189,3190-3199,3200-3209,3210-3219,3220-3239,3240-3259,3260-3262,3263-3267,3268-3279,3280-3282,3283-3290,3291-3298,3299-3301,3302-3305,3306-3309,3310-3318,3319-3321,3322-3325,3326-3332,3333-3338,3339-3342,3343-3349,3350-3353,3354-3361,3362-3364,3365-3366,3367-3387,3388-3395,3396-3398,3399-3403,3404-3409,3410-3413,3414-3418,3419-3424,3425-3429,3430-3438,3439-3442,3443-3455,3456-3478,3479-3482,3483-3484,3485-3492,3493-3494,3495-3496,3497-3502,3503-3504,3505-3510,3511-3512,3513-3516,3517-3518,3519-3525,3526-3529,3530-3531,3532-3545,3546-3546,3547-3550,3551-3576,3577-3579,3580-3585,3586-3598,3599-3601,3602-3620,3621-3631,3632-3635,3636-3651,3652-3655,3656-3657,3658-3662,3663-3668,3669-3671,3672-3679,3680-3682,3683-3688,3689-3695,3696-3696,3697-3699,3700-3702,3703-3707,3709-3711,3712-3727,3728-3730,3731-3736,3737-3741,3742-3748,3749-3764,3765-3766,3767-3770,3772-3783,3784-3786,3787-3789,3790-3791,3792-3794,3795-3797,3798-3801,3802-3803,3806,3808-3814,3817,3820,3823-3828,3830-3831,3837,3839,3842,3845-3862,3863-3867,3868-3872,3875-3876,3878-3880,3882,3885,3888-3890,3897,3899-3900,3901-3902,3904-3909,3911,3913-3916,3918-3920,3922-3923,3928-3931,3935-3937,3939-3941,3943-3946,3948-3949,3952,3956-3957,3959,3961-3964,3967-3972,3975,3979-3983,3984-3987,3989-4015,4016-4019,4020-4021,4022-4023,4024-4028,4029-4034,4035-4036,4039-4042,4045,4056,4058,4065,4080-4081,4087,4090,4096-4101,4105,4111-4114,4118-4121,4125-4126,4129,4132-4135,4138,4141-4145,4147,4154,4158,4160-4161,4164,4174,4190,4192,4199-4201,4206,4220,4224,4234,4242-4243,4252,4262,4274,4279,4294,4297-4298,4300,4302,4321,4325,4328,4333,4342-4351,4353-4358,4369,4374-4376,4384,4388,4400-4401,4407,4414-4415,4418,4430,4433,4442-4457,4464,4471,4476,4480,4500,4516-4517,4530,4534,4545-4547,4550,4555,4557-4559,4567-4569,4570,4599-4602,4606,4609,4644,4649,4658-4662,4665,4672,4687,4689,4700,4711-4713,4745,4752,4760,4767,4770-4771,4778,4793,4800-4802,4819,4827,4837-4839,4848-4849,4859-4860,4868-4869,4875-4877,4881,4885,4888,4894,4899-4900,4903,4912,4931,4949-4950,4983,4987-4989,4998-5011,5012-5017,5020-5025,5030-5031,5033,5040,5042,5050-5057,5060-5061,5063-5066,5069-5071,5074,5080-5081,5087-5088,5090,5093,5095-5096,5098-5099,5100-5102,5108,5111,5114,5120-5122,5125,5133,5137,5145,5147,5150-5152,5154,5165,5168,5177-5178,5190-5193,5200-5203,5212,5214,5219,5221-5223,5225-5226,5232-5236,5242,5250-5252,5259,5261,5264-5265,5269,5272,5279-5280,5282,5291,5298,5300-5311,5314-5315,5339,5347,5351-5355,5357,5370,5377,5400-5413,5414-5420,5421-5430,5431-5433,5435,5440-5442,5444,5454-5456,5457-5458,5461-5463,5465,5473,5475,5485,5500-5504,5510,5520-5521,5530,5540,5544,5550,5552-5557,5560,5566,5569,5580-5581,5595-5605,5611-5612,5620-5622,5631-5633,5665-5667,5672-5680,5688,5690,5711,5713-5718,5720-5723,5727,5729-5730,5732,5734,5737,5741-5742,5745-5746,5755,5757,5766-5768,5771,5800-5804,5806-5808,5810-5813,5814-5815,5817-5818,5820-5827,5831,5834,5836,5838-5840,5845,5848-5850,5852-5854,5858-5860,5862,5868-5869,5871,5874-5875,5877-5878,5881-5882,5887-5889,5899-5912,5914-5915,5917-5918,5920-5927,5931,5934,5936,5938-5940,5945,5948-5950,5952-5954,5958-5963,5966,5968-5969,5971,5974-5975,5977-5979,5981,5985-5991,5997-6010,6015,6017,6021,6025,6030,6050-6052,6055,6059-6060,6062-6080,6085,6090-6091,6100-6113,6115,6120,6123,6126,6129,6141-6150,6156,6161,6175-6177,6200,6203,6222,6247,6250-6251,6253,6255,6259,6270,6273-6274,6300,6309-6310,6321-6324,6343,6346-6347,6349-6350,6373,6379,6382,6389,6400,6412,6443,6455-6456,6471,6481,6500-6504,6505-6510,6514,6520,6535,6543,6547-6550,6558,6565-6567,6579-6582,6588,6600,6606,6619-6621,6623,6628,6631,6644,6646-6647,6650,6662,6665-6670,6672-6673,6680,6689,6692,6699-6701,6709-6711,6714,6723,6725,6732,6734,6767-6768,6776-6780,6788-6790,6792,6831,6839,6841-6842,6850,6877,6881-6889,6891,6896-6897,6900-6901,6920,6922,6939,6942,6956,6961-6966,6969-6970,6972-6973,6998-7015,7019-7021,7024-7025,7030,7033,7043,7050-7051,7067-7068,7070-7072,7080,7092,7099-7104,7106,7111,7119,7121,7123,7144,7161,7170,7174,7184,7200-7201,7205,7210-7211,7218,7231,7241,7269,7272-7273,7278,7280-7281,7283,7300,7320,7323,7325-7326,7345,7391-7392,7395,7400,7402,7426-7431,7435,7437-7438,7443,7451,7456,7461,7464,7491,7496,7500-7501,7505,7510-7512,7544-7545,7553,7555,7560,7566,7570,7575,7580,7585,7588,7597,7600,7624-7628,7633-7634,7637,7648-7649,7654,7666,7674-7676,7685,7688,7725,7741,7743-7744,7749,7770-7772,7775-7781,7786,7788-7789,7797-7798,7800-7801,7813,7830,7845-7846,7852-7854,7875,7878,7895,7900,7902,7911,7913,7920-7921,7929,7932-7933,7937-7938,7955,7967,7975,7979-7980,7998-8011,8014-8016,8018-8019,8021-8023,8025,8028-8033,8037,8042,8044-8045,8050,8052,8060,8064,8074,8077,8080-8090,8092-8093,8095,8097-8100,8110,8115-8116,8118,8121-8123,8129-8133,8144,8160-8161,8180-8191,8192-8194,8199-8202,8204-8208,8216,8222,8224-8225,8232,8245,8248,8254-8255,8268,8273,8282,8290-8295,8300,8302,8308,8310-8311,8333,8339,8351,8376-8380,8383,8385,8390,8400-8403,8409,8416-8417,8431,8443-8445,8450-8455,8470-8474,8477,8479,8481,8484,8500,8515,8530-8531,8539-8540,8554-8555,8562,8600-8601,8621,8640,8644,8648-8649,8651-8652,8654-8655,8658,8673,8675-8676,8680,8686,8701,8733,8736,8752,8756,8763-8766,8772,8786-8787,8790,8798,8800-8801,8804,8834-8836,8843,8863-8866,8873,8875,8877-8880,8882-8883,8887-8894,8898-8901,8910-8911,8925,8954,8980,8987,8989,8994,8996,8999-9006,9009-9011,9013,9020-9026,9037,9040,9043-9044,9050,9061,9065,9071,9080-9081,9084,9090-9091,9098-9103,9110-9111,9125,9128,9130-9131,9133,9152,9160-9164,9170,9183,9191,9197-9198,9200-9207,9210-9211,9216-9217,9220,9281-9285,9287,9290,9292,9300,9321,9333,9343-9344,9346,9351,9364,9374,9390-9393,9396-9397,9400,9409,9415,9418,9433,9443-9444,9454,9464,9478,9485,9493,9495,9500-9503,9513,9527,9535-9537,9575,9583,9592-9595,9600,9612-9613,9616,9618-9621,9628,9643,9648,9654,9661,9665-9667,9673-9674,9679-9680,9683,9694,9700,9704,9745,9747,9753,9777,9797,9800-9802,9812,9814-9815,9823,9825-9826,9830,9844,9872,9875-9878,9888-9889,9898-9901,9908-9912,9914-9915,9917,9919,9929,9941,9943-9944,9950-9952,9968,9971,9975,9979,9988,9990-10012,10018-10020,10022-10025,10034-10035,10042,10045,10051,10058,10064,10080-10083,10093,10101-10103,10113-10116,10128,10160,10168,10180,10202-10204,10215,10238,10243,10245-10246,10252,10255,10260,10280,10288,10338,10347,10357,10387,10414,10443,10494,10500,10509,10529,10535,10550-10556,10565-10567,10601-10602,10607,10616-10617,10621,10626,10628-10629,10666,10699,10752,10754,10778,10842,10852,10873,10878,10900,10990,11000-11001,11003,11007,11019,11026,11031-11033,11089,11100,11110-11111,11180,11200-11201,11211,11223-11224,11250,11288,11296,11319-11321,11367,11371,11401,11552,11600,11697,11720,11735,11751,11813,11862-11863,11940,11965,11967,11999-12006,12009,12019,12021,12031,12034,12059,12076-12077,12080,12090,12096-12097,12109,12121,12132,12137,12146,12156,12168,12171-12172,12174,12192,12215,12223,12225,12240,12243,12251,12262,12265,12271,12275,12296,12321,12340,12345-12346,12361-12362,12380,12414,12452,12468,12699,12701-12702,12753-12754,12766,12865,12891-12892,12955,12962,13017,13093,13130,13132,13140,13142,13149,13160,13167,13188,13192-13194,13223-13224,13229,13250,13261,13264-13265,13306,13318,13340,13359,13456,13502,13580,13666,13695,13701-13702,13705-13706,13708-13718,13720-13724,13730,13766,13782-13784,13818-13822,13846,13899,14000-14002,14033-14034,14141,14145,14147,14149,14194,14218,14237-14238,14254,14418,14441-14444,14534,14545,14693,14733,14827,14891,14916,14936-14937,14942,15000-15005,15050,15104,15126,15145,15190-15191,15275,15317,15344-15345,15363,15402,15448,15550,15631,15645,15660,15742,15858,16000-16001,16012,16016,16018,16080,16113,16360-16361,16367-16368,16384,16660-16661,16705,16800,16851,16959,16969,16991-16993,17007,17185,17219,17300,17595,17770-17772,17877,17988,17990,18000,18018,18040,18101,18181-18187,18190,18241,18264,18463,18769,18888,18988,19101,19191,19194,19226,19283,19315,19350,19398,19410-19412,19540-19541,19638,19726,19780,19801,19842,19900,20000-20002,20005,20011-20012,20020,20031,20034,20168,20200,20202-20203,20221-20222,20670,20828,20999-21000,21064-21065,21071,21227,21317,21490,21544,21554,21571,21590,21700,21792,21800,21845-21849,22000-22003,22222,22273,22289,22305,22321,22370,22555,22800,22939,22951,23052,23456,23502,23796,23945,24000-24006,24242,24249,24345-24347,24386,24444,24554,24677-24678,24800,24922,25000-25009,25378,25544,25734-25735,25793,25867,25901,25903,26000,26208,26214,26260-26264,26470,27000-27010,27017,27345,27352-27353,27355-27357,27374,27504,27665,27715,27960,27999-28001,28017,28201,28211,29559,29672,29831,29891,30000-30002,30005,30100-30102,30303,30704,30718,30951,30999,31038,31300,31337,31339,31416,31457,31554,31556,31620,31727,31765,31785-31787,32000,32123,32261,32666,32768-32780,32781-32785,32786-32787,32791-32792,32803,32816,32822,32835,32896,33270,33331,33354,33434,33453,33554,33567-33568,33899,33911,34012,34249,34324,34567,34571-34573,34952,35500,35513,36079,36794,36865,37475,37651,37839,38037,38185,38188,38201,38292-38293,39136,39376,39659,39681,40000-40001,40193,40412,40811,40841-40843,40911,41002,41064,41080,41111,41443,41508,41511,41523,41794-41795,42508-42510,42800,43118,43188-43190,44176,44321-44322,44333-44334,44337,44442-44443,44501,44709,44818,45000,45054,45100,45678,45966,46200,46996,47000,47544,47557,47624,47806,47808,47891,48000-48003,48080,48556,49152-49161,49163-49165,49167-49168,49171,49175-49176,49186,49195,49236,49400-49401,49999-50004,50006-50008,50013,50050,50123,50300,50389,50500,50505,50636,50776,50800,51051,51103,51191,51210,51413,51493,52660,52673,52710,52735,52822,52847-52851,52853,52869,53001,53211,53313-53314,53535,54045,54320-54321,54328,54345,55020,55055-55056,55555,55576,55600,56737-56738,57294,57341,57665,57797,58001-58002,58080,58630,58632,58838,59110,59200-59202,59595,60008,60020,60123,60146,60177,60179,60443,60642,61439-61441,61446,61532,61613,61900,62078,63331,64623,64680,65000,65129,65301,65310,65389,65534'

I guess something changed with the port parser.

Metadata

Metadata

Assignees

Labels

Type: BugInconsistencies or issues which will cause an issue or problem for users or implementors.

Type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions