andypitcher / IoT_Sentinel

IoT SENTINEL : Automated Device-Type Identification for Security Enforcement in IoT
https://arxiv.org/pdf/1611.04880.pdf
MIT License
41 stars 32 forks source link

Unable to Generate 23 Features #3

Open RajaMuz opened 5 years ago

RajaMuz commented 5 years ago

Hello,Great work,Sir

andypitcher commented 5 years ago

Hi RajaMuz, Thanks for your interest, You don't have to use Linux, however since this script is not too generic, you want to make sure you are using a directory that contains device(s) with such a path ./iot_fingerprint.py -d captures_IoT_Sentinel/captures_IoT-Sentinel/ where captures_IoT_Sentinel/captures_IoT-Sentinel/ contains devices' directory.

➜ IoT_Sentinel git:(master) tree captures_IoT_Sentinel/captures_IoT-Sentinel | head -5 captures_IoT_Sentinel/captures_IoT-Sentinel ├── Aria │   ├── _iotdevice-mac.txt │   ├── Setup-A-1-STA.pcap │   ├── Setup-A-2-STA.pcap

In this case you don't need to specify the Device_Label manually, since it is generated by the program itself once it reads through each directory. This said, if you want to test against only one device, with one pcap, you could try this:

./iot_fingerprint.py -i captures_IoT_Sentinel/captures_IoT-Sentinel/D-LinkCam/Setup-A-1-STA.pcap -l D-LinkCam -o csv_result_dlinkcam/

Feel free to update this code, since it needs to be more improve for a generic use,

Cheers!

andypitcher commented 5 years ago

RajaMuz, The script has been developed on a Linux 64bit with python V2. Depending on the size of your dataset, I would recommend to test the script with one device and few pcaps, to begin with, and see if the memory error remains. Thanks