123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260 |
- """
- # 安装
- apt-get install -y libpcap-dev masscan
- # --- test ssh ---
- masscan -p22 192.168.131.0/24 --rate=1000
- Discovered open port 22/tcp on 192.168.131.100
- Discovered open port 22/tcp on 192.168.131.102
- Discovered open port 22/tcp on 192.168.131.243
- Discovered open port 22/tcp on 192.168.131.138
- Discovered open port 22/tcp on 192.168.131.16
- Discovered open port 22/tcp on 192.168.131.136
- Discovered open port 22/tcp on 192.168.131.242
- Discovered open port 22/tcp on 192.168.131.61
- Discovered open port 22/tcp on 192.168.131.46
- Discovered open port 22/tcp on 192.168.131.42
- Discovered open port 22/tcp on 192.168.131.43
- Discovered open port 22/tcp on 192.168.131.133
- Discovered open port 22/tcp on 192.168.131.11
- Discovered open port 22/tcp on 192.168.131.101
- Discovered open port 22/tcp on 192.168.131.23
- Discovered open port 22/tcp on 192.168.131.21
- Discovered open port 22/tcp on 192.168.131.22
- Discovered open port 22/tcp on 192.168.131.103
- Discovered open port 22/tcp on 192.168.131.241
- Discovered open port 22/tcp on 192.168.131.13
- Discovered open port 22/tcp on 192.168.131.17
- Discovered open port 22/tcp on 192.168.131.253
- Discovered open port 22/tcp on 192.168.131.137
- Discovered open port 22/tcp on 192.168.131.130
- Discovered open port 22/tcp on 192.168.131.139
- Discovered open port 22/tcp on 192.168.131.132
- # --- test 3网段 ---
- masscan 192.168.3.0/24 --rate=1000 --ports 0-65535
- # --- test sqlserver ---
- nmap -p 1433 192.168.131.0/24
- Starting Nmap 7.80 ( https://nmap.org ) at 2023-12-18 17:44 CST
- Nmap scan report for 192.168.131.1
- Host is up (0.00028s latency).
- PORT STATE SERVICE
- 1433/tcp closed ms-sql-s
- Nmap scan report for 192.168.131.11
- Host is up (0.00021s latency).
- PORT STATE SERVICE
- 1433/tcp closed ms-sql-s
- Nmap scan report for 192.168.131.12
- Host is up (0.00030s latency).
- PORT STATE SERVICE
- 1433/tcp closed ms-sql-s
- Nmap scan report for 192.168.131.13
- Host is up (0.00015s latency).
- PORT STATE SERVICE
- 1433/tcp closed ms-sql-s
- Nmap scan report for 192.168.131.16
- Host is up (0.00012s latency).
- PORT STATE SERVICE
- 1433/tcp filtered ms-sql-s
- Nmap scan report for 192.168.131.17
- Host is up (0.00028s latency).
- PORT STATE SERVICE
- 1433/tcp closed ms-sql-s
- Nmap scan report for 192.168.131.20
- Host is up (0.00022s latency).
- PORT STATE SERVICE
- 1433/tcp closed ms-sql-s
- Nmap scan report for 192.168.131.21
- Host is up (0.00013s latency).
- PORT STATE SERVICE
- 1433/tcp closed ms-sql-s
- Nmap scan report for 192.168.131.22
- Host is up (0.00024s latency).
- PORT STATE SERVICE
- 1433/tcp closed ms-sql-s
- Nmap scan report for 192.168.131.23
- Host is up (0.000024s latency).
- PORT STATE SERVICE
- 1433/tcp closed ms-sql-s
- Nmap scan report for 192.168.131.41
- Host is up (0.018s latency).
- PORT STATE SERVICE
- 1433/tcp closed ms-sql-s
- Nmap scan report for 192.168.131.42
- Host is up (0.011s latency).
- PORT STATE SERVICE
- 1433/tcp closed ms-sql-s
- Nmap scan report for 192.168.131.43
- Host is up (0.031s latency).
- PORT STATE SERVICE
- 1433/tcp closed ms-sql-s
- Nmap scan report for 192.168.131.45
- Host is up (0.00090s latency).
- PORT STATE SERVICE
- 1433/tcp closed ms-sql-s
- Nmap scan report for 192.168.131.46
- Host is up (0.031s latency).
- PORT STATE SERVICE
- 1433/tcp closed ms-sql-s
- Nmap scan report for 192.168.131.61
- Host is up (0.00056s latency).
- PORT STATE SERVICE
- 1433/tcp closed ms-sql-s
- Nmap scan report for 192.168.131.62
- Host is up (0.00059s latency).
- PORT STATE SERVICE
- 1433/tcp closed ms-sql-s
- Nmap scan report for 192.168.131.99
- Host is up (0.00021s latency).
- PORT STATE SERVICE
- 1433/tcp filtered ms-sql-s
- Nmap scan report for 192.168.131.100
- Host is up (0.000095s latency).
- PORT STATE SERVICE
- 1433/tcp filtered ms-sql-s
- Nmap scan report for 192.168.131.101
- Host is up (0.00014s latency).
- PORT STATE SERVICE
- 1433/tcp filtered ms-sql-s
- Nmap scan report for 192.168.131.102
- Host is up (0.00013s latency).
- PORT STATE SERVICE
- 1433/tcp filtered ms-sql-s
- Nmap scan report for 192.168.131.103
- Host is up (0.00015s latency).
- PORT STATE SERVICE
- 1433/tcp filtered ms-sql-s
- Nmap scan report for 192.168.131.130
- Host is up (0.0049s latency).
- PORT STATE SERVICE
- 1433/tcp closed ms-sql-s
- Nmap scan report for 192.168.131.131
- Host is up (0.012s latency).
- PORT STATE SERVICE
- 1433/tcp closed ms-sql-s
- Nmap scan report for 192.168.131.132
- Host is up (0.015s latency).
- PORT STATE SERVICE
- 1433/tcp closed ms-sql-s
- Nmap scan report for 192.168.131.133
- Host is up (0.011s latency).
- PORT STATE SERVICE
- 1433/tcp closed ms-sql-s
- Nmap scan report for 192.168.131.136
- Host is up (0.014s latency).
- PORT STATE SERVICE
- 1433/tcp closed ms-sql-s
- Nmap scan report for 192.168.131.137
- Host is up (0.0039s latency).
- PORT STATE SERVICE
- 1433/tcp closed ms-sql-s
- Nmap scan report for 192.168.131.138
- Host is up (0.010s latency).
- PORT STATE SERVICE
- 1433/tcp closed ms-sql-s
- Nmap scan report for 192.168.131.139
- Host is up (0.0043s latency).
- PORT STATE SERVICE
- 1433/tcp closed ms-sql-s
- Nmap scan report for 192.168.131.241
- Host is up (0.00036s latency).
- PORT STATE SERVICE
- 1433/tcp closed ms-sql-s
- Nmap scan report for 192.168.131.242
- Host is up (0.00038s latency).
- PORT STATE SERVICE
- 1433/tcp closed ms-sql-s
- Nmap scan report for 192.168.131.243
- Host is up (0.00048s latency).
- PORT STATE SERVICE
- 1433/tcp closed ms-sql-s
- Nmap scan report for 192.168.131.252
- Host is up (0.0023s latency).
- PORT STATE SERVICE
- 1433/tcp closed ms-sql-s
- Nmap scan report for 192.168.131.253
- Host is up (0.00016s latency).
- PORT STATE SERVICE
- 1433/tcp closed ms-sql-s
- Nmap scan report for _gateway (192.168.131.254)
- Host is up (0.0010s latency).
- PORT STATE SERVICE
- 1433/tcp closed ms-sql-s
- Nmap done: 256 IP addresses (36 hosts up) scanned in 63.19 seconds
- """
|