Commit Graph

1995 Commits

Author SHA1 Message Date
chack-agent
ece82f945d Fix CI-master failures for run #22804086303 2026-03-07 18:22:19 +00:00
Carlos Polop
2f923de45a f 2026-03-07 18:51:19 +01:00
Carlos Polop
c799a239b7 Merge branch 'master' of github.com:peass-ng/PEASS-ng 2026-03-07 15:01:56 +01:00
Carlos Polop
d44e5b5c5b f 2026-03-07 15:01:54 +01:00
Giveen
c9055a7688 winPEAS: Fix network scanning (arg parsing, race condition, port scanner, auto-mode crash) (#612)
* Fix thread count override and add -z flag to set thread count

* Enforce THREADS >= 1 after detection; validate -z range; clarify help text

* Strip colours from -z warning; add regression tests for -z getopts/help

* Tighten getopts regression test: match 'while getopts' line with regex

* Fix WinPEAS network host discovery and port scanner bugs

- Fix auto-mode NullReferenceException: change plain 'if' to 'else if'
  for IPAddressNetmask/IPAddressList branches in NetworkScanner.Scan(),
  so the auto path no longer falls through and calls AddRange(null)
- Fix HostsAlive race condition in NetPinger: replace List<string> with
  ConcurrentBag<string> so concurrent async ping callbacks don't corrupt
  the collection
- Fix unbound parallelism: cap outer host loop at MaxDegreeOfParallelism=5
  and inner port loop at 50; create a PortScanner per host to remove
  shared-state concerns
- Fix port scan output bypassing Beaprint: replace raw Console.WriteLine
  with Beaprint.GoodPrint so open-port results are colour-highlighted and
  respect -nocolor
- Move network scan into NetworkInfo.PrintInfo(): add PrintNetworkScan()
  method, wire it into the check list when IsNetworkScan is true, remove
  the detached scan block from RunChecks(), expose NetworkScanOptions and
  PortScannerPorts as public, and remove the now-unused using directive

* Add compiled binaries (x86/x64/Release), Directory.Build.targets Linux shim, fix Vault enum/struct casing

* Fix -network/-ports arg parsing to accept space-separated values

* Remove Directory.Build.targets from tracking; add to .gitignore

* Dispose Ping per-attempt in NetPinger to prevent handle leaks on large sweeps

* Fix TcpClient/WaitHandle leaks in PortScanner: use using block, close wait handle, remove stale AsyncCallback+TcpPortState

* Force-select networkinfo check when -network is set with a subset of checks

* Remove unused System.Threading.Tasks import from PortScanner

* Add tests for space-separated -network/-ports arg normalisation

* Remove Thread.Sleep(1) and unused System.Threading import from PortScanner

* Replace BeginConnect/WaitOne APM with ConnectAsync+Wait(timeout) in PortScanner

* Cap concurrent pings at 50 with SemaphoreSlim in NetPinger to prevent resource exhaustion on large ranges

* Isolate per-IP ping exceptions so a single bad target can't abort the sweep; surface errors in debug mode

* Observe timed-out ConnectAsync task via ContinueWith to prevent UnobservedTaskException

* Broaden ParseOnly reset to cover all arg-parsing-mutable Checks fields to prevent test cross-talk

* Add MainPrint/LinkPrint header to PrintNetworkScan; remove misplaced GreatPrint from NetworkScanner.Scan()

* Add dedicated 'networkscan' system check to avoid running all NetworkInfo sub-checks when -network is passed with a subset

* Delete linpeas_test.sh

* Delete winPEAS/winPEASexe/binaries/Release/winPEAS.exe

* Delete winPEAS/winPEASexe/binaries/x64/Release/winPEAS.exe

* Delete winPEAS/winPEASexe/binaries/x86/Release/winPEAS.exe

---------

Co-authored-by: SirBroccoli <carlospolop@gmail.com>
2026-03-07 14:12:16 +01:00
Giveen
ec18e4b2e2 Fix thread count override and add -z flag to set thread count (#611)
* Fix thread count override and add -z flag to set thread count

* Enforce THREADS >= 1 after detection; validate -z range; clarify help text

* Strip colours from -z warning; add regression tests for -z getopts/help

* Tighten getopts regression test: match 'while getopts' line with regex
20260306-5620909d
2026-03-06 11:36:03 +01:00
Carlos Polop
7b35ad0e01 Merge branch 'master' of github.com:peass-ng/PEASS-ng 2026-03-01 20:42:07 +01:00
Carlos Polop
954e496636 f 2026-03-01 20:42:05 +01:00
github-actions[bot]
d45930e555 chore(winpeas): update windows version vulnerability definitions (#610)
Co-authored-by: carlospolop <17181413+carlospolop@users.noreply.github.com>
20260301-38d838d2
2026-03-01 20:41:31 +01:00
Carlos Polop
fce03212ab f 20260301-aba45690 2026-02-28 15:32:42 +01:00
Carlos Polop
6305f8f7c4 f 2026-02-28 14:26:41 +01:00
SirBroccoli
42f126c392 Auto-merge PR #609 (Chack Agent)
Co-authored-by: HackTricks PEASS Autoimprover <peass-autoimprover@hacktricks.xyz>
2026-02-28 04:20:02 +00:00
SirBroccoli
11a506f81a Auto-merge PR #607 (Chack Agent)
Co-authored-by: HackTricks PEASS Wordlist Updater <peass-wordlist-updater@hacktricks.xyz>
2026-02-26 12:20:50 +00:00
Carlos Polop
1bb9b22958 winpeas: use KB supersedence graph for windows version vuln filtering 20260226-11a54f78 2026-02-26 01:52:42 +01:00
Carlos Polop
75a67b4511 winpeas: reduce windows-version vuln false positives with KB filtering 20260226-edc9582a 2026-02-26 01:42:50 +01:00
Carlos Polop
1d5c216d0c f 20260226-4b2f50eb 2026-02-26 01:35:43 +01:00
Carlos Polop
ccf1ca847e Merge branch 'master' of github.com:peass-ng/PEASS-ng 20260226-87c53607 2026-02-26 01:33:28 +01:00
Carlos Polop
a441eee83a check windows exploits 2026-02-26 01:33:15 +01:00
SirBroccoli
39e475923f Auto-merge PR #605 (Chack Agent)
* ci: speed up PR-tests and add linpeas typo fixture

* Fix syntax: use '==' in __main__ guard in linpeas_builder.py

* ci: retrigger pr-tests after fixer

* f

* kernel checks

* Revert PR changes to PR-tests.yml and regexes.yaml (#606)

* Initial plan

* revert: remove PR changes to PR-tests.yml and regexes.yaml

Co-authored-by: carlospolop <17181413+carlospolop@users.noreply.github.com>

---------

Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: carlospolop <17181413+carlospolop@users.noreply.github.com>

---------

Co-authored-by: chack-agent <chack-agent@users.noreply.github.com>
Co-authored-by: Copilot <198982749+Copilot@users.noreply.github.com>
Co-authored-by: carlospolop <17181413+carlospolop@users.noreply.github.com>
2026-02-26 00:28:24 +00:00
Carlos Polop
98e5e7c3f2 f 20260224-72fa6bab 2026-02-24 21:31:15 +01:00
Carlos Polop
3cb5411468 ci: allow chack-agent workflow edits to be pushed 2026-02-24 21:04:53 +01:00
Carlos Polop
1375f61d38 workflow: exclude chack temp artifacts from sanitized master-fix patch 2026-02-14 01:37:17 +01:00
Carlos Polop
45105f6f39 workflow: always sanitize master-fixer output to non-workflow diff 2026-02-14 01:28:56 +01:00
Carlos Polop
da70f4f64f workflow: tolerate pr-creation policy block in master fixer 2026-02-14 01:20:39 +01:00
Carlos Polop
45990c68c2 workflow: push chack local commits in master-failure fixer 2026-02-14 01:11:41 +01:00
Carlos Polop
381bf74ebd test: intentional master break in linpeas builder for chack validation 2026-02-14 01:03:28 +01:00
Carlos Polop
44969c086d Revert "workflow: sanitize chack commits and add failure log excerpts (#596)"
This reverts commit 1e6c83f43b.
2026-02-14 01:03:10 +01:00
SirBroccoli
1e6c83f43b workflow: sanitize chack commits and add failure log excerpts (#596) 2026-02-14 00:40:02 +01:00
SirBroccoli
993679e8a2 workflow: push chack-produced commits even when tree is clean (#595) 2026-02-14 00:32:56 +01:00
SirBroccoli
82a9aecd08 ci: harden chack rerun flow and restore macos pip compatibility (#593) 2026-02-13 20:47:18 +01:00
SirBroccoli
c3a942fdba ci: remove macOS pip break-system-packages flags (#592) 2026-02-13 20:35:41 +01:00
SirBroccoli
7ca05693ef ci: fix chack agent_config key for task-steps init (#590) 2026-02-13 18:15:25 +01:00
SirBroccoli
0ec20d2512 ci: enable chack workflow_run jobs and use codex backend (#589) 2026-02-13 18:11:02 +01:00
Carlos Polop
3e2af030d4 f 20260212-43b28429 2026-02-12 20:02:37 +01:00
Carlos Polop
ec746e73e3 additions 20260212-f6c5c556 2026-02-12 03:44:02 +01:00
Carlos Polop
6a1d1efe95 ci: temporarily disable all chack-agent workflows 2026-02-11 19:36:26 +01:00
Carlos Polop
cf3565d7e0 Revert "test: intentional ci break for chack agent workflow validation"
This reverts commit 386ef0642a.
20260211-fc7f770e
2026-02-11 17:17:46 +01:00
Carlos Polop
386ef0642a test: intentional ci break for chack agent workflow validation 2026-02-11 17:05:14 +01:00
Carlos Polop
0680509774 Use CHACK_LOGS_HTTP_URL repository secret in workflows 2026-02-11 16:42:13 +01:00
Carlos Polop
3b0a8fd616 Set CHACK_LOGS_HTTP_URL for chack-agent workflows 2026-02-11 16:40:59 +01:00
Carlos Polop
62ef61af0f Do not fail workflow when token cannot push workflow-touching refs 2026-02-11 15:57:06 +01:00
Carlos Polop
b6c4474c27 Skip auto-push when workflow files remain staged 2026-02-11 15:46:13 +01:00
Carlos Polop
4650d6b8ad Exclude untracked workflow files from chack-agent auto-fix commits 2026-02-11 15:35:18 +01:00
Carlos Polop
354e3b81fb Harden chack-agent auto-commit against workflow permission rejects 2026-02-11 15:26:27 +01:00
Carlos Polop
2848feda9b Remove max_turns caps and harden triage output parsing 2026-02-11 15:08:27 +01:00
Carlos Polop
0bec3535dc Remove timeout limits from chack-agent workflow steps 2026-02-11 14:26:32 +01:00
Carlos Polop
2b1ab21f66 Disable self-critique and enforce task-list init in workflows 2026-02-11 14:24:43 +01:00
Carlos Polop
a8c5967d21 Bound chack-agent runtime and use faster model 2026-02-11 14:11:25 +01:00
Carlos Polop
1e68040be3 Cap chack-agent workflow runs with max_turns 2026-02-11 14:00:03 +01:00
Carlos Polop
143a20f17e Fallback to github.token when CHACK_AGENT_FIXER_TOKEN is unset 2026-02-11 13:39:57 +01:00