cover photo

COURSEWORK

Shanmukha's CL-CY-001 course work. Lv 2

Shanmukha DAUTHORACTIVE
This Report is yet to be approved by a Coordinator.

Level 2 Report

2 / 10 / 2024


Task 1: Linux Based Task with Socket.io

In this I had created the live chat application by using nodejs and importing socket.io in it, which is the library , an open-source, cross-platform library that enables real-time, event-based communication between a client and a server.
By this I came to know the use of socket.io and also gone through java script by it.
I chooses the localhost3000 to run the code. While running this we should start our server by giving command npm start in the terminal.
The below is the link for git repository:

Chat application image


Task 2: Git Bash and GitHub

By this task I came to know the usage of Git Bash , by which we can change the code in git hub.
GitHub is a web-based platform that allows users to collaborate on code, web pages, and other content and Git Bash is a command line interface that used to interact with Git repositories, perform version control tasks, and navigate the file system.
Through git bash I learnt to add, commit some code changes, and push them to GitHub.

Changes through git bash

Image


Task 3: OSI MODEL

OSI MODEL that is, Open System Interconnection Model. A conceptual framework that divides network communications functions into seven layers.
n the OSI reference model, the communications between a computing system are split into seven different abstraction layers: Physical, Data Link, Network, Transport, Session, Presentation, and Application.

Physical layer : Transmits raw bit stream over the physical medium.
Data Link : Defines the format of data on the network.
Network : Decides which physical path the data will take.
Transport : Transmits data using transmission protocals.
Session : Maintains connections and is responsible controlling ports.
Presentation : Ensures the data is in usable format and is where data encryption occurs.
Application : Human-computer interaction layer, where applications can access the network service.
The below is the link to git repository:
OSI Model

osi


Task 4: Encryption Techniques

Through this task I came across the usage of encryption and decryption in the code using PyCrypto library. To do so I installed cryptodome in terminal and later imported AES ( Advanced Encryption Standard ) which is used to encrypt sensitive data.
In this I imported get_random_bytes by which the random letters are generated and also imported pad and unpad to indert padding while the sentence is encrypted and unpads while it is to be decrypted. Also imported base64 which encodes the encrypted data in the format that can be easily printed.


The below is the link for my git repository:
Encryption and decryption Encrypt image


Task 5: IP Addressing and Protocols

By this particular task I came across the usage of beautifulsoup library of python.
Python libraries like Beautiful Soup is used to scrape IP address data from a website. And even the whole HTML body. Through this I could scrape the IP address from the website . IP address an Internet Protocol address is a unique numerical identifier for every device or network that connects to the internet. Also used the another python library request .The requests library in Python is used to send HTTP requests to websites and APIs . It simplifies the process of interacting with web services and retrieving data from them.
The below is the link for git repository:

IP address and protocols


Task 6: Kali Linux and SSH

Kali Linux is a free resource available, which is used by many of the cyber users as it is user friendly which involves various other tools. It is a very vast concept, by which we can dive into the field of cyber security field.
By this particular task I came by across the usage of kali by using Nmap by which I sacnned the ports of the system I was using and displayed the open ports in it.


Task 7: Databases

By this task I came to know that what actually the database is and also what work does it do and how important it is. These and all I came to know by using Mysql as the database connecting with Nodejs .
A database is a structured collection of data that's stored electronically on a computer system. By this I set up a MySQL database and create a simple CRUD (Create, Read, Update, Delete) application using Node.js
I created the database in mysql and later on linked nodejs to mysql , by which I could control the CRUD operations .

The below is the link to git repository:
Database

initial img after img

UVCE,
K. R Circle,
Bengaluru 01