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.

Haiku #9 Hackers? Really?

Ukraine: EU deploys cyber rapid-response team

Basic Malware Analysis For Incident Response(Static Analysis)

{UPDATE} Ultimate Lion Simulator 2 Hack Free Resources Generator

Architecting Security & Governance Across your AWS Accounts part 1: Introduction

Bragging Rights: Killing File uploads softly

The Ransomware Evolution Landscape Part 2 — GandCrab, Sodinokibi and How to Scam a RaaS Operator

Lack of security controls (or DevSecOps) in any organization can be very, VERY expensive.

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

Deployment Rolling Update & Rollback- Exercise-02

Adding Windows Node to K8S Cluster and Monitoring

Xavki’s Links : 20220103 week

On premise kubernetes setup with metallb (layer 2) and nfs volume provisioner.