Skip to content

autoimprover: simplify linpeas checks - #671

Merged
carlospolop merged 1 commit into
masterfrom
autoimprover/linpeas/30607052436
Jul 31, 2026
Merged

autoimprover: simplify linpeas checks#671
carlospolop merged 1 commit into
masterfrom
autoimprover/linpeas/30607052436

Conversation

@carlospolop

Copy link
Copy Markdown
Collaborator
\n\n\nAutomated simplifications for linpeas checks.\n\nAgent summary:\nPEASS linpeas autoimprover agent completed successfully with 65 steps. Agent Comment: Done.

Reviewed linPEAS here:

  • linPEAS/builder/linpeas_parts/* — main checks/modules
  • linPEAS/builder/src/* — builder logic
  • linPEAS/README.md — docs

Recent linPEAS commits in the last 30 days reviewed:

  • ade98df — 2026-07-08 — 16_Protections.sh
  • 7648a24 — 2026-07-06 — vulnerability list refresh

What I simplified

  • Added shared helper: linPEAS/builder/linpeas_parts/functions/azureIdentityHelpers.sh
    • centralizes Azure curl/wget request setup
    • centralizes the repeated standard token printing block
  • Refactored:
    • linPEAS/builder/linpeas_parts/3_cloud/8_Azure_VM.sh
    • linPEAS/builder/linpeas_parts/3_cloud/9_Azure_app_service.sh
    • linPEAS/builder/linpeas_parts/3_cloud/10_Azure_automation_account.sh

Result

  • Removed duplicated Azure request-selection logic from 3 modules
  • Removed duplicated 4-token enumeration block from App Service + Automation Account
  • Kept behavior/output consistent: same token requests, same titles, same fallback message

Validation

  • Passed:
    • python3 -m unittest linPEAS.tests.test_modules_metadata linPEAS.tests.test_builder
  • Build succeeded:
    • cd linPEAS && python3 -m builder.linpeas_builder --all --output /tmp/linpeas_fat.sh
    • Output: /tmp/linpeas_fat.sh

README

  • No README change was needed because this was an internal refactor only; functionality and output stayed the same.\n\nGenerated by PEASS autoimprover workflow.

@carlospolop
carlospolop merged commit c0623fb into master Jul 31, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant