Skip to content

Commit 901c973

Browse files
committed
feat(feat): recomended commands and some love \n\n Version: release/0.2.115 \n\n \n\n LazyOwn on HackTheBox: https://app.hackthebox.com/teams/overview/6429 \n\n LazyOwn/ https://grisuno.github.io/LazyOwn/ \n\n \n\n Fecha: jue 14 may 2026 01:26:16 -04 \n\n Hora: 1778736376
1 parent 8256764 commit 901c973

15 files changed

Lines changed: 3412 additions & 2331 deletions

CHANGELOG.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,13 @@
22
# Changelog
33

44

5+
### Nuevas características
6+
7+
### Otros
8+
9+
* * feat(feat): recomended commands and some love \n\n Version: release/0.2.115 \n\n \n\n LazyOwn on HackTheBox: https://app.hackthebox.com/teams/overview/6429 \n\n LazyOwn/ https://grisuno.github.io/LazyOwn/ \n\n \n\n Fecha: jue 14 may 2026 01:26:16 -04 \n\n Hora: 1778736376
10+
11+
512
### Nuevas características
613

714
### Otros

COMMANDS.md

Lines changed: 32 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,19 @@ Args:
4646
Returns:
4747
data unchanged — the hook must return PostcommandData.
4848

49+
## _engagement_hook
50+
Post-command hook: biological curiosity reveal + VRI reward.
51+
52+
Registered via ``register_postcmd_hook`` during ``__init__``.
53+
Respects ``enable_inline_hints`` so operators can silence all
54+
engagement output with ``set enable_inline_hints false``.
55+
56+
Args:
57+
data: cmd2 PostcommandData containing the executed statement.
58+
59+
Returns:
60+
data unchanged.
61+
4962
## _did_you_mean
5063
Return up to ``limit`` close-matching command names.
5164

@@ -439,6 +452,23 @@ recent history (``suggest_next lazynmap do_ping 7``).
439452
:type line: str
440453
:return: None
441454

455+
## recommend_next
456+
Recommend the next command using policy engine + graph advisor.
457+
458+
Runs two complementary recommendation layers and merges their output:
459+
460+
1. **Policy engine** (``skills/lazyown_policy.py``) — reads historical
461+
command transitions from ``sessions/`` and ranks the next action by
462+
learned success rates. Always available; no API key required.
463+
2. **Graph advisor** (``cli/graph_advisor.py``) — walks the graphify
464+
knowledge graph from your recent commands. Requires ``/graphify .``
465+
to have been run at least once.
466+
467+
This is the CLI equivalent of the MCP tool ``lazyown_recommend_next``.
468+
469+
Usage:
470+
``recommend_next``
471+
442472
## dashboard
443473
Launch the full-screen LazyOwn operator dashboard (Textual TUI).
444474

@@ -5064,8 +5094,8 @@ Manage C2 listeners: list, add, start, stop, remove.
50645094
Usage:
50655095
listener list - Show all configured listeners
50665096
listener add <port> [ssl] - Add a new listener (ssl: true/false)
5067-
listener start <id> - Start a listener
5068-
listener stop <id> - Stop a listener
5097+
listener start <id> - Start a listener via C2 API
5098+
listener stop <id> - Stop a listener via C2 API
50695099
listener remove <id> - Remove a listener
50705100

50715101
Examples:
@@ -9711,12 +9741,6 @@ Writes:
97119741
- Sets the payload options including the LHOST, USERNAME, and PASSWORD.
97129742
- Starts the exploit with the `-j -z` options.
97139743

9714-
## _load
9715-
No description available.
9716-
9717-
## _save
9718-
No description available.
9719-
97209744
## _api
97219745
No description available.
97229746

Dockerfile.sandbox

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,23 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
1111
python3-pip \
1212
python3-venv \
1313
nmap \
14+
masscan \
15+
hydra \
16+
nikto \
17+
john \
18+
hashcat \
19+
gobuster \
20+
dirb \
21+
sqlmap \
22+
enum4linux \
23+
smbclient \
24+
smbmap \
25+
crackmapexec \
26+
nbtscan \
27+
onesixtyone \
28+
snmpwalk \
29+
whois \
30+
wget \
1431
tmux \
1532
jq \
1633
golang-go \
@@ -25,6 +42,12 @@ RUN apt-get update && apt-get install -y --no-install-recommends \
2542
libffi-dev \
2643
netcat-traditional \
2744
dnsutils \
45+
iputils-ping \
46+
iproute2 \
47+
net-tools \
48+
tcpdump \
49+
openssl \
50+
ssh \
2851
&& rm -rf /var/lib/apt/lists/*
2952

3053
WORKDIR /app

README.md

Lines changed: 39 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2929,6 +2929,19 @@ Args:
29292929
Returns:
29302930
data unchanged — the hook must return PostcommandData.
29312931

2932+
## _engagement_hook
2933+
Post-command hook: biological curiosity reveal + VRI reward.
2934+
2935+
Registered via ``register_postcmd_hook`` during ``__init__``.
2936+
Respects ``enable_inline_hints`` so operators can silence all
2937+
engagement output with ``set enable_inline_hints false``.
2938+
2939+
Args:
2940+
data: cmd2 PostcommandData containing the executed statement.
2941+
2942+
Returns:
2943+
data unchanged.
2944+
29322945
## _did_you_mean
29332946
Return up to ``limit`` close-matching command names.
29342947

@@ -3322,6 +3335,23 @@ recent history (``suggest_next lazynmap do_ping 7``).
33223335
:type line: str
33233336
:return: None
33243337

3338+
## recommend_next
3339+
Recommend the next command using policy engine + graph advisor.
3340+
3341+
Runs two complementary recommendation layers and merges their output:
3342+
3343+
1. **Policy engine** (``skills/lazyown_policy.py``) — reads historical
3344+
command transitions from ``sessions/`` and ranks the next action by
3345+
learned success rates. Always available; no API key required.
3346+
2. **Graph advisor** (``cli/graph_advisor.py``) — walks the graphify
3347+
knowledge graph from your recent commands. Requires ``/graphify .``
3348+
to have been run at least once.
3349+
3350+
This is the CLI equivalent of the MCP tool ``lazyown_recommend_next``.
3351+
3352+
Usage:
3353+
``recommend_next``
3354+
33253355
## dashboard
33263356
Launch the full-screen LazyOwn operator dashboard (Textual TUI).
33273357

@@ -7947,8 +7977,8 @@ Manage C2 listeners: list, add, start, stop, remove.
79477977
Usage:
79487978
listener list - Show all configured listeners
79497979
listener add <port> [ssl] - Add a new listener (ssl: true/false)
7950-
listener start <id> - Start a listener
7951-
listener stop <id> - Stop a listener
7980+
listener start <id> - Start a listener via C2 API
7981+
listener stop <id> - Stop a listener via C2 API
79527982
listener remove <id> - Remove a listener
79537983

79547984
Examples:
@@ -12594,12 +12624,6 @@ Writes:
1259412624
- Sets the payload options including the LHOST, USERNAME, and PASSWORD.
1259512625
- Starts the exploit with the `-j -z` options.
1259612626

12597-
## _load
12598-
No description available.
12599-
12600-
## _save
12601-
No description available.
12602-
1260312627
## _api
1260412628
No description available.
1260512629

@@ -12783,6 +12807,13 @@ No description available.
1278312807
# Changelog
1278412808

1278512809

12810+
### Nuevas características
12811+
12812+
### Otros
12813+
12814+
* * feat(feat): some playbooks \n\n Version: release/0.2.114 \n\n mitre attck \n\n LazyOwn on HackTheBox: https://app.hackthebox.com/teams/overview/6429 \n\n LazyOwn/ https://grisuno.github.io/LazyOwn/ \n\n \n\n Fecha: mié 13 may 2026 03:54:29 -04 \n\n Hora: 1778658869
12815+
12816+
1278612817
### Nuevas características
1278712818

1278812819
### Otros

0 commit comments

Comments
 (0)