fing

package module
v0.0.0-...-f0734c7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 6, 2022 License: MIT Imports: 3 Imported by: 1

README

https://blog.cyeam.com/network/2015/03/16/fing

探测局域网里面的设备 16 March 2015 IMG-THUMBNAIL

用Golang实现Fing的功能。 之前用了一个牛逼的App,叫做Fing,它可以获取到本地局域网里面所有设备的IP、MAC地址和设备厂商。一直觉得很牛逼,今天好好想了想,发现也没那么多神秘。

穷举局域网里的IP 局域网IP一般有192和10两种形式。一般来说,10开始的局域网高端一些,能容纳的设备比较多。

穷举所有IP,有一个方式是通过trancert命令,记录访问某个网站经过的路径,那么第一条路径就是访问路由器,得到路由器IP之后,按最后一部分进行穷举。

但是这个方法有点麻烦,简化一点的,就是获取当前设备在局域网里面的IP,以此IP进行穷举。通过Golang获取IP的方法可以参考[1]。获取当前设备IP的方式可以参考:

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Mac

Types

This section is empty.

Directories

Path Synopsis
Package go-oui provides functions to work with MAC and OUI's
Package go-oui provides functions to work with MAC and OUI's

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL