Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

https://github.com/hi-KK/ICS-Protocol-identify

Using nmap NSE scripts for identifying common ICS protocols[使用nmap的nse脚本对常见工控协议进行识别,附对应nse脚本,并记录pcap流量]
https://github.com/hi-KK/ICS-Protocol-identify

ics ics-protocols ics-security

Last synced: 3 months ago
JSON representation

Using nmap NSE scripts for identifying common ICS protocols[使用nmap的nse脚本对常见工控协议进行识别,附对应nse脚本,并记录pcap流量]

Lists

README

        

## 对大佬有帮助的话就给个Star吧!

## 工控常见协议

| 协议 | 通信 | 端口 |
| ------------------- | ---- | ----- |
| Siemens S7 | tcp | 102 |
| Modbus | tcp | 502 |
| IEC 60870-5-104 | tcp | 2404 |
| DNP3 | tcp | 20000 |
| EtherNet/IP | udp | 44818 |
| BACnet | udp | 47808 |
| Tridium Niagara Fox | tcp | 1911 |
| Crimson V3 | tcp | 789 |
| OMRON FINS | tcp | 9600 |
| PCWorx | tcp | 1962 |
| ProConOs | tcp | 20547 |
| MELSEC-Q | tcp | 5007 |

## 工控协议识别

### Siemens S7

```
nmap -sS -Pn -n --min-hostgroup 1024 --min-parallelism 1024 -p 102 --script s7-info -iL 123.txt -oX 123.xml
超速度扫描:
-sS SYN扫描,又称为半开放扫描,它不打开一个完全的TCP连接,执行得很快,效率高
-Pn 不对目标进行ping探测(不判断主机是否在线)(直接扫描端口)
-n 不反向解析IP地址到域名
–min-hostgroup 1024 最小分组设置为1024个IP地址,当IP太多时,nmap需要分组,然后串行扫描
–min-parallelism 1024 这个参数非常关键,为了充分利用系统和网络资源,我们将探针的数目限定最小为1024
```

![360截图16261006315874](assets/360截图16261006315874.png)

### Modbus

```
nmap -sS -Pn -p 502 --script modicon-info -iL 123.txt -oX 123.xml
```

![360截图162412289895122](assets/360截图162412289895122.png)

### IEC 60870-5-104

```
nmap -Pn -n -d --script iec-identify.nse --script-args='iec-identify.timeout=500' -p 2404
超速度扫描:
nmap -Pn -n --min-hostgroup 1024 --min-parallelism 3000 -d --script iec-identify-2014.nse --script-args='iec-identify.timeout=500' -p 2404 -iL 2404.txt -oX 2404.xml
```

![360截图16620607109125137](assets/360截图16620607109125137.png)

### DNP3

```
nmap --script dnp3-info -p 20000
超速度扫描:
nmap -Pn -n --min-hostgroup 1024 --min-parallelism 3000 --script dnp3-info.nse -p 20000 -iL 20000.txt -oX 20000.xml
```

![360截图16280721688569](assets/360截图16280721688569.png)

### EtherNet/IP

```
nmap --script enip-info -sU -p 44818
超速度扫描:
nmap -Pn -n -sU --min-hostgroup 1024 --min-parallelism 3000 --script enip-info.nse -p 44818 -iL 44818.txt -oX 44818.xml
```

![360截图162807227386120](assets/360截图162807227386120.png)

### BACnet

```
nmap --script bacnet-info -sU -p 47808
超速度扫描:
nmap -Pn -n --min-hostgroup 1024 --min-parallelism 3000 -sU -p 47808 --script bacnet-info.nse -iL 47808.txt -oX 47808.xml
```

![360截图1653070991122136](assets/360截图1653070991122136.png)

### Tridium Niagara Fox

```
nmap --script fox-info.nse -p 1911
超速度扫描:
nmap -Pn -n --min-hostgroup 1024 --min-parallelism 3000 -p 1911 --script fox-info.nse -iL 1911.txt -oX 1911.xml
```

![360截图1667101691102117](assets/360截图1667101691102117.png)

### Crimson V3

```
nmap --script cr3-fingerprint -p 789
nmap -Pn -n --min-hostgroup 1024 --min-parallelism 3000 -p 789 --script cr3-fingerprint.nse -iL 789.txt -oX 789.xml
```

![360截图1655042297118118](assets/360截图1655042297118118.png)

### OMRON FINS

```
nmap --script omron-info -sU -p 9600
nmap --script ormontcp-info -p 9600
nmap --script ormonudp-info -sU -p 9600
nmap -Pn -n --min-hostgroup 1024 --min-parallelism 3000 -sU -p 9600 --script ormonudp-info.nse -iL 9600.txt -oX 9600.xml
```

![360截图1660082991103115](assets/360截图1660082991103115.png)

### PCWorx

```
nmap --script pcworx-info -p 1962
nmap -Pn -n --min-hostgroup 1024 --min-parallelism 3000 -p 1962 --script pcworx-info.nse -iL 1962.txt -oX 1962.xml
```

![360截图16511001152371](assets/360截图16511001152371.png)

### ProConOs

```
nmap --script proconos-info -p 20547
```

![360截图16240201192730](assets/360截图16240201192730.png)

### MELSEC-Q

```
nmap -script melsecq-discover -sT -p 5007
nmap -script melsecq-discover-udp.nse -sU -p 5006
```

![360截图16460518444147](assets/360截图16460518444147.png)