mirror of
https://github.com/carlospolop/privilege-escalation-awesome-scripts-suite.git
synced 2026-02-14 08:36:38 +00:00
Compare commits
6 Commits
test/chack
...
chack-agen
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
0d78334715 | ||
|
|
381bf74ebd | ||
|
|
44969c086d | ||
|
|
1e6c83f43b | ||
|
|
993679e8a2 | ||
|
|
82a9aecd08 |
3
.github/workflows/PR-tests.yml
vendored
3
.github/workflows/PR-tests.yml
vendored
@@ -161,11 +161,9 @@ 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:
|
||||
@@ -209,5 +207,4 @@ 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
|
||||
|
||||
@@ -199,33 +199,44 @@ jobs:
|
||||
env:
|
||||
TARGET_BRANCH: ${{ needs.resolve_pr_context.outputs.head_branch }}
|
||||
PR_NUMBER: ${{ needs.resolve_pr_context.outputs.number }}
|
||||
ORIGINAL_HEAD_SHA: ${{ github.event.workflow_run.head_sha }}
|
||||
GH_TOKEN: ${{ github.token }}
|
||||
run: |
|
||||
if git diff --quiet; then
|
||||
echo "No changes to commit."
|
||||
exit 0
|
||||
fi
|
||||
rm -f chack_failure_summary.txt chack_prompt.txt
|
||||
git add -A
|
||||
# Avoid workflow-file pushes with token scopes that cannot write workflows.
|
||||
git reset -- .github/workflows || true
|
||||
git checkout -- .github/workflows || true
|
||||
git clean -fdx -- .github/workflows || true
|
||||
git reset -- chack_failure_summary.txt chack_prompt.txt
|
||||
if git diff --cached --name-only | grep -q '^.github/workflows/'; then
|
||||
echo "Workflow-file changes are still staged; skipping push without workflows permission."
|
||||
|
||||
pushed=false
|
||||
|
||||
if ! git diff --quiet; then
|
||||
git add -A
|
||||
# Avoid workflow-file pushes with token scopes that cannot write workflows.
|
||||
git reset -- .github/workflows || true
|
||||
git checkout -- .github/workflows || true
|
||||
git clean -fdx -- .github/workflows || true
|
||||
git reset -- chack_failure_summary.txt chack_prompt.txt
|
||||
if git diff --cached --name-only | grep -q '^.github/workflows/'; then
|
||||
echo "Workflow-file changes are still staged; skipping push without workflows permission."
|
||||
exit 0
|
||||
fi
|
||||
if ! git diff --cached --quiet; then
|
||||
git commit -m "Fix CI failures for PR #${PR_NUMBER}"
|
||||
fi
|
||||
fi
|
||||
|
||||
after_head="$(git rev-parse HEAD)"
|
||||
if [ "$after_head" = "$ORIGINAL_HEAD_SHA" ]; then
|
||||
echo "No commit produced by Chack Agent for PR #${PR_NUMBER}."
|
||||
exit 0
|
||||
fi
|
||||
if git diff --cached --quiet; then
|
||||
echo "No committable changes left after filtering."
|
||||
exit 0
|
||||
fi
|
||||
git commit -m "Fix CI failures for PR #${PR_NUMBER}"
|
||||
|
||||
if ! git push origin HEAD:${TARGET_BRANCH}; then
|
||||
echo "Push failed (likely token workflow permission limits); leaving run successful without push."
|
||||
exit 0
|
||||
fi
|
||||
gh workflow run PR-tests.yml --ref "${TARGET_BRANCH}"
|
||||
pushed=true
|
||||
|
||||
if [ "$pushed" = "true" ]; then
|
||||
gh workflow run PR-tests.yml --ref "${TARGET_BRANCH}"
|
||||
fi
|
||||
|
||||
- name: Comment with Chack Agent result
|
||||
if: ${{ steps.run_chack.outputs.final-message != '' }}
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
78
chack_failed_steps_logs.txt
Normal file
78
chack_failed_steps_logs.txt
Normal file
@@ -0,0 +1,78 @@
|
||||
Build_and_test_linpeas_master Build linpeas 2026-02-14T00:11:52.0971447Z ##[group]Run python3 -m pip install PyYAML
|
||||
Build_and_test_linpeas_master Build linpeas 2026-02-14T00:11:52.0973220Z [36;1mpython3 -m pip install PyYAML[0m
|
||||
Build_and_test_linpeas_master Build linpeas 2026-02-14T00:11:52.0974295Z [36;1mcd linPEAS[0m
|
||||
Build_and_test_linpeas_master Build linpeas 2026-02-14T00:11:52.0975572Z [36;1mpython3 -m builder.linpeas_builder --all --output linpeas_fat.sh[0m
|
||||
Build_and_test_linpeas_master Build linpeas 2026-02-14T00:11:52.0977560Z [36;1mpython3 -m builder.linpeas_builder --all-no-fat --output linpeas.sh[0m
|
||||
Build_and_test_linpeas_master Build linpeas 2026-02-14T00:11:52.0979599Z [36;1mpython3 -m builder.linpeas_builder --small --output linpeas_small.sh[0m
|
||||
Build_and_test_linpeas_master Build linpeas 2026-02-14T00:11:52.1030508Z shell: /usr/bin/bash -e {0}
|
||||
Build_and_test_linpeas_master Build linpeas 2026-02-14T00:11:52.1031413Z env:
|
||||
Build_and_test_linpeas_master Build linpeas 2026-02-14T00:11:52.1032274Z GOTOOLCHAIN: local
|
||||
Build_and_test_linpeas_master Build linpeas 2026-02-14T00:11:52.1033062Z ##[endgroup]
|
||||
Build_and_test_linpeas_master Build linpeas 2026-02-14T00:11:53.2773854Z Defaulting to user installation because normal site-packages is not writeable
|
||||
Build_and_test_linpeas_master Build linpeas 2026-02-14T00:11:53.9179829Z Requirement already satisfied: PyYAML in /usr/lib/python3/dist-packages (6.0.1)
|
||||
Build_and_test_linpeas_master Build linpeas 2026-02-14T00:11:54.4874406Z [+] Downloading regexes...
|
||||
Build_and_test_linpeas_master Build linpeas 2026-02-14T00:11:54.4875412Z Downloaded and saved in '/home/runner/work/PEASS-ng/PEASS-ng/build_lists/regexes.yaml' successfully!
|
||||
Build_and_test_linpeas_master Build linpeas 2026-02-14T00:11:56.4167144Z Traceback (most recent call last):
|
||||
Build_and_test_linpeas_master Build linpeas 2026-02-14T00:11:56.4168210Z File "<frozen runpy>", line 198, in _run_module_as_main
|
||||
Build_and_test_linpeas_master Build linpeas 2026-02-14T00:11:56.4168928Z File "<frozen runpy>", line 88, in _run_code
|
||||
Build_and_test_linpeas_master Build linpeas 2026-02-14T00:11:56.4169887Z File "/home/runner/work/PEASS-ng/PEASS-ng/linPEAS/builder/linpeas_builder.py", line 55, in <module>
|
||||
Build_and_test_linpeas_master Build linpeas 2026-02-14T00:11:56.4171167Z main(all_modules, all_no_fat_modules, no_network_scanning, small, include_modules, exclude_modules, output)
|
||||
Build_and_test_linpeas_master Build linpeas 2026-02-14T00:11:56.4174426Z File "/home/runner/work/PEASS-ng/PEASS-ng/linPEAS/builder/linpeas_builder.py", line 21, in main
|
||||
Build_and_test_linpeas_master Build linpeas 2026-02-14T00:11:56.4175184Z lbuilder.build()
|
||||
Build_and_test_linpeas_master Build linpeas 2026-02-14T00:11:56.4175907Z File "/home/runner/work/PEASS-ng/PEASS-ng/linPEAS/builder/src/linpeasBuilder.py", line 49, in build
|
||||
Build_and_test_linpeas_master Build linpeas 2026-02-14T00:11:56.4176725Z variables = self.__generate_variabless()
|
||||
Build_and_test_linpeas_master Build linpeas 2026-02-14T00:11:56.4177314Z ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
Build_and_test_linpeas_master Build linpeas 2026-02-14T00:11:56.4178354Z AttributeError: 'LinpeasBuilder' object has no attribute '_LinpeasBuilder__generate_variabless'. Did you mean: '_LinpeasBuilder__generate_variables'?
|
||||
Build_and_test_linpeas_master Build linpeas 2026-02-14T00:11:56.4179375Z [+] Checking the syntax of the modules...
|
||||
Build_and_test_linpeas_master Build linpeas 2026-02-14T00:11:56.4179814Z [+] 161 checks located
|
||||
Build_and_test_linpeas_master Build linpeas 2026-02-14T00:11:56.4180275Z [+] Building temporary linpeas_base.sh with the indicated modules...
|
||||
Build_and_test_linpeas_master Build linpeas 2026-02-14T00:11:56.4180829Z [+] Building variables...
|
||||
Build_and_test_linpeas_master Build linpeas 2026-02-14T00:11:56.4408740Z ##[error]Process completed with exit code 1.
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:50.7998800Z ##[group]Run python3 -m pip install PyYAML --break-system-packages
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:50.8000500Z [36;1mpython3 -m pip install PyYAML --break-system-packages[0m
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:50.8002330Z [36;1mpython3 -m pip install requests --break-system-packages[0m
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:50.8003570Z [36;1mcd linPEAS[0m
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:50.8004650Z [36;1mpython3 -m builder.linpeas_builder --all --output linpeas_fat.sh[0m
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:50.8064280Z shell: /bin/bash -e {0}
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:50.8066060Z ##[endgroup]
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:52.4294420Z Collecting PyYAML
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:52.4743840Z Downloading pyyaml-6.0.3-cp314-cp314-macosx_11_0_arm64.whl.metadata (2.4 kB)
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:52.4954660Z Downloading pyyaml-6.0.3-cp314-cp314-macosx_11_0_arm64.whl (173 kB)
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:52.5318410Z Installing collected packages: PyYAML
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:52.5701980Z Successfully installed PyYAML-6.0.3
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:52.9577360Z Collecting requests
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:52.9800800Z Downloading requests-2.32.5-py3-none-any.whl.metadata (4.9 kB)
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:53.0525640Z Collecting charset_normalizer<4,>=2 (from requests)
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:53.0742810Z Downloading charset_normalizer-3.4.4-cp314-cp314-macosx_10_13_universal2.whl.metadata (37 kB)
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:53.0836310Z Collecting idna<4,>=2.5 (from requests)
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:53.0937740Z Downloading idna-3.11-py3-none-any.whl.metadata (8.4 kB)
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:53.1041400Z Collecting urllib3<3,>=1.21.1 (from requests)
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:53.1142970Z Downloading urllib3-2.6.3-py3-none-any.whl.metadata (6.9 kB)
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:53.1190720Z Requirement already satisfied: certifi>=2017.4.17 in /opt/homebrew/lib/python3.14/site-packages (from requests) (2026.1.4)
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:53.1197310Z Downloading requests-2.32.5-py3-none-any.whl (64 kB)
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:53.1265270Z Downloading charset_normalizer-3.4.4-cp314-cp314-macosx_10_13_universal2.whl (207 kB)
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:53.1306710Z Downloading idna-3.11-py3-none-any.whl (71 kB)
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:53.1392250Z Downloading urllib3-2.6.3-py3-none-any.whl (131 kB)
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:53.1589340Z Installing collected packages: urllib3, idna, charset_normalizer, requests
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:53.3645880Z
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:53.3747140Z Successfully installed charset_normalizer-3.4.4 idna-3.11 requests-2.32.5 urllib3-2.6.3
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:53.6562290Z [+] Downloading regexes...
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:53.6667880Z Downloaded and saved in '/Users/runner/work/PEASS-ng/PEASS-ng/build_lists/regexes.yaml' successfully!
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:55.4616130Z Traceback (most recent call last):
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:55.4616610Z [+] Checking the syntax of the modules...
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:55.4725080Z File "<frozen runpy>", line 198, in _run_module_as_main
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:55.4725360Z [+] 161 checks located
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:55.4828080Z File "<frozen runpy>", line 88, in _run_code
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:55.4828560Z [+] Building temporary linpeas_base.sh with the indicated modules...
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:55.4930770Z File "/Users/runner/work/PEASS-ng/PEASS-ng/linPEAS/builder/linpeas_builder.py", line 55, in <module>
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:55.4931470Z [+] Building variables...
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:55.5000130Z main(all_modules, all_no_fat_modules, no_network_scanning, small, include_modules, exclude_modules, output)
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:55.5101380Z ~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:55.5202990Z File "/Users/runner/work/PEASS-ng/PEASS-ng/linPEAS/builder/linpeas_builder.py", line 21, in main
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:55.5304190Z lbuilder.build()
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:55.5405030Z ~~~~~~~~~~~~~~^^
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:55.5506090Z File "/Users/runner/work/PEASS-ng/PEASS-ng/linPEAS/builder/src/linpeasBuilder.py", line 49, in build
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:55.5610220Z variables = self.__generate_variabless()
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:55.5711540Z ^^^^^^^^^^^^^^^^^^^^^^^^^^
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:55.5813140Z AttributeError: 'LinpeasBuilder' object has no attribute '_LinpeasBuilder__generate_variabless'. Did you mean: '_LinpeasBuilder__generate_variables'?
|
||||
Build_and_test_macpeas_master Build macpeas 2026-02-14T00:11:55.5911930Z ##[error]Process completed with exit code 1.
|
||||
7
chack_failure_summary.txt
Normal file
7
chack_failure_summary.txt
Normal file
@@ -0,0 +1,7 @@
|
||||
Job: Build_and_test_linpeas_master (id 63593607403)
|
||||
URL: https://github.com/peass-ng/PEASS-ng/actions/runs/22007237743/job/63593607403
|
||||
Step: Build linpeas
|
||||
|
||||
Job: Build_and_test_macpeas_master (id 63593607406)
|
||||
URL: https://github.com/peass-ng/PEASS-ng/actions/runs/22007237743/job/63593607406
|
||||
Step: Build macpeas
|
||||
19
chack_prompt.txt
Normal file
19
chack_prompt.txt
Normal file
@@ -0,0 +1,19 @@
|
||||
You are fixing a failing CI-master_test run in peass-ng/PEASS-ng.
|
||||
The failing workflow run is: https://github.com/peass-ng/PEASS-ng/actions/runs/22007237743
|
||||
The failing commit SHA is: 381bf74ebd87e5005525d68d52021dd646477f8b
|
||||
The target branch for the final PR is: master
|
||||
|
||||
Failure summary:
|
||||
Job: Build_and_test_linpeas_master (id 63593607403)
|
||||
URL: https://github.com/peass-ng/PEASS-ng/actions/runs/22007237743/job/63593607403
|
||||
Step: Build linpeas
|
||||
|
||||
Job: Build_and_test_macpeas_master (id 63593607406)
|
||||
URL: https://github.com/peass-ng/PEASS-ng/actions/runs/22007237743/job/63593607406
|
||||
Step: Build macpeas
|
||||
Failed-step logs file absolute path (local runner): /home/runner/work/PEASS-ng/PEASS-ng/chack_failed_steps_logs.txt
|
||||
Read that file to inspect the exact failing logs.
|
||||
|
||||
Please identify the cause, apply an easy, simple and minimal fix, and update files accordingly.
|
||||
Run any fast checks you can locally (no network).
|
||||
Leave the repo in a state ready to commit; changes will be committed and pushed automatically.
|
||||
@@ -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)
|
||||
|
||||
@@ -1,36 +0,0 @@
|
||||
# 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 ""
|
||||
|
||||
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user