AAC - Dump CVE Relevant PatchFixlets in a File
Log In or Register to download the BES file, and more.

0 Votes

Description

Create a file that lists all the system relevant fixlets of subscribed sites named ".....Patch ........"

 


Property Details

ID24355
StatusAlpha - Code that was just developed
TitleAAC - Dump CVE Relevant PatchFixlets in a File
DomainBESC
SourceInternal
Source Release Date10/16/2014 12:00:00 AM
KeywordsCVE Patch
Added by on 5/18/2017 3:05:23 PM
Last Modified by on 5/18/2017 3:05:23 PM
Counters 92 Views / 1 Download
User Rating 1 star 2 star 3 star 4 star 5 star * Average over 0 ratings. ** Log In or Register to add your rating.

Relevance

Used in 1 fixlet   * Results in a true/false
Show indented relevance
not exists it whose (modification time of it + 30 * minute> now) of files (if (name of operating system as lowercase contains "win") then "C:\RelevantFixlets.lst" else "/tmp/RelevantFixlets.lst")

Actions

Action 1 (default)

Action Link Click here to deploy this action.
Script Type BigFix Action Script
// Enter your action script here
action log command
delete __appendfile
appendfile {concatenation "%0d%0a" of (concatenation "," of ((values of it) of ( headers "X-Fixlet-CVE" of it) of it) & " | " & name of site of it & " | " & id of it as string & " | " & value of header "Subject" of it) of it of fixlets whose (relevance of it) of sites whose (name of it as lowercase contains "patch")}
if {name of operating system as lowercase contains "win"}
delete "C:\RelevantFixlets.lst"
move __appendfile "C:\RelevantFixlets.lst"
else
delete "/tmp/RelevantFixlets.lst"
move __appendfile "/tmp/RelevantFixlets.lst"
wait chmod ugo+r "/tmp/RelevantFixlets.lst"
endif
action log all
Success Criteria

This action will be considered successful when the applicability relevance evaluates to false.

Action 2

Action Link Click here to deploy this action for fixlets where a CVE Id exists from all subscribed sites
Script Type BigFix Action Script
// Enter your action script here
action log command
delete __appendfile
appendfile {concatenation "%0d%0a" of (concatenation "," of ((values of it) of ( headers "X-Fixlet-CVE" of it) of it) & " | " & name of site of it & " | " & id of it as string & " | " & value of header "Subject" of it) of it of fixlets whose (relevance of it and (( exist headers "X-Fixlet-CVE" whose (value of it contains "CVE-")of it))) of sites whose (name of it as lowercase contains "patch")}
if {name of operating system as lowercase contains "win"}
delete "C:\RelevantFixlets.lst"
move __appendfile "C:\RelevantFixlets.lst"
else
delete "/tmp/RelevantFixlets.lst"
move __appendfile "/tmp/RelevantFixlets.lst"
wait chmod ugo+rw "/tmp/RelevantFixlets.lst"
endif
action log all
Success Criteria

This action will be considered successful when the applicability relevance evaluates to false.


Sharing

Social Media:
Share this page on Yammer

Comments

Log In or Register to leave comments!