0% found this document useful (0 votes)
3 views

CSET227 Lab Assignment 2

Uploaded by

atalrani8
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
3 views

CSET227 Lab Assignment 2

Uploaded by

atalrani8
Copyright
© © All Rights Reserved
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 7

School of Computer Science Engineering and Technology

Course- B.Tech Type- Core Course


Code- CSET227 Course -System and Network Security
Year- 2024 Semester- Even
Date- 29-1-2024 Batch- 2024-2026

Assignment. Name CO 1 CO 2 CO 3
2 Assignment:02 √
Assignment:02
Objective 1:
In this lab, students will learn how to install Wireshark in their Computer. They will also learn
how to capture network packets and analyze the network traffic on an interface. Wireshark is
a network packet analyzer. A network packet analyzer presents captured packet data in as much
detail as possible.

Q1) Implementation of basic networking commands.


• IPCONFIG
• NSLOOKUP
• HOSTNAME
• PING
• TRACERT
• NETSTAT
• ARP (Address Resolution Protocol)
• SYSTEMINFO.
Q2) Enabling terminal in windows
Q3) Installation of Wireshark
Q4) Installation of Kali Linux
How to Install Wireshark on Windows

1. Download Wireshark:
o Go to the official Wireshark website: https://www.wireshark.org/.
o Click on the "Download" link in the top menu.
2. Choose the Version:
o Select the version suitable for your Windows system (32-bit or 64-bit).
o Most modern systems are 64-bit, but if you are unsure, you can check by right-
clicking on "This PC" or "My Computer" and selecting "Properties."
3. Download the Installer:
o Click on the download link for the stable release.
o Save the installer file to your computer.
4. Run the Installer:
o Locate the downloaded installer file (usually named something like
Wireshark-win64-x.y.z.exe where x.y.z is the version number).
o Double-click on the installer file to run it.
5. Setup Wizard:
o The Wireshark Setup Wizard will guide you through the installation process.
o Click "Next" on the initial screen.
6. License Agreement:
o Read and accept the license agreement.
o Click "Next."
7. Choose Components:
o You can leave the default components selected.
o Click "Next."
8. Choose Install Location:
o You can leave the default installation location or choose a different one.
o Click "Next."
9. Choose Start Menu Folder:
o You can leave the default Start Menu folder or choose a different one.
o Click "Install."
10. Install WinPcap:
o During the installation, you may be prompted to install WinPcap. WinPcap is
a packet capture library that Wireshark uses.
o Select "Install" if prompted.
11. Complete the Installation:
o Wait for the installation to complete.
12. Finish Installation:
o Once the installation is finished, click "Next" and then "Finish."
13. Run Wireshark:
o Wireshark is now installed on your Windows system.
o You can launch it from the Start menu or desktop shortcut.

Remember that Wireshark requires administrative privileges to capture network traffic, so


ensure you run it as an administrator if needed.

Note: The installation steps might slightly vary depending on the version you download, but
the general process remains the same. Always download software from official sources to
ensure its authenticity and security.
Installing wireshark on linux:

Here are the steps for installing Wireshark on Linux, along with some additional information.
Please note that the actual commands and steps may vary slightly depending on your Linux
distribution. The examples here are for Debian/Ubuntu-based systems (using APT package
manager) and Red Hat/Fedora-based systems (using YUM package manager).

Debian/Ubuntu-based Systems:

1. Update Package List:

• sudo apt update

• Install Wireshark:

• sudo apt install wireshark

• Allow Non-Root Users to Capture Packets (Optional):


• By default, Wireshark can only be run by the root user for security reasons. If you want non-
root users to capture packets, you can add them to the wireshark group:

• sudo usermod -aG wireshark $USER


• After this, you may need to log out and log back in to apply the group changes.

• Start Wireshark:

4. wireshark
Red Hat/Fedora-based Systems:

1. Update Package List:

• sudo yum update

• Install Wireshark

• sudo yum install wireshark

• Allow Non-Root Users to Capture Packets (Optional):

• Similar to Debian/Ubuntu, you may need to add non-root users to the wireshark group.

• Start Wireshark:

4. wireshark
Other Linux Distributions:

• Use the package manager specific to your distribution to install Wireshark. The
package name may be different (e.g., zypper for openSUSE, pacman for Arch Linux).

Example for openSUSE:

sudo zypper install wireshark

Example for Arch Linux:

• sudo pacman -S wireshark-qt


Running Wireshark as a Non-Root User:

By default, Wireshark requires root privileges to capture packets. If you want to run
Wireshark as a non-root user, you can use the following command:

sudo setcap cap_net_raw,cap_net_admin=eip /usr/bin/dumpcap


sudo chmod +x /usr/bin/dumpcap

Replace /usr/bin/dumpcap with the path to your dumpcap binary if it's different.
After these steps, non-root users should be able to capture packets using Wireshark.

Remember to adjust the commands based on the specific package manager used by your
Linux distribution. Always install software from official repositories or trusted sources. If
you're using a distribution with a different package manager, consult its documentation for
the appropriate commands.

You might also like