This is probably a question already discussed here and there.
I'd like to try to gathering here all the information.
Suppose I'm on a machine connected to a network. This network has access to the internet.
I'd like to write a
bash script to detect the maximum information possible in order to
Map the network around me
- Number of devices connected
- Types of services offered by each device
Know how many devices I must run through in order to reach the router to the internet (counting hops)
Latency between each step
Strength of signal if the link between A and B is wireless
Maximum uplink and downlink speed between two devices on the intranet
I don't need the final script, I'd like to get dirty doing this, but I need tips on the right approach. I've got a good knowledge of network theory but really a poor knowledge of the practical side and the best I have come up with is flooding the subnet with pings and trying to reverse engineer the network using it.. rubbish!