Demonstrate how network communication works using Python sockets for basic cybersecurity tasks.

Business Scenario

Welcome!

A bank wants to develop a secure internal communication and login verification system where employees and users can send messages and login requests to a central server. The server receives data from multiple clients, verifies login credentials, and logs all communication for monitoring and security purposes.

Pre-Lab Preparation

Topic : Python Fundamentals for Cybersecurity

1) Introduction to Python for cybersecurity

2) Python basics (variables, data types,Input/Output operators, Conditional Statements, loops, functions)

You are working as a junior cybersecurity engineer and security analyst to develop and simulate this client-server communication system using socket programming.

Task 1: Secure Office Communication System

In this task, you will understand the basics of client-server architecture by creating a server that listens for incoming connections and a client that sends messages to the server. You will also establish communication between both systems to simulate real-time data exchange using socket programming.

Server Code (Message Receiver)

1

import socket

server = socket.socket(socket.AF_INET, socket.SOCK_STREAM)

server.bind(("127.0.0.1", 5000))
server.listen(5)

print("Server is listening...")
while True:
   client_socket, addr = server.accept()
   print(f"Connection from {addr}")
   
   message = client_socket.recv(1024).decode()
   print(f"Employee Message: {message}")
   
   client_socket.send("Message received securely".encode())
   client_socket.close()

Output

Task 1: Secure Office Communication System

In this task, you will understand the basics of client-server architecture by creating a server that listens for incoming connections and a client that sends messages to the server. You will also establish communication between both systems to simulate real-time data exchange using socket programming.

Click to download BRD : BiteBox_BRD.pdf

Activity

After going through BRD list down the Core Features and  Web Pages in the tabulated Format as shown Below.

Col 1Col 2Col 3
Row 1
Row 2
Row 3

Formula

Profit = Revenue - Cost

Task 2: Create WireFrame

Now that you understand the requirements, don’t jump into coding yet. Before development, we always visualize the layout.

Now lets  create a simple wireframe for the homepage.

A wireframe is like a layout plan of a house. Before building, you decide where rooms, doors, and windows will be placed.Similarly, a wireframe helps you plan where elements like headers, images, and buttons will appear on a webpage—before adding design or colours.

Task 3: Code Editor Installation

Good work on completing the planning phase.

Now we will start development. Before that, make sure your system is ready with the required tools.

In this step we will install the VS code editor that will help to Write code efficiently,Organize files , Run and test your application

Go to the visual studio code official website  

1

Click to download Homepage Wireframe : Homepage Wireframe

Choose your operating system(windows / Mac) and download the installation file.

Double click on the download app and Accept the agreement and click next

2

It is a long established fact that a reader will be distracted

b

Sub Steps

a

 Double click on the download app and Accept the agreement and click next 

public class MathSample {
    public static void main(String[] args) {
        int x = 10;
        int y = 20;
        int sum = x + y;
        
        System.out.println("The sum is: " + sum);
    }
}
public class MathSample {
    public static void main(String[] args) {
        int x = 10;
        int y = 20;
        int sum = x + y;
        
        System.out.println("The sum is: " + sum);
    }
}

public class MathSample {
    public static void main(String[] args) {
        int x = 10;
        int y = 20;
        int sum = x + y;
        
        System.out.println("The sum is: " + sum);
    }
}

 

Great job!
You have successfully completed your first lab on BiteBox Project Onboarding.

In this lab, you have: Understood the BRD, Created a wireframe, Set up your development environment, Organised your project structure, Run your first program

You are now ready to move to the next stage of development

Checkpoint

Next-Lab Preparation

   Git Push

git push origin branchName

Topic : Working with a Text and Listin HTML

1) Power of HTML text tags
2) Customizing your style with CSS
3) Listing it right using HTML
4) HTML Link up , attributes of tag, block vs inline elements

Text box Width : 887
Business Scenario, Pre-lab Preparation, Next-lab Preparation, Task, Activity, Checkpoint : 90%.
Steps : 1,2,3 [Sub Steps - a,b,c]
Normal Text, Topic Name : 80%
Subtopic : 70%
Code Box font Size : 16px

Demonstrate how network communication works using Python sockets for basic cybersecurity tasks.

By Content ITV

Demonstrate how network communication works using Python sockets for basic cybersecurity tasks.

  • 36