Chocolatey Deployment Info
Log In or Register to download the BES file, and more.

0 Votes

Description

Audit Chocolatey

https://chocolatey.org/


Property Details

ID2998598
StatusAlpha - Code that was just developed
TitleChocolatey Deployment Info
DomainBESC
Added by on 11/9/2018 2:19:25 AM
Last Modified by on 11/9/2018 2:19:25 AM
Counters 128 Views / 3 Downloads
User Rating 1 star 2 star 3 star 4 star 5 star * Average over 0 ratings. ** Log In or Register to add your rating.

Properties

Version of Chocolatey
Period Every Report
 
  * Results in a "string"/number
Show indented relevance
unique values of versions of files "choco.exe" of ( parent folders of folders ( unique values of (substrings separated by ";" of it) whose(it as lowercase contains "choco") of unique values of (it as string as trimmed string) of values "Path" of keys "Control\Session Manager\Environment" of keys whose(name of it contains "ControlSet") of keys "HKEY_LOCAL_MACHINE\SYSTEM" of (x64 registries;x32 registries) ) ; folders ( unique values of (it as string as trimmed string) of values "ChocolateyInstall" of keys "Control\Session Manager\Environment" of keys whose(name of it contains "ControlSet") of keys "HKEY_LOCAL_MACHINE\SYSTEM" of (x64 registries;x32 registries) ) )
Path to Chocolatey
Period Every Report
 
  * Results in a true/false
Show indented relevance
unique values of pathnames of ( parent folders of folders ( unique values of (substrings separated by ";" of it) whose(it as lowercase contains "choco") of unique values of (it as string as trimmed string) of values "Path" of keys "Control\Session Manager\Environment" of keys whose(name of it contains "ControlSet") of keys "HKEY_LOCAL_MACHINE\SYSTEM" of (x64 registries;x32 registries) ) ; folders ( unique values of (it as string as trimmed string) of values "ChocolateyInstall" of keys "Control\Session Manager\Environment" of keys whose(name of it contains "ControlSet") of keys "HKEY_LOCAL_MACHINE\SYSTEM" of (x64 registries;x32 registries) ) )
Last 100 lines of chocolatey.log file
Period Every Report
 
  * Results in a "string"/number
Show indented relevance
(item 1 of /* -> This "it" refers to the last 100 lines of the file -> */ it) whose( /* -> remove empty lines, which is why this relevance can return less than 100 lines per file -> */ it as trimmed string != "") of ( /* -> this is the number of lines of the file from the previous statement -> */ item 1 of it, (lines of /* -> the file object -> */ item 0 of it) ) /* -> This whose statement is responsible for filtering for only the last 100 lines of the file -> */ whose ( (line number of /* -> lines of the file -> */ item 1 of it) > ( /* -> number of lines of the file -> */ item 0 of it - 100 /* <- This is the number of lines to return, which is subtracted from the total # of lines <- */ ) ) of ( /* -> the parent file object itself -> */ it, number of lines of it) of files "chocolatey.log" of folders "logs" of (folder it) of unique values of pathnames of ( ( (folder it) of unique values of (it as string as trimmed string) of values "ChocolateyInstall" of keys "Control\Session Manager\Environment" of keys whose(name of it contains "ControlSet") of keys "HKEY_LOCAL_MACHINE\SYSTEM" of (x64 registries;x32 registries) );( parent folders of (folder it) of unique values of (substrings separated by ";" of it) whose(it as lowercase contains "choco") of unique values of (it as string as trimmed string) of values "Path" of keys "Control\Session Manager\Environment" of keys whose(name of it contains "ControlSet") of keys "HKEY_LOCAL_MACHINE\SYSTEM" of (x64 registries;x32 registries) ) )
Installed Software (.chocolatey directory)
Period Every Report
 
  * Results in a true/false
Show indented relevance
if (exists folder ((unique value of pathnames of (parent folders of folders (unique values of (substrings separated by ";" of it) whose(it as lowercase contains "choco") of unique values of (it as string as trimmed string) of values "Path" of keys "Control\Session Manager\Environment" of keys whose(name of it contains "ControlSet") of keys "HKEY_LOCAL_MACHINE\SYSTEM" of (x64 registries;x32 registries) ) ; folders (unique values of(it as string as trimmed string) of values "ChocolateyInstall" of keys "Control\Session Manager\Environment" of keys whose (name of it contains "ControlSet") of keys "HKEY_LOCAL_MACHINE\SYSTEM" of (x64 registries;x32 registries)))) as string & "\.chocolatey")) then ((preceding text of it & " " & character 1 of it & following text of it) of first matches (regex "\.[0-9]") of (names of it of(folders of folder ((unique value of pathnames of (parent folders of folders (unique values of (substrings separated by ";" of it) whose(it as lowercase contains "choco") of unique values of (it as string as trimmed string) of values "Path" of keys "Control\Session Manager\Environment" of keys whose(name of it contains "ControlSet") of keys "HKEY_LOCAL_MACHINE\SYSTEM" of (x64 registries;x32 registries) ) ; folders (unique values of(it as string as trimmed string) of values "ChocolateyInstall" of keys "Control\Session Manager\Environment" of keys whose (name of it contains "ControlSet") of keys "HKEY_LOCAL_MACHINE\SYSTEM" of (x64 registries;x32 registries)))) as string & "\.chocolatey")))) else ".chocolatey directory does not exist"
# of packages installed
Period Every Report
 
  * Results in a true/false
Show indented relevance
sums of (it as trimmed string as integer) of ( (preceding text of first "packages installed." of it | preceding text of first "/" of it) of (following text of first "Chocolatey installed" of it | following text of first " - " of it) ) of lines whose(it contains "Chocolatey installed" OR it contains "packages installed.") of files "chocolatey.log" of folders "logs" of (folder it) of unique values of pathnames of ( ( (folder it) of unique values of (it as string as trimmed string) of values "ChocolateyInstall" of keys "Control\Session Manager\Environment" of keys whose(name of it contains "ControlSet") of keys "HKEY_LOCAL_MACHINE\SYSTEM" of (x64 registries;x32 registries) );( parent folders of (folder it) of unique values of (substrings separated by ";" of it) whose(it as lowercase contains "choco") of unique values of (it as string as trimmed string) of values "Path" of keys "Control\Session Manager\Environment" of keys whose(name of it contains "ControlSet") of keys "HKEY_LOCAL_MACHINE\SYSTEM" of (x64 registries;x32 registries) ) )
# of packages failed
Period Every Report
 
  * Results in a "string"/number
Show indented relevance
sums of (it as trimmed string as integer) of (preceding text of first "package(s) failed." of following text of first "package(s)." of it) of lines whose(it contains "Chocolatey installed" AND it contains "package(s) failed." AND it contains "package(s).") of files "chocolatey.log" of folders "logs" of (folder it) of unique values of pathnames of ( ( (folder it) of unique values of (it as string as trimmed string) of values "ChocolateyInstall" of keys "Control\Session Manager\Environment" of keys whose(name of it contains "ControlSet") of keys "HKEY_LOCAL_MACHINE\SYSTEM" of (x64 registries;x32 registries) );( parent folders of (folder it) of unique values of (substrings separated by ";" of it) whose(it as lowercase contains "choco") of unique values of (it as string as trimmed string) of values "Path" of keys "Control\Session Manager\Environment" of keys whose(name of it contains "ControlSet") of keys "HKEY_LOCAL_MACHINE\SYSTEM" of (x64 registries;x32 registries) ) )
# of packages with warnings
Period Every Report
 
  * Results in a "string"/number
Show indented relevance
sums of (it as trimmed string as integer) of (preceding text of first "package(s) had warnings." of it) of lines whose(it contains "package(s) had warnings.") of files "chocolatey.log" of folders "logs" of (folder it) of unique values of pathnames of ( ( (folder it) of unique values of (it as string as trimmed string) of values "ChocolateyInstall" of keys "Control\Session Manager\Environment" of keys whose(name of it contains "ControlSet") of keys "HKEY_LOCAL_MACHINE\SYSTEM" of (x64 registries;x32 registries) );( parent folders of (folder it) of unique values of (substrings separated by ";" of it) whose(it as lowercase contains "choco") of unique values of (it as string as trimmed string) of values "Path" of keys "Control\Session Manager\Environment" of keys whose(name of it contains "ControlSet") of keys "HKEY_LOCAL_MACHINE\SYSTEM" of (x64 registries;x32 registries) ) )
Temp Folders of Chocolatey
Period Every Report
 
  * Results in a true/false
Show indented relevance
pathnames of folders of folders "chocolatey" of (folders "Temp" of windows folders ; folders "AppData\Local\Temp" of folders of folders "C:\Users")
Installed Software (log)
Period Every Report
 
  * Results in a true/false
Show indented relevance
(it as trimmed string) of unique values of ( (preceding text of first "has been installed successfully." of it | preceding text of first "was successful." of it) of (following text of first "The install of" of it | following text of first " - " of it) ) of lines whose(it contains "has been installed successfully." OR it contains "was successful.") of files "chocolatey.log" of folders "logs" of (folder it) of unique values of pathnames of ( ( (folder it) of unique values of (it as string as trimmed string) of values "ChocolateyInstall" of keys "Control\Session Manager\Environment" of keys whose(name of it contains "ControlSet") of keys "HKEY_LOCAL_MACHINE\SYSTEM" of (x64 registries;x32 registries) );( parent folders of (folder it) of unique values of (substrings separated by ";" of it) whose(it as lowercase contains "choco") of unique values of (it as string as trimmed string) of values "Path" of keys "Control\Session Manager\Environment" of keys whose(name of it contains "ControlSet") of keys "HKEY_LOCAL_MACHINE\SYSTEM" of (x64 registries;x32 registries) ) )
Installed Software (lib folder)
Period Every Report
 
  * Results in a true/false
Show indented relevance
(name of it & " " & (node value of child node of select "/package/metadata/version" of xml document of file (it as string & "\" & name of it & ".nuspec") | "")) of (folders of folder ((unique value of pathnames of (parent folders of folders (unique values of (substrings separated by ";" of it) whose(it as lowercase contains "choco") of unique values of (it as string as trimmed string) of values "Path" of keys "Control\Session Manager\Environment" of keys whose(name of it contains "ControlSet") of keys "HKEY_LOCAL_MACHINE\SYSTEM" of (x64 registries;x32 registries) ) ; folders (unique values of(it as string as trimmed string) of values "ChocolateyInstall" of keys "Control\Session Manager\Environment" of keys whose (name of it contains "ControlSet") of keys "HKEY_LOCAL_MACHINE\SYSTEM" of (x64 registries;x32 registries)))) as string & "\lib"))

Relevance

isWindows (Relevance 1172)
Used in 1111 fixlets and 524 analyses   * Results in a true/false
Show indented relevance
windows of operating system
Windows Vista or later (Relevance 2999204)
Used in 7 fixlets and 3 analyses   * Results in a true/false
Show indented relevance
version of operating system > "5.1"
Used in 2 analyses   * Results in a true/false
Show indented relevance
(exists folders "C:\Chocolatey") OR ( exists values "ChocolateyInstall" of keys "Control\Session Manager\Environment" of keys whose(name of it contains "ControlSet") of keys "HKEY_LOCAL_MACHINE\SYSTEM" of (x64 registries;x32 registries) ) OR ( exists (substrings separated by ";" of it) whose(it as lowercase contains "\chocolatey\") of unique values of (it as string as trimmed string) of values "Path" of keys "Control\Session Manager\Environment" of keys whose(name of it contains "ControlSet") of keys "HKEY_LOCAL_MACHINE\SYSTEM" of (x64 registries;x32 registries) )

Sharing

Social Media:
Share this page on Yammer

Comments

Log In or Register to leave comments!