Commit Graph

8 Commits

Author SHA1 Message Date
alt-glitch
4670f66a33 pwncollege: early stop callback, SSH key SDK, shell robustness
- Add early_stop_check callback to HermesAgentLoop for environment-level
  completion signals (e.g. flag accepted)
- Add SSH key management endpoints to DojoRLClient
- Harden persistent shell: ANSI stripping via existing strip_ansi(),
  PID file retry loop, history isolation, sentinel detection cleanup
- SSH: disable host key checking, add IdentitiesOnly for key-based auth
- Point atroposlib dependency at main branch
2026-03-31 00:24:02 -07:00
alt-glitch
5a5d7ec2a2 pwncollege: sentinel-based shell completion, eval improvements, retry hardening
- Replace polling-based command completion with sentinel event detection in
  persistent shell (eliminates I/O polling, immediate completion signaling)
- Add SSH PTY allocation (-tt) and safe UTF-8 decoding (errors=replace)
- Add retry with exponential backoff for transient instance creation failures
- Support eval_challenges list and eval_exclude_modules for flexible eval filtering
- Stream eval samples via log_eval_sample() for real-time HTML viewer
- Add tmux hint for interactive challenge shells
- Add capability verification stress test for pwn-dojo infrastructure
- Fix atroposlib dependency to resolve from git (not local path)
2026-03-28 17:20:03 -07:00
Teknium
f665351740 fix(shell): exponential backoff for persistent shell polling (#2996)
* fix(shell): replace fixed 10ms poll interval with exponential backoff to reduce WSL2 resource consumption

* fix(shell): rename _poll_interval to _poll_interval_start for clarity, update SSH override

* fix(shell): correctly rename _poll_interval to _poll_interval_start in ssh.py

---------

Co-authored-by: ygd58 <buraysandro9@gmail.com>
2026-03-25 10:56:48 -07:00
alt-glitch
e266530c7d add different polling intervals for ssh and local backends. ssh has a
longer roundtrip
2026-03-15 02:54:32 +05:30
alt-glitch
9f36483bf4 refactor: deduplicate execute/cleanup, merge init, clean up helpers
- Merge _init_persistent_shell + _start_persistent_shell into single method
- Move execute() dispatcher and cleanup() into PersistentShellMixin
  so LocalEnvironment and SSHEnvironment inherit them
- Remove broad except Exception wrappers from _execute_oneshot in both backends
- Replace try/except with os.path.exists checks in local _read_temp_files
  and _cleanup_temp_files
- Remove redundant bash -c from SSH oneshot (SSH already runs in a shell)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-15 02:39:56 +05:30
alt-glitch
7be314c456 pass configs to file_tools for r+w over ssh.
pass TERM env.
default to ~ to in local and ssh backends.
ssh backend.
2026-03-15 02:26:39 +05:30
balyan.sid@gmail.com
9001b34146 simplify docstrings, fix some bugs 2026-03-15 01:20:42 +05:30
balyan.sid@gmail.com
861202b56c wip: add persistent shell to ssh and local terminal backends 2026-03-15 01:20:42 +05:30