From 2ba1f3f14b23610cee2ec01a12650b7f5ab524ca Mon Sep 17 00:00:00 2001 From: fyodor Date: Fri, 19 Dec 2008 06:56:26 +0000 Subject: [PATCH] Add 554 and 256 to the popular ports list. They aren't open as often as some others, but they still provide a lot of value (closed ports are as useful as open ones for pop_ports purposes --- portlist.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/portlist.cc b/portlist.cc index bc96f63f6..375ad5f7c 100644 --- a/portlist.cc +++ b/portlist.cc @@ -760,8 +760,8 @@ void random_port_cheat(u16 *ports, int portcount) { int allportidx = 0; int popportidx = 0; int earlyreplidx = 0; - /* Updated 2008-12-18 from nmap-services-all. Top 14 open TCP ports plus 113. */ - u16 pop_ports[] = { 80, 23, 443, 21, 22, 25, 3389, 110, 445, 139, 143, 53, 135, 113 }; + /* Updated 2008-12-18 from nmap-services-all. Top 14 open TCP ports plus 113, 554, and 256 */ + u16 pop_ports[] = { 80, 23, 443, 21, 22, 25, 3389, 110, 445, 139, 143, 53, 135, 113, 554, 256 }; int num_pop_ports = sizeof(pop_ports) / sizeof(u16); for(allportidx = 0; allportidx < portcount; allportidx++) {