Socket programming project implementing the Remote File Management Protocol (RFMP) in Python and C, with RSA/AES/Caesar encryption — CSEC-201 group project.
Work split:
ayham_server.py -> Ayham
ayham_client.py -> Abdulrahman al khatib
packets.py -> Elie
crypto_utils.py -> ELie
ayham_client.c -> Khaled
Check requirements.txt for the required libraries.
On Kali Linux:
pip install cryptography --break-system-packagesOpen a terminal in the project folder and run:
python3 ayham_server.pyIt prints RFMP server listening on port 5050. Keep this terminal open.
Always run the Python files with python3. Running ./ayham_server.py makes the shell treat the file as a shell script.
Open a second terminal in the project folder and run:
python3 ayham_client.pyThe client asks for:
- Server IP: press Enter for
127.0.0.1(same computer), or type the server's IP address. - Mode:
NONE(no encryption),AES, orCAESAR. - Username: only asked for
AESandCAESAR.
Then choose from the menu:
| Option | What it does |
|---|---|
| 1. Run a command | Sends a command such as mkdir test, cd test, ls, ren old new |
| 2. Read a file | openRead: shows a file from the server |
| 3. Write a file | openWrite: sends a local file to the server |
| 4. End | Closes the connection |
Commands: mkdir, cd, rmdir, rd, del, ren, ls, pwd, whoami, hostname, date. Names cannot contain spaces.
Server errors are shown as Server error <code>: <description>.
On macOS or Linux, compile it with:
gcc ayham_client.c -o ayham_clientRun the compiled client with:
./ayham_clientEnter the server IPv4 address when requested. Use 127.0.0.1 when the server is running on the same computer.
- All computers must be on the same network (a phone hotspot works best).
- On the server computer, find its IP address with
ip a(Linux) oripconfig(Windows), for example192.168.1.5. - Start the server on that computer.
- On the other computers, enter that IP address when the client asks for the server IP.