顯示具有 linux 標籤的文章。 顯示所有文章
顯示具有 linux 標籤的文章。 顯示所有文章

2025年3月6日 星期四

ubuntu 查看 listen port

說明

  • 在不額外安裝netstat下,可以使用以下指令查看 LISTEN 的 port


查看ipv4


> ss -nlt4


查看ipv6


> ss -nlt6


同時查看ipv4 及 ipv6


> ss -nlt

2018年12月25日 星期二

CentOS 安裝 zabbix-agent



1.Adding Zabbix repository
#rpm -ivh https://repo.zabbix.com/zabbix/3.4/rhel/7/x86_64/zabbix-release-3.4-2.el7.noarch.rpm


2.Agent installation
#yum install zabbix-agent

3.start the agent
#service zabbix-agent start

2018年9月7日 星期五

使用ip取得電腦名稱及mac address


nmap --script smb-os-discovery 192.168.0.1

抓以下兩個區塊的資料

MAC Address: 4C:CC:6A:77:A5:98 (Micro-star Intl)

Host script results:
| smb-os-discovery:
|   OS: Windows 7 Enterprise 7601 Service Pack 1 (Windows 7 Enterprise 6.1)
|   OS CPE: cpe:/o:microsoft:windows_7::sp1
|   Computer name: xx
|   NetBIOS computer name: xx\x00
|   Workgroup: xxgroup\x00
|_  System time: 2018-09-07T10:03:26+08:00