信息收集之端口信息

  • 一些特定端口默认会开启一些特定服务。
  • 端口信息收集可以帮助我们找到更多目标网站的功能点,更全面地对目标网站进行测试。

1、 Nmap/Masscan

例如:Nmap简单扫描:nmap -sV IP/域名
在这里插入图片描述

  • 端口状态
  1. open(开放的) 意味着目标机器上的应用程序正在该端口监听连接 / 报文
  2. filtered(被过滤的) 意味着防火墙,过滤器或者其它网络障碍阻止了该端口被访问,Nmap 无法得知 它是 open(开放的) 还是 closed(关闭的)
  3. closed(关闭的) 端口没有应用程序在它上面监听,但是他们随时可能开放
  4. unfiltered(未被过滤的) 当端口对 Nmap 的探测做出响应,但是 Nmap 无法确定它们是关闭还是开放
  5. open filtered 开放或者被过滤的
  6. closed filtered 关闭或者被过滤的

2、在线扫描网站

地址:http://coolaf.com/tool/port

  • 0
    点赞
  • 1
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
Node Exporter 可以通过收集系统内核网络和文件句柄的信息获取主机监听端口信息。具体来说,Node Exporter 会读取 `/proc/net/tcp` 和 `/proc/net/tcp6` 文件来获取 TCP 监听端口信息,同时也会读取 `/proc/net/udp` 和 `/proc/net/udp6` 文件来获取 UDP 监听端口信息。 Node Exporter 收集到的端口信息会作为 `node_network_*` 和 `node_filehandle_*` 系列指标的一部分,其中 `node_network_*` 指标包含 TCP 和 UDP 监听端口信息,而 `node_filehandle_*` 指标包含每个进程打开的文件句柄数量信息。 例如,可以使用以下命令来列出 Node Exporter 收集到的所有网络相关的指标信息: ``` curl http://node-exporter-ip:9100/metrics | grep node_network ``` 您将看到类似于以下内容的输出: ``` # HELP node_network_address_translation_table_entries Number of address translation table entries. # TYPE node_network_address_translation_table_entries gauge node_network_address_translation_table_entries 0 # HELP node_network_active_opens Number of times TCP connections have made a direct transition to the SYN-SENT state from the CLOSED state. # TYPE node_network_active_opens gauge node_network_active_opens 5 # HELP node_network_attempt_fails Number of times TCP connections have made a direct transition to the CLOSED state from either the SYN-SENT state or the SYN-RCVD state, plus the number of times TCP connections have made a direct transition to the LISTEN state from the SYN-RCVD state. # TYPE node_network_attempt_fails gauge node_network_attempt_fails 0 ... ``` 其中 `node_network_*` 指标中的 `local_address` 和 `local_port` 字段表示监听的本地IP地址和端口

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值