Skip to content

Commit

Permalink
add a few more scannable ports now that the FP's exist in ident
Browse files Browse the repository at this point in the history
  • Loading branch information
jcran committed Jun 27, 2021
1 parent 9f44f8a commit a103cd3
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions lib/tasks/helpers/data.rb
Original file line number Diff line number Diff line change
Expand Up @@ -127,20 +127,19 @@ def issueable_tcp_ports
end

def fingerprintable_udp_ports
[53, 161]
[53, 161].sort.uniq
end

def fingerprintable_tcp_ports
ports = [21,22,23,25,110,3306].concat(scannable_web_ports)
ports
[21, 22, 23, 25, 110, 2181, 3299, 3306, 3389, 4786, 7001, 8649, 9100, 11211].concat(scannable_web_ports).sort.uniq
end

def scannable_web_ports
[
80,81,82,83,84,85,88,443,888,3000,6443,7443,
8000,8080,8081,8087,8088,8089,8090,8095,
8098,8161,8180,8443,8880,8888,9443,10000
]
].sort.uniq
end

def scannable_udp_ports
Expand Down Expand Up @@ -193,11 +192,12 @@ def scannable_tcp_ports
tcp_ports << "4444," # java rmi
tcp_ports << "1723," # pptp
tcp_ports << "1883,"
tcp_ports << "2181,"
tcp_ports << "2181," # zookeeper
tcp_ports << "2222,"
tcp_ports << "2375," # docker
tcp_ports << "2376," # docker
tcp_ports << "2888,"
tcp_ports << "3299," # SAPRouter
tcp_ports << "3306," # mysql
tcp_ports << "3389," # RDP
tcp_ports << "3888,"
Expand Down Expand Up @@ -233,6 +233,7 @@ def scannable_tcp_ports
tcp_ports << "8278,"
tcp_ports << "8291,"
tcp_ports << "8443,"
tcp_ports << "8649," # ganglia
tcp_ports << "8686," # JMX
tcp_ports << "8883,"
tcp_ports << "9000," # Oracle WebLogic Server
Expand All @@ -242,6 +243,7 @@ def scannable_tcp_ports
tcp_ports << "9012," # JMX
tcp_ports << "9091,9092,"
tcp_ports << "9094,"
tcp_ports << "9100," # jetdirect
tcp_ports << "9200,9201," # elasticsearch
tcp_ports << "9300,9301," # elasticsearch
tcp_ports << "9443,"
Expand All @@ -250,6 +252,7 @@ def scannable_tcp_ports
tcp_ports << "10443,"
tcp_ports << "11099," # java rmi
tcp_ports << "11111," # jboss
tcp_ports << "11211," # memcached
tcp_ports << "11443,"
tcp_ports << "11994,"
tcp_ports << "12443,"
Expand Down

0 comments on commit a103cd3

Please sign in to comment.