-
-
Notifications
You must be signed in to change notification settings - Fork 3.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' of github.com:peass-ng/PEASS-ng
- Loading branch information
Showing
2 changed files
with
21 additions
and
0 deletions.
There are no files selected for viewing
21 changes: 21 additions & 0 deletions
21
linPEAS/builder/linpeas_parts/1_system_information/15_CVE_2021_3560.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
# Title: System Information - CVE_2021_3560 | ||
# ID: SY_CVE_2021_3560 | ||
# Author: Carlos Polop | ||
# Last Update: 07-10-2024 | ||
# Description: CVE-2021-3560 - paper box from HTB | ||
# License: GNU GPL | ||
# Version: 1.0 | ||
# Functions Used: | ||
# Global Variables: | ||
# Initial Functions: | ||
# Generated Global Variables: | ||
# Fat linpeas: 0 | ||
# Small linpeas: 0 | ||
|
||
if apt list --installed 2>/dev/null | grep -q 'polkit.*0\.105-26' || \ | ||
yum list installed 2>/dev/null | grep -q 'polkit.*\(0\.117-2\|0\.115-6\)' || \ | ||
rpm -qa 2>/dev/null | grep -q 'polkit.*\(0\.117-2\|0\.115-6\)'; then | ||
echo "Vulnerable to CVE-2021-3560" | sed -${E} "s,.*,${SED_RED_YELLOW}," | ||
echo "" | ||
fi | ||
|
File renamed without changes.