0% found this document useful (0 votes)
35 views2 pages

P 80,443: (Matches Both Tcp&udp SRC&DST, U Can Write Instead SRC Port 80/dst Port 80)

This document provides commands for: 1. Checking if a package is installed on RPM and Debian/Ubuntu systems, installing packages, enabling and checking status of services, and configuring firewall rules. 2. Killing a specific process by PID. 3. Capturing network traffic to a specific domain using tcpdump and analyzing the capture file in Wireshark. 4. Removing Apt and Dpkg lock files to resolve lock issues. 5. Creating and configuring a .vimrc file to set Vim editor preferences and settings.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views2 pages

P 80,443: (Matches Both Tcp&udp SRC&DST, U Can Write Instead SRC Port 80/dst Port 80)

This document provides commands for: 1. Checking if a package is installed on RPM and Debian/Ubuntu systems, installing packages, enabling and checking status of services, and configuring firewall rules. 2. Killing a specific process by PID. 3. Capturing network traffic to a specific domain using tcpdump and analyzing the capture file in Wireshark. 4. Removing Apt and Dpkg lock files to resolve lock issues. 5. Creating and configuring a .vimrc file to set Vim editor preferences and settings.
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as DOCX, PDF, TXT or read online on Scribd
You are on page 1/ 2

rpm -qa | grep [PACKAGE NAME]

yum install -y [PACKAGE NAME]


systemctl enable --now [PACKAGE NAME]
systemctl status [PACKAGE NAME]
firewall-cmd --add-service [PACKAGE NAME]
firewall-cmd --add-service [PACKAGE NAME]--permanent
firewall-cmd reload
firewall-cmd --list-all
-------------------------------------------------
apt list --installed | grep [PACKAGE NAME]
apt-get -y install [PACKAGE NAME]
systemctl enable --now [PACKAGE NAME]
systemctl status [PACKAGE NAME]
firewall-cmd --add-service [PACKAGE NAME]
firewall-cmd --add-service [PACKAGE NAME] --permanent
firewall-cmd reload
firewall-cmd --list-all
--------------------------------------------------------------
kill $(ps aux | grep firefox | grep -v grep | awk '{print $2}')
------------------------------------------------------------
tcpdump -I ens33/any -c 1000 host/dst google.com -n and/or -p 80 -w mamdouh.pcap

to analyze the pcap file in wireshark:$ wireshark -k -i <(cat mamdouh.pcap)

-p 80,443: (matches both tcp&udp SRC&DST, u can write instead src port 80/dst port
80) 
Lock Problem:

sudo rm /var/lib/apt/lists/lock
sudo rm /var/cache/apt/archives/lock
sudo rm /var/lib/dpkg/lock

cd ~

touch .vimrc

vim .vimrc
1 set showmode
2 set nohlsearch
3 set tabstop=4
4 set expandtab
5 set number

You might also like