Detection and Prevention of Security Attacks in VANET
https://linoxide.com/linux-how-to/learn-how-install-latest-eclipse-ubuntu/
sudo apt-get install mvn
set MVN_HOME Path Variable
sudo apt-get install java
set JAVA_HOME Path variable
sudo apt-get install openjdk-8-jdk
sudo update-alternatives --set java/usr/lib/jvm/jdk1.8.0_version/bin/java
Generate the new certificate by running the command
./gen-cert.sh <vehicle1> <vehicle2> ..., new keys will also be generated for ca and RSU in the process.
Install All the dependencies required for the project, run the command:
sudo apt-get ./mvn-script.sh install
Run the commands to detect and prevent attacks
Method 1: sudo ./mvn-script.sh <entity> [arguments]
entity: (VIN8 vehicle8 10,5 0,0 BAD_SIGNATURES)
BAD_POSITIONS: for Sybil Attack Detection
BAD_SIGNATURES: for Bad signature detection
BAD_CERTIFICATE: for bad certification detection
BAD_TIMESTAMPS: for Replay Attack Detection
BEACON_DOS: for DOS attack detection
arguments: (example)
VIN1 vehicle1 750,850 0,0 Sample Massage
VIN8 vehicle8 10,5 0,0 BAD_SIGNATURES
VIN21 invalidCACert1 5,5 0,0 BAD_CERTIFICATE
VIN4 vehicle4 10,5 0,0 BAD_SIGNATURES
VIN6 vehicle6 10,5 0,0 BEACON_DOS
Method 2: use the launcher to launch predefined profiles in: profiles_*.txt with: (if name is omited default profile_default.txt is assumed
sudo ./launcher <any-profile-file>
Step 3: Follow the command instruction and execute the Proposed System.