Installing Snort on Kali Linux

Make a Backup of Current Sources.list File

mv /etc/apt/sources.list /etc/apt/sources.list.bak

Remove currently installed Kali Updates

find /var/lib/apt/lists -type f -exec rm {} \;

Download Ubuntu Sources.list File

wget https://gist.githubusercontent.com/ishad0w/788555191c7037e249a439542c53e170/raw/3822ba49241e6fd851ca1c1cbcc4d7e87382f484/sources.list -O /etc/apt/sources.list

Attempting to Update

GPG error: http://archive.ubuntu.com/ubuntu focal-security InRelease: The following signatures couldn't be verified because the public key is not available: NO_PUBKEY 3B4FE6ACC0B21F32 NO_PUBKEY 871920D1991BC93C
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 3B4FE6ACC0B21F32
sudo apt-key adv --keyserver keyserver.ubuntu.com --recv-keys 871920D1991BC93C

Install Snort

sudo apt install snort

Restoring Kali’s Repository Sources.list File

find /var/lib/apt/lists -type f -exec rm {} \;
mv /etc/apt/sources.list /etc/apt/ubuntu_sources.list
mv /etc/apt/sources.list.bak /etc/apt/sources.list

The End

Pythonista & Gopher | <OSCP> <CySA+> <Security+> | Part-time Cybersecurity Instructional Associate @ Fullstack Academy

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store