- Attacker is divided into: Single Attacker and Modtester tool.
- Go to attacker folder
cd ~/ICSVirtual/attacker
. - Compile
injection_attack.cpp
fileg++ injection_attack.cpp -o injection_attack -pthread
. - Build image:
docker build -t attacker .
.
- Open docker-compose file
cd ~/ICSVirtual/network/attacker
. - Change the image of the
matlab
service bysflorenz05/attacker:v0.1
.
- Compile attacker code:
cd ~/ICSVirtual/attacker
g++ injection_attack.cpp -o injection_attack -pthread
- Add permissions:
cd ~/ICSVirtual/network/attacker
sudo chmod +x scripts/*.*
- Set enviromental variables:
- Copy the
.env.example
and paste in the same path.- Rename
.env.example
to.env
.
- Rename
- Inspect the PLC container:
docker inspect <containerid>
to recover IP address of this container.- Set the
IP_PLC
variable. - Set the
FREQ
variable.
- Set the
- Copy the
- Go to modtester folder
cd ~/ICSVirtual/modtester
. - Build image:
docker build -t modtester .
.
- Open docker-compose file
cd ~/ICSVirtual/network/modtester
. - Change the image of the
matlab
service bysflorenz05/modtester:v0.2
.
- Add permissions:
cd ~/ICSVirtual/network/modtester
sudo chmod +x scripts/*.*