Skip to content

Commit 3f6cb3f

Browse files
authored
Merge pull request #119 from os-cloud-360/DEF-33507
DEF-33507 Add description of new 'malware malicious diff' command to documentation
2 parents 3e62816 + 24938a2 commit 3f6cb3f

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

docs/imunifyav/cli/README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -418,6 +418,7 @@ where PATHS are the absolute paths to files or folders divided by a whitespace.
418418
|-|-|
419419
|<span class="notranslate">`cleanup`</span>|clean up infected ITEMS for a USER|
420420
|<span class="notranslate">`cleanup-all`</span>|clean up all files that have been detected as infected for all users|
421+
|<span class="notranslate">`diff`</span>|obtain the base64-encoded unified diff between the infected and cleaned version of the file|
421422
|<span class="notranslate">`restore-original`</span>|restore the original (malicious/infected) file to its original location|
422423
|<span class="notranslate">`list`</span>|list malicious/infected files|
423424
|<span class="notranslate">`move-to-ignore`</span>|move a <span class="notranslate">Malicious List</span> entry to the (malware) <span class="notranslate">Ignore List</span>|
@@ -557,6 +558,17 @@ imunify-antivirus malware user list
557558
558559
The successful initiation/stopping of a scanning process or adding of ignore directories/files should give you ```OK``` in the output.
559560
561+
10. The following command shows how to get the difference between the infected and cleaned version of the file.
562+
563+
<div class="notranslate">
564+
565+
```
566+
imunify-antivirus malware malicious diff --id=1 --json | jq .diff -r | base64 --decode
567+
```
568+
</div>
569+
570+
The required ID can be obtained from the <span class="notranslate">`malware malicious list`</span> command output.
571+
560572
561573
## Notifications config
562574

0 commit comments

Comments
 (0)