CyberSecurity project for Università degli Studi di Salerno. Academic year 2019/2020.
See the documentation to understand the goals of the project.
In order to use the software you need:
The command sequence follows the one given in the documentation.
If you are using a Linux OS, follow these instructions:
- Open the shell on the directory
TestCrypto - Run the command
sh generation_script_linux.sh - Run the command
cd server- Run the server python script with
python3 server.py
- Run the server python script with
- Open another shell on the directory
TestCrypto/sender- Run the sender python script with
python3 script_sender.py 0to simulate a non-infected-user-like behavior - Run the sender python script with
python3 script_sender.py 1to simulate an infected-user-like behavior
- Run the sender python script with
- Open another shell on the directory
TestCrypto/receiver- Run the receiver python script with
python3 script_receiver.py 0to simulate a honest-user-like behavior - Run the receiver python script with
python3 script_receiver.py 1to simulate an adversary-like behavior
- Run the receiver python script with
If you are using a Windows OS, follow these instructions:
- Open the shell on the directory
TestCrypto - Run the command
sh generation_script_windows.sh - Run the command
cd server- Run the server python script with
python server.py
- Run the server python script with
- Open another shell on the directory
TestCrypto/sender- Run the sender python script with
python script_sender.py 0to simulate a non-infected-user-like behavior - Run the sender python script with
python script_sender.py 1to simulate an infected-user-like behavior
- Run the sender python script with
- Open another shell on the directory
TestCrypto/receiver- Run the receiver python script with
python script_receiver.py 0to simulate a honest-user-like behavior - Run the receiver python script with
python script_receiver.py 1to simulate an adversary-like behavior
- Run the receiver python script with
If you get an error like sh is not recognized as an internal or external command, operable program or batch file,
follow these instructions:
- Install Git in your computer
- After installing Git, go to the foler in which Git in installed
- Mostly it will be in
C driveand thenProgram Filesfolder
- Mostly it will be in
- In
Program Filesfolder, you will find the folder namedGit, find thebinfolder which is insideusrfolder in theGitfolder- For example, the location is
C:\Program Files\Git\usr\bin
- For example, the location is
- Add this location (
C:\Program Files\Git\usr\bin) inpathvariable, in system environment variables - You are done. Restart
cmdand try to runlsor other Linux commands - Follow the above instructions again to run the software