This is a very unfortunate situation as it severely limits the functionality of the LAN scanner. checking the label on the back of the device or through the device's configuration menus - and then entered manually to the app. For WOL the MAC address has to be determined by some other means - e.g.Custom names cannot be assigned to the discovered devices - there is no unique identification of the discovered devices apart from their MAC (IP addresses can change because of DHCP) so the app doesn't know to which device the name should be assigned.Manufacturers of the scanned devices cannot be shown as these are derived from the first 3 bytes of the MAC address using the OUI database.MAC addresses of the scanned devices cannot be shown.The consequences of not having access to the MAC addresses in the ARP table are: I talked with Apple engineers about this problem at WWDC and was told that this is a privacy feature of iOS because MAC addresses are unique and some developers misuse them to track users. This happens because since iOS 11 Apple doesn't allow apps to access the MAC addresses in the ARP table of the operating system and read the addresses from there during the scan. On iOS 11 or later the LAN scanner doesn't show MAC addresses. In line 19 we check if the scan was successful and hence print the results in a readable manner.MAC addresses aren't available in the LAN scanner under iOS 11.then we store the result of the scan in “scan_result” by calling the scan function on the IP address that we generated.As explained in the logic section we loop from 0 to 255 and concatenate the value to create a valid IP address.From lines 15-20 we run the main part of the program.In lines 9-13 we store the mac address and IP addresses in the form of a dictionary, append them to “client_list” and return that list.From lines 4-7 we initialize the scan and create “answered_list” which stores the the result of scapy.srp(). ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |