How to Check If Log4j Is Installed on My Server?

Introduction

Referring to the Critical vulnerability in Apache Log4j library, about which you can read in the link below will show a simple script with which we will be able to diagnose whether there is log4j on our system.

How check this ?

  • Download script and run
##For Ubuntu
root@master:/home/ozyrys# wget https://gist.githubusercontent.com/spy86/5d701751f3177f612faa21ca46b53f54/raw/2572cf9975da912f7b45e66e6c3a4bb3ac7de245/check_for_ubuntu.sh
root@master:/home/ozyrys# chmod +x check_for_ubuntu.sh
root@master:/home/ozyrys# ./check_for_ubuntu.sh
##For CentOS
root@master:/home/ozyrys# wget https://gist.githubusercontent.com/spy86/73f772de95b73cb4b77d7cca9abdd924/raw/71c98174de0b7cf90d30bf2ac4ddca351a4edf45/check_for_centos.sh
root@master:/home/ozyrys# chmod +x check_for_centos.sh
root@master:/home/ozyrys# ./check_for_centos.sh

 by the author.

--

--

--

DevOps Consultant. I’m strongly focused on automation, security, and reliability.

Love podcasts or audiobooks? Learn on the go with our new app.

The key to finding and fixing software vulnerabilities? Cooperation

VMware Solution

Pushing Cybersecurity Innovation: The Security Advisor Summit

How To Conquer Online Classifieds

Remembering Barnaby Jack — The Forgotten Pioneer of ATM Jackpotting

The official airdrop for Rhino Inu Token

Implementing security coverage for GitHub workflows

Burn After Reading

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
Maciej

Maciej

DevOps Consultant. I’m strongly focused on automation, security, and reliability.

More from Medium

How To Install Docker In Jenkins Container

Kubernetes for Beginners: Basics, Features, Architecture Part II

Docker Essentials & Security