Creating a network discovery tool in Objective-C

I want to start a project for class CS.

Can someone give an idea of ​​how to write a tool that will display information about the network and state device, IP information, open ports, etc.

I will use OS X.

+3
source share
1 answer

There are several things you can use to discover hosts on a network.

  • SNMP . SNMP get sysName.0 , SNMP ( OID). , , NAS .. sysDescr.0 , ( ) , sysName.0. Mac OS X NetSNMP. SNMP, SNMP . , /usr/share/snmp/mibs.

  • ( root, - ping ). . ping BSD, Mac OS X, - Apple. ping root setuid, , ping root , root ( non-root ping). , ping root, .

  • Zeroconf/Bonjour . Core Foundation CFNetServices Foundation NSNetServices. Mac , . Windows Linux, , , , .

  • , , . , , , IP-. TCP /etc/services, . POSIX getnameinfo.

+4
source

Source: https://habr.com/ru/post/1763910/


All Articles