LoginSignup
8
7

More than 5 years have passed since last update.

MacでLAN上のIPをスキャンするでござる

Posted at

(実証)環境

  • MacBook Pro 13(2017)
  • macOS High Sierra 10.13.5
  • Homebrew 1.6.9

環境は、執筆時点の執筆者の環境。

前提

  • Homebrewは事前にインストール済みの状態である

コマンドのインストール

brew install arp-scan

現在使っているインタフェースを調べる

ifconfig

arp-scanを使ってネットワークスキャンしてみる

sudo arp-scan -I <interface> -l

Ex.)
sudo arp-scan -I en0 -l

コマンド実行時にパスワードを聞かれる。
sudo だからあたりまえだけど、Macにログインするときのパスワードを入力

所感とか

僕の環境だとsudoしないとだめだった。
これは楽にスキャンできるのですごく便利なので入れておいて損はないコマンドかも。
これで調べられるのはあくまでICMP応答許可している端末だけだろうな。。。。

8
7
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
8
7