보안

mac fping 설치.

사리생성 2024. 1. 12. 19:40
brew install fping
Running `brew update --auto-update`...
==> Downloading https://ghcr.io/v2/homebrew/portable-ruby/portable-ruby/blobs/sha256:02180ca8b8295422ae84921bcf034b7ee8ce5575488bd5e6a37a192e53cd5d34
########################################################################################################################################################################## 100.0%
==> Pouring portable-ruby-3.1.4.el_capitan.bottle.tar.gz
==> Auto-updated Homebrew!
Updated 4 taps (shivammathur/php, homebrew/services, homebrew/core and homebrew/cask).
==> New Formulae
...
...
==> Downloading https://ghcr.io/v2/homebrew/core/fping/manifests/5.1
########################################################################################################################################################################## 100.0%
==> Fetching fping
==> Downloading https://ghcr.io/v2/homebrew/core/fping/blobs/sha256:0910cbd749836693fcd7d9df80974f12604c990c3a2703a9351c2dafaa9a3564
########################################################################################################################################################################## 100.0%
==> Pouring fping--5.1.sonoma.bottle.tar.gz
🍺  /usr/local/Cellar/fping/5.1: 7 files, 101.7KB
==> Running `brew cleanup fping`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
==> `brew cleanup` has not been run in the last 30 days, running now...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
Removing: /Users/imhun/Library/Caches/Homebrew/aom--3.7.0... (4.6MB)
Removing: /Users/imhun/Library/Caches/Homebrew/c-ares--1.22.1... (204.7KB)
Removing: /Users/imhun/Library/Caches/Homebrew/ca-certificates--2023-08-22... (125.2KB)
Removing: /Users/imhun/Library/Caches/Homebrew/composer--2.6.5... (686.5KB)
Removing: /Users/imhun/Library/Caches/Homebrew/curl--8.4.0... (1.3MB)
Removing: /Users/imhun/Library/Caches/Homebrew/erlang--26.0.2... (108.8MB)
Removing: /Users/imhun/Library/Caches/Homebrew/freetds--1.4.6... (2.9MB)
Removing: /Users/imhun/Library/Caches/Homebrew/gettext--0.22.3... (9.1MB)
Removing: /Users/imhun/Library/Caches/Homebrew/jpeg-turbo--3.0.0... (1.3MB)
Removing: /Users/imhun/Library/Caches/Homebrew/jpeg-xl--0.8.2_1... (6.4MB)
Removing: /Users/imhun/Library/Caches/Homebrew/libavif--1.0.1... (169.8KB)
Removing: /Users/imhun/Library/Caches/Homebrew/node--21.2.0... (15.6MB)
Removing: /Users/imhun/Library/Caches/Homebrew/openssl@3--3.1.4... (7.9MB)
Removing: /Users/imhun/Library/Caches/Homebrew/php--8.2.12_1... (19.8MB)
Removing: /Users/imhun/Library/Caches/Homebrew/sqlite--3.44.0... (2.2MB)

 

 

ICMP : internet control message protocol

nslookup

 

fping -q -s -a -g 10.30.0/24
10.30.0.1
10.30.0.2
10.30.0.30
10.30.0.31
10.30.0.40
10.30.0.41
10.30.0.105
10.30.0.106
10.30.0.114
10.30.0.114 : duplicate for [0], 64 bytes, 224 ms
10.30.0.137
10.30.0.149
10.30.0.150
10.30.0.153
10.30.0.159
10.30.0.174
10.30.0.177
10.30.0.182
10.30.0.181
10.30.0.202
10.30.0.163
10.30.0.225

     254 targets
      21 alive
     233 unreachable
       0 unknown addresses

     934 timeouts (waiting for response)
     955 ICMP Echos sent
      23 ICMP Echo Replies received
       0 other ICMP received

 0.139 ms (min round trip time)
 82.7 ms (avg round trip time)
 725 ms (max round trip time)
        9.814 sec (elapsed real time)

 

 

nmap

open : SYS/ACK을 응답으로 받은 경우
closed : RST를 응답으로 받은 경우
filtered : 응답을 받지 못한경우

-sT : TCP Open Scan


nmap -sT 10.30.0.225
Starting Nmap 7.94 ( https://nmap.org ) at 2024-01-12 23:49 KST
Nmap scan report for 10.30.0.225
Host is up (0.0049s latency).
Not shown: 998 closed tcp ports (conn-refused)
PORT     STATE SERVICE
22/tcp   open  ssh
8080/tcp open  http-proxy

Nmap done: 1 IP address (1 host up) scanned in 3.29 seconds



sudo nmap -sS 10.30.0.225
Starting Nmap 7.94 ( https://nmap.org ) at 2024-01-12 23:49 KST
Nmap scan report for 10.30.0.225
Host is up (0.0075s latency).
Not shown: 998 closed tcp ports (reset)
PORT     STATE SERVICE
22/tcp   open  ssh
8080/tcp open  http-proxy
MAC Address: 04:42:1A:27:A5:3D (ASUSTek Computer)

Nmap done: 1 IP address (1 host up) scanned in 1.78 seconds​