How 7-naveen-7/networksecurity_assignment1 works
This repository is a staged secure-chat assignment: clients and a relay server evolve from plaintext messaging through encrypted sessions and certificate-based authentication, with Mallory proxy variants demonstrating interception and certificate scenarios. The principal workflow is a client connecting to the server, registering or chatting, and exchanging messages; later phases add cryptographic handshakes and end-to-end session keys. The supplied README only gives deployment guidance, and excerpts do not establish most phase-to-phase protocol links, so those links are marked unverified. Phase 1 includes smaller connection exercises, omitted here as peripheral.
Main entry points: Phase3/server.cpp Phase 3 Server · Phase2/server.cpp Phase 2 Server · finalCode/client.cpp Phase 1 Client · Phase2/client.cpp Phase 2 Client
Components 18
Plain Chat
- Phase 1 Client
Assignment1/client/Phase1/finalCode/client.cpp - Phase 1 Server
Assignment1/server/Phase1/finalCode/server.cpp
Encrypted Chat
- Phase 2 Client
Assignment1/client/Phase2/client.cpp - Tamper Client
Assignment1/client/Phase2/tamper_client.cpp - Phase 2 Server
Assignment1/server/Phase2/server.cpp
Certificate Security
- Phase 3 Client
Assignment1/client/Phase3/client.cpp - Phase 3 Server
Assignment1/server/Phase3/server.cpp - Phase 4 Client
Assignment1/client/Phase4/client.cpp - Phase 4 Server
Assignment1/server/Phase4/server.cpp - Phase 5 Client
Assignment1/client/Phase5/client.cpp - Phase 5 Server
Assignment1/server/Phase5/server.cpp
Interception Scenarios
- Vulnerable Client
Assignment1/client/Phase2/vuln_client.cpp - Phase 2 Proxy
Assignment1/mallory/Phase2/mitm_proxy.cpp - Vulnerable Client
Assignment1/client/Phase3/vuln_client.cpp - Phase 3 Proxy
Assignment1/mallory/Phase3/mitm_proxy.cpp - Invalid-Cert Proxy
Assignment1/mallory/Phase3/mitm_proxy_invalid_cert.cpp - Stolen-Cert Proxy
Assignment1/mallory/Phase3/mitm_proxy_stolen_cert.cpp
Other components
- Chat User
Connections 20
- Chat User → Phase 1 Client: uses
- Chat User → Phase 2 Client: uses
- Chat User → Tamper Client: uses
- Chat User → Vulnerable Client: uses
- Chat User → Phase 3 Client: uses
- Chat User → Vulnerable Client: uses
- Chat User → Phase 4 Client: uses
- Chat User → Phase 5 Client: uses
- Phase 1 Client → Phase 1 Server: connects
- Phase 2 Client → Phase 2 Server: connects
- Tamper Client → Phase 2 Server: connects
- Vulnerable Client → Phase 2 Proxy: targets
- Phase 2 Proxy → Phase 2 Server: forwards
- Phase 3 Client → Phase 3 Server: connects
- Vulnerable Client → Phase 3 Proxy: targets
- Phase 3 Proxy → Phase 3 Server: forwards
- Invalid-Cert Proxy → Phase 3 Server: intercepts
- Stolen-Cert Proxy → Phase 3 Server: impersonates
- Phase 4 Client → Phase 4 Server: connects
- Phase 5 Client → Phase 5 Server: connects