- Ubuntu (latest >= 20.0) or Ubuntu WSL in Windows
- Go Programming Language Install Guide
- Necessary tools: (
sudo apt install build-essential doxygen git git-lfs curl wireshark python3-serial srecord rlwrap
) - Docker: Follow step by step as given below(run them in the terminal as follows):
for pkg in docker.io docker-doc docker-compose podman-docker containerd runc; do sudo apt-get remove $pkg; done
sudo apt-get update
sudo apt-get install ca-certificates curl gnupg
sudo install -m 0755 -d /etc/apt/keyrings
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --dearmor -o /etc/apt/keyrings/docker.gpg
sudo chmod a+r /etc/apt/keyrings/docker.gpg
7.echo \ "deb [arch="$(dpkg --print-architecture)" signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \ "$(. /etc/os-release && echo "$VERSION_CODENAME")" stable" | \ sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
sudo tee /etc/apt/sources.list.d/docker.list > /dev/null
- sudo apt-get update
sudo apt-get install docker-ce docker-ce-cli containerd.io docker-buildx-plugin docker-compose-plugin docker-compose
sudo docker run hello-world
Check if Docker is installed by running this command:
docker --version
docker-compose --version
- Java SE 11: Download the binaries:
curl -LO https://corretto.aws/downloads/latest/amazon-corretto-11-x64-linux-jdk.tar.gz
- Extract the tar.gz file and add the bin folder inside this folder to the
$PATH
variable in the.bashrc
file. - Check the installation by
javac --version
You can follow the Hyperledger fabric installation by following this tutorial: https://hyperledger-fabric.readthedocs.io/en/latest/install.html. Go step by step without leaving anything.
Follow the ContikiNG setup here.
- Start the docker system by running this file:
./start_system.sh
. Make sure you make this file runnable by doingchmod 744 start_system.sh
.
- Install the
tunslip6
inside of theserial-io
folder of thecontiki-ng
folder cloned from the repository by runningmake
inside of it. - Run the cooja simulator by going inside of the
contiki-ng/tools/cooja
and running./gradlew run
command. - Create a sample attack simulation by adding motes from the
RPL-UDP
folder in examples directory. You can check how to create a simulation by watching this tutorial on youtube https://www.youtube.com/watch?v=pAc6yvEpx74. - Use the
mallicious.c
file to create a mallicious node. Modify it according to your needs. - Run the
start_simuation.c
file before starting the attack simulation incooja
.
The modified files are availabe in the
Contiki
folder in this repository.