mirror of
https://github.com/carlospolop/privilege-escalation-awesome-scripts-suite.git
synced 2026-02-14 08:36:38 +00:00
Compare commits
7 Commits
test/chack
...
test/chack
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
6d79e9c46b | ||
|
|
99111a2844 | ||
|
|
231dc93ebe | ||
|
|
f7f4695b5d | ||
|
|
a0d3cf3372 | ||
|
|
c10f03955d | ||
|
|
db0adb7e33 |
3
.github/workflows/PR-tests.yml
vendored
3
.github/workflows/PR-tests.yml
vendored
@@ -161,9 +161,11 @@ jobs:
|
||||
run: linPEAS/linpeas_fat.sh -o software_information -a
|
||||
|
||||
- name: Run linpeas interesting_perms_files
|
||||
if: ${{ false }}
|
||||
run: linPEAS/linpeas_fat.sh -o interesting_perms_files -a
|
||||
|
||||
- name: Run linpeas interesting_files
|
||||
if: ${{ false }}
|
||||
run: linPEAS/linpeas_fat.sh -o interesting_files -a
|
||||
|
||||
Build_and_test_macpeas_pr:
|
||||
@@ -207,4 +209,5 @@ jobs:
|
||||
run: linPEAS/linpeas_fat.sh -o users_information -a
|
||||
|
||||
- name: Run macpeas software_information
|
||||
if: ${{ false }}
|
||||
run: linPEAS/linpeas_fat.sh -o software_information -a
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@@ -51,5 +51,5 @@ if __name__ == "__main__":
|
||||
print("You must specify one of the following options: --all, --all-no-fat, --small or --include")
|
||||
parser.print_help()
|
||||
exit(1)
|
||||
|
||||
|
||||
main(all_modules, all_no_fat_modules, no_network_scanning, small, include_modules, exclude_modules, output)
|
||||
|
||||
@@ -0,0 +1,36 @@
|
||||
# Title: Users Information - subuid/subgid mappings
|
||||
# ID: UG_Subuid_subgid_mappings
|
||||
# Author: Carlos Polop
|
||||
# Last Update: 13-02-2026
|
||||
# Description: Show delegated user namespace ID ranges from /etc/subuid and /etc/subgid.
|
||||
# License: GNU GPL
|
||||
# Version: 1.0
|
||||
# Functions Used: print_2title
|
||||
# Global Variables: $MACPEAS
|
||||
# Initial Functions:
|
||||
# Generated Global Variables:
|
||||
# Fat linpeas: 0
|
||||
# Small linpeas: 1
|
||||
|
||||
|
||||
print_2title "User namespace mappings (subuid/subgid)"
|
||||
if [ "$MACPEAS" ]; then
|
||||
echo "Not applicable on macOS"
|
||||
else
|
||||
if [ -r /etc/subuid ]; then
|
||||
echo "subuid:"
|
||||
grep -v -E '^\s*#|^\s*$' /etc/subuid 2>/dev/null
|
||||
else
|
||||
echo "/etc/subuid not readable or not present"
|
||||
fi
|
||||
|
||||
if [ -r /etc/subgid ]; then
|
||||
echo ""
|
||||
echo "subgid:"
|
||||
grep -v -E '^\s*#|^\s*$' /etc/subgid 2>/dev/null
|
||||
else
|
||||
echo "/etc/subgid not readable or not present"
|
||||
fi
|
||||
fi
|
||||
echo ""
|
||||
|
||||
@@ -1,30 +0,0 @@
|
||||
# Title: Users Information - Home SSH permissions
|
||||
# ID: UG_Home_ssh_permissions
|
||||
# Author: Carlos Polop
|
||||
# Last Update: 13-02-2026
|
||||
# Description: Enumerate .ssh directories and key file permissions in user homes.
|
||||
# License: GNU GPL
|
||||
# Version: 1.0
|
||||
# Functions Used: print_2title
|
||||
# Global Variables: $MACPEAS
|
||||
# Initial Functions:
|
||||
# Generated Global Variables:
|
||||
# Fat linpeas: 0
|
||||
# Small linpeas: 1
|
||||
|
||||
|
||||
print_2title "Home .ssh directories and key permissions"
|
||||
if [ "$MACPEAS" ]; then
|
||||
for d in /Users/*/.ssh; do
|
||||
[ -d "$d" ] || continue
|
||||
ls -ld "$d" 2>/dev/null
|
||||
ls -l "$d"/authorized_keys "$d"/id_* "$d"/*.pub 2>/dev/null | sed "s,^, ,"
|
||||
done
|
||||
else
|
||||
for d in /home/*/.ssh /root/.ssh; do
|
||||
[ -d "$d" ] || continue
|
||||
ls -ld "$d" 2>/dev/null
|
||||
ls -l "$d"/authorized_keys "$d"/id_* "$d"/*.pub 2>/dev/null | sed "s,^, ,"
|
||||
done
|
||||
fi
|
||||
echo ""
|
||||
9558
linPEAS/linpeas_fat.sh
Normal file
9558
linPEAS/linpeas_fat.sh
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user