mirror of
https://github.com/nmap/nmap.git
synced 2026-06-19 23:17:48 +00:00
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
This commit is contained in:
parent
7aa5ed3008
commit
2ba1f3f14b
1 changed files with 2 additions and 2 deletions
|
|
@ -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++) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue