In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-01-23 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)05/31 Report--
This article mainly introduces what IoTMap is a tool, has a certain reference value, interested friends can refer to, I hope you can learn a lot after reading this article, the following let the editor take you to understand it.
IoTMap
IoTMap is a multi-protocol network modeling tool of the Internet of things, which can model the Internet of things IoT network using one or more protocols at the same time. The project is still in the development stage and is mainly aimed at the security of Internet of things devices. The project is currently updated regularly, and the current version of IoTMap supports three protocols, BLE, ZigBee, and OS4I, and will support more in the future.
Tools require Python 3 to rely on: 1, Python > 3.52, Scapy (can be installed through requirements files, but it is recommended to use the latest version of the source code for project construction) 3, neo4j-1.7.64, docopt-0.6.25, prompt-toolkit-3.0.56, terminaltables-3.1.07, pycryptodomex-3.9.7
The majority of researchers can use the following commands and requirements.txt files to install dependency packages:
Pip3 install-r requirements.txtOS library
In addition to the above dependent components, we also need to install libgcrypt20-dev (for network sniffing), where you can use the following commands, depending on the operating system you are using:
Sudo apt-get install libgcrypt20-dev # (debian-based distribs) sudo pacman-S libgcrypt # (archlinux-based distribs) tool installation
The majority of researchers can use the following command to clone the project source code locally and install all the above dependent components:
# for git clone https://github.com/AlgoSecure/iotmap.gitcd iotmapsudo pip install-r requirements.txt # Debian-based system sudo apt-get install libgcrypt20-dev # ArchLinux-based system sudo pacman-S libgcrypt
Next, we also need to install Neo4J, and most Linux distribution systems can install Neo4J through the built-in package manager. Of course, we can also install and use the tool through tarball:
Cd / path/to/iotmapcd database # can replace the latest version number parameter wget-O neo4j-community.tar "https://neo4j.com/artifact.php?name=neo4j-community-3.5.9-unix.tar.gz"mkdir neo4j-community & & tar xvf neo4j-community.tar-C neo4j-community-strip-components 1 in URL if necessary.
If you are running the tool for the first time, you also need to define a user name and password for the database. You can use the following command to open the database:
Cd database./neo4j-community/bin/neo4j console
At this point, Neo4J will run and can be accessed through http://localhost:7474. The default user name and password is neo4j. IoTMap uses the default username and password (iotmap).
If you want to set different credentials, you need to update the parameter value on line 46 in the core/databaseController.py file:
Model = Model ("bolt: http://localhost:7474"," username "," password ") tool use
We can run and open the framework using the following command:
Python3 iotmap.py
IoTMap will open the neo4j database before running, but the database is not immediately available because it takes about 10 seconds to initialize.
IoTMap provides three modules, namely, the database module (Datebase), the model module (Modelling) and the sniffing module (Sniffing). The Sniffing module is still under development, and some options may not be available. To switch modules, you can enter the module name directly:
Python3 iotmap.pyStarting the databaseDatabase is available at http://localhost:7474/ IIIIIIIIII TTTTTTTTTTTTTTTTTTTTTTTMMMMMMMM MMMMMMMMI:I T:TM:M M:MI:I T: : TM:M M:MII:II T:TT:TT:TM:M M:MI: I oooooooooooTTTTTT T:T TTTTTTM: : M M:M aaaaaaaaaaaaa ppppp ppppppppp I::::I oo:oo T:T M:M M:M a:a p::::ppp:p I::::I o : o T:T M:M::::M M::::M:M aaaaaaaaa:ap:p I::::I o:ooooo:o T:T M: M M::::M M::::M M:M a::::app:ppppp:p I::::I o::::o o::::o T:T M:M M::::M::::M M:M aaaaaaa:a p:p P:p I::::I o::::o o::::o T:T M:M aa:a p:p p:p I::::I o::::o o::::o T:T M:M M:M M:Ma:::: aaaa:a p:p p:p I::::I o::::o o::::o T:T M:M MMMMM M:Ma::: : an a:a p:pp: pII:IIo:ooooo:o TT:TT M:M M:Ma::::an a:a p:ppppp:pI:Io::: : o T:T M:M M:Ma:aaaa:a p:pI:I oo:oo T:T M:: : MM: M a:aa:::ap:ppIIIIIIIIII ooooooooooo TTTTTTTTTTT MMMMMMMM MMMMMMMM aaaaaaaaaa aaaap:pppppppp P:p p:p p:p P:p p:p Ppppppppp Version=0.1 IoTMap > help Core commands= Commands Description-- database Use database mode. Sniffing Use sniffing mode. Exploit Use exploit mode. IoTMap >
Each module and function function here provides a help menu to help researchers understand how the tool is used.
Database module (Datebase)
This module is responsible for interacting and managing the neo4j database:
IoTMap > databaseIoTMap database > help Core commands= Commands Description-- database Use database mode. Sniffing Use sniffing mode. Exploit Use exploit mode. Database commands= Interact with the neo4j database. List of available commands: addNodes clearDatabase exportDB getNodes help importDB importPcaps mergeNodes removeNode For more information about any commands hit:-h IoTMap database >
We can populate the database with data by importing an existing database or Pcap file. The ImportPcaps command converts the Pcap file into the uniform format we need to generate the model. This module can use different extractors according to the given protocol, and the main program of IoTMap can select the corresponding extractor and run the packet generator (gen_packets.py) in multithreaded form to generate uniform format pcap files.
Model module (Modelling) IoTMap modelling > help Core commands= Commands Description-- database Use database mode. Sniffing Use sniffing mode. Exploit Use exploit mode. Modelling commands= Map the network of IoT devices detected by sniffing. List of available commands: appGraph compareTo dlGraph help nwkGraph option run set transGraph For more information about any commands hit:-h IoTMap modelling >
The program will open the Neo4J database before creating the model, and after the database is opened, the module will run. First, it analyzes the input pcap file, then extracts and creates nodes, and the edges of the connected nodes are linked nodes. After the model is created successfully, we can view the results by visiting http://localhost:7474/.
Screenshot of tool running
Thank you for reading this article carefully. I hope the article "what tool IoTMap is" shared by the editor will be helpful to everyone. At the same time, I also hope you will support us and pay attention to the industry information channel. More related knowledge is waiting for you to learn!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.