From ef26027d9fe7db59d155c47dce0f2308007d48e9 Mon Sep 17 00:00:00 2001 From: sunilgovind Date: Tue, 21 Dec 2021 07:12:48 +0530 Subject: [PATCH] Examples for script usage (#24) --- README.md | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 9f80f75..9799f59 100644 --- a/README.md +++ b/README.md @@ -50,8 +50,13 @@ run_log4j_patcher.sh automatically. RUN_SCAN If non-empty, runs a final scan for missed vulnerable files. This can take several hours. TMPDIR If non-empty, uses /tmp as the temporary directory. Set a different temporary directory using this. ``` -Example : Run scan without patching jar, tar, and HDFS. +Example : +1. Run scan without patching jar, tar, and HDFS. ``` SKIP_JAR=1 SKIP_TGZ=1 SKIP_HDFS=1 RUN_SCAN=1 ./run_log4j_patcher.sh [cdp|cdh|hdp|hdf] ``` +2. Run scan after patching jar, tar, and HDFS. +``` +RUN_SCAN=1 ./run_log4j_patcher.sh [cdp|cdh|hdp|hdf] +``` HDP Notes : Currently the HDP removal scrips works on folder `/user/` on HDFS. Please modify/extent in The `hdp_log4j_jndi_removal.sh` around `line 41`.