pwn 0.5.615 → 0.5.617
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +24 -10
- data/bin/pwn +47 -2
- data/bin/pwn_gqrx_scanner +75 -18
- data/documentation/Diagrams.md +123 -40
- data/documentation/General-PWN-Usage.md +50 -30
- data/documentation/Home.md +78 -51
- data/documentation/How-PWN-Works.md +59 -57
- data/documentation/Installation.md +53 -28
- data/documentation/What-is-PWN.md +51 -32
- data/documentation/Why-PWN.md +41 -11
- data/documentation/diagrams/ai-integration-tool-calling.svg +141 -103
- data/documentation/diagrams/build.sh +20 -0
- data/documentation/diagrams/burp-vs-zap-preference.svg +47 -62
- data/documentation/diagrams/code-scanning-sast.svg +139 -79
- data/documentation/diagrams/dot/_THEME.md +27 -0
- data/documentation/diagrams/dot/agent-tool-registry.dot +59 -0
- data/documentation/diagrams/dot/ai-integration-tool-calling.dot +47 -20
- data/documentation/diagrams/dot/aws-cloud-security.dot +48 -0
- data/documentation/diagrams/dot/burp-vs-zap-preference.dot +23 -12
- data/documentation/diagrams/dot/code-scanning-sast.dot +46 -18
- data/documentation/diagrams/dot/cron-scheduling.dot +40 -0
- data/documentation/diagrams/dot/driver-framework.dot +36 -14
- data/documentation/diagrams/dot/extrospection-world-awareness.dot +55 -0
- data/documentation/diagrams/dot/fuzzing-workflow.dot +44 -24
- data/documentation/diagrams/dot/history-to-drivers.dot +31 -17
- data/documentation/diagrams/dot/memory-skills-detailed.dot +57 -25
- data/documentation/diagrams/dot/network-infra-testing.dot +51 -19
- data/documentation/diagrams/dot/overall-pwn-architecture.dot +110 -44
- data/documentation/diagrams/dot/penetration-testing-workflow.dot +56 -25
- data/documentation/diagrams/dot/plugin-ecosystem.dot +41 -27
- data/documentation/diagrams/dot/pwn-ai-feedback-learning-loop.dot +87 -46
- data/documentation/diagrams/dot/pwn-repl-prototyping.dot +49 -30
- data/documentation/diagrams/dot/reporting-pipeline.dot +43 -14
- data/documentation/diagrams/dot/reverse-engineering-flow.dot +40 -18
- data/documentation/diagrams/dot/sdr-radio-flow.dot +45 -0
- data/documentation/diagrams/dot/sessions-cron-automation.dot +41 -14
- data/documentation/diagrams/dot/swarm-multi-agent.dot +70 -0
- data/documentation/diagrams/dot/web-application-testing.dot +45 -23
- data/documentation/diagrams/dot/zero-day-research-flow.dot +46 -24
- data/documentation/diagrams/driver-framework.svg +87 -66
- data/documentation/diagrams/fuzzing-workflow.svg +128 -115
- data/documentation/diagrams/history-to-drivers.svg +84 -82
- data/documentation/diagrams/memory-skills-detailed.svg +167 -119
- data/documentation/diagrams/network-infra-testing.svg +146 -84
- data/documentation/diagrams/overall-pwn-architecture.svg +356 -185
- data/documentation/diagrams/penetration-testing-workflow.svg +161 -108
- data/documentation/diagrams/plugin-ecosystem.svg +225 -121
- data/documentation/diagrams/pwn-ai-feedback-learning-loop.svg +257 -185
- data/documentation/diagrams/pwn-repl-prototyping.svg +126 -137
- data/documentation/diagrams/reporting-pipeline.svg +128 -68
- data/documentation/diagrams/reverse-engineering-flow.svg +100 -80
- data/documentation/diagrams/sessions-cron-automation.svg +112 -68
- data/documentation/diagrams/web-application-testing.svg +136 -100
- data/documentation/diagrams/zero-day-research-flow.svg +116 -112
- data/git_commit.sh +1 -1
- data/lib/pwn/ai/agent/assembly.rb +1 -1
- data/lib/pwn/ai/agent/btc.rb +1 -1
- data/lib/pwn/ai/agent/burp_suite.rb +1 -1
- data/lib/pwn/ai/agent/extrospection.rb +618 -0
- data/lib/pwn/ai/agent/gqrx.rb +2 -2
- data/lib/pwn/ai/agent/hacker_one.rb +1 -1
- data/lib/pwn/ai/agent/introspection.rb +91 -0
- data/lib/pwn/ai/agent/learning.rb +6 -4
- data/lib/pwn/ai/agent/loop.rb +15 -0
- data/lib/pwn/ai/agent/prompt_builder.rb +10 -1
- data/lib/pwn/ai/agent/sast.rb +1 -1
- data/lib/pwn/ai/agent/swarm.rb +437 -0
- data/lib/pwn/ai/agent/tools/cron.rb +163 -0
- data/lib/pwn/ai/agent/tools/extrospection.rb +280 -0
- data/lib/pwn/ai/agent/tools/learning.rb +108 -0
- data/lib/pwn/ai/agent/tools/memory.rb +27 -0
- data/lib/pwn/ai/agent/tools/metrics.rb +61 -0
- data/lib/pwn/ai/agent/tools/sessions.rb +139 -0
- data/lib/pwn/ai/agent/tools/skills.rb +30 -0
- data/lib/pwn/ai/agent/tools/swarm.rb +229 -0
- data/lib/pwn/ai/agent/transparent_browser.rb +1 -1
- data/lib/pwn/ai/agent/vuln_gen.rb +2 -2
- data/lib/pwn/ai/agent.rb +3 -0
- data/lib/pwn/ai/anthropic.rb +19 -4
- data/lib/pwn/ai.rb +0 -1
- data/lib/pwn/config.rb +10 -23
- data/lib/pwn/cron.rb +16 -7
- data/lib/pwn/plugins/repl.rb +90 -281
- data/lib/pwn/sdr/decoder/base.rb +251 -0
- data/lib/pwn/sdr/decoder/gsm.rb +84 -185
- data/lib/pwn/sdr/decoder/pocsag.rb +62 -217
- data/lib/pwn/sdr/decoder.rb +1 -0
- data/lib/pwn/sdr/gqrx.rb +446 -65
- data/lib/pwn/version.rb +1 -1
- data/spec/lib/pwn/ai/agent/extrospection_spec.rb +15 -0
- data/spec/lib/pwn/ai/agent/introspection_spec.rb +15 -0
- data/spec/lib/pwn/ai/agent/swarm_spec.rb +34 -0
- data/spec/lib/pwn/ai/agent/tools/cron_spec.rb +40 -0
- data/spec/lib/pwn/ai/agent/tools/extrospection_spec.rb +40 -0
- data/spec/lib/pwn/ai/agent/tools/metrics_spec.rb +20 -0
- data/spec/lib/pwn/ai/agent/tools/sessions_spec.rb +35 -0
- data/spec/lib/pwn/ai/agent/tools/swarm_spec.rb +17 -0
- data/spec/lib/pwn/{ai/introspection_spec.rb → sdr/decoder/base_spec.rb} +3 -3
- data/third_party/pwn_rdoc.jsonl +178 -33
- metadata +27 -3
- data/lib/pwn/ai/introspection.rb +0 -76
|
@@ -1,21 +1,49 @@
|
|
|
1
|
-
digraph "
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
digraph "PWN_SAST" {
|
|
2
|
+
graph [
|
|
3
|
+
label=<<B>PWN::SAST — Static Application Security Testing</B><BR/><FONT POINT-SIZE="11" COLOR="#94a3b8">48 rules · multi-language · bin/pwn_sast · Reports::SAST</FONT>>,
|
|
4
|
+
labelloc=t, fontsize=20, fontname="Helvetica",
|
|
5
|
+
rankdir=LR, splines=spline, nodesep=0.4, ranksep=1.2,
|
|
6
|
+
bgcolor="#0f172a", fontcolor="#e2e8f0", pad=0.6, newrank=true
|
|
7
|
+
];
|
|
8
|
+
node [fontname="Helvetica", fontsize=10, style="filled,rounded",
|
|
9
|
+
shape=box, penwidth=1.3, color="#334155", fontcolor="#0f172a"];
|
|
10
|
+
edge [fontname="Helvetica", fontsize=9, color="#94a3b8",
|
|
11
|
+
fontcolor="#cbd5e1", penwidth=1.3, arrowsize=0.8];
|
|
4
12
|
|
|
5
|
-
|
|
6
|
-
SAST [label="PWN::SAST\n(analyze, testgen)", shape=ellipse, fillcolor=lightgreen];
|
|
7
|
-
Static [label="Static Analysis\n(RuboCop, Brakeman,\nSemgrep, custom rules)"];
|
|
8
|
-
TestGen [label="Test Case Gen\n(unit/integration fuzz)"];
|
|
9
|
-
Findings [label="Vulns / Findings\n(CWE mapped)", shape=box];
|
|
10
|
-
Reports [label="PWN::Reports\n(generate PDF/MD/JSON)", shape=ellipse, fillcolor=lightgreen];
|
|
11
|
-
REPL [label="REPL / Agent\n(inspect findings)"];
|
|
13
|
+
Src [label="📁 Source Tree\ngit clone / repo", fillcolor="#7dd3fc"];
|
|
12
14
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
subgraph cluster_engine {
|
|
16
|
+
label="SAST Engine"; fontcolor="#a7f3d0"; style=rounded;
|
|
17
|
+
color="#047857"; bgcolor="#022c22";
|
|
18
|
+
Factory [label="SAST::Factory\nrule loader", fillcolor="#6ee7b7"];
|
|
19
|
+
TCE [label="TestCaseEngine\ngenerate probes", fillcolor="#6ee7b7"];
|
|
20
|
+
}
|
|
21
|
+
subgraph cluster_rules {
|
|
22
|
+
label="Rule Families (48)"; fontcolor="#fde68a"; style=rounded;
|
|
23
|
+
color="#a16207"; bgcolor="#422006";
|
|
24
|
+
Cmd [label="cmd_execution_*\njava · py · ruby · go · scala", fillcolor="#fcd34d"];
|
|
25
|
+
Web [label="csrf · redirect · redos\ninner/outer_html · location_hash", fillcolor="#fcd34d"];
|
|
26
|
+
Cryp [label="md5 · ssl · keystore\npadding_oracle · private_key", fillcolor="#fcd34d"];
|
|
27
|
+
Data [label="sql · eval · deserial_java\nlog4j · php_type_juggling", fillcolor="#fcd34d"];
|
|
28
|
+
Mem [label="banned_c_calls\nuse_after_free", fillcolor="#fcd34d"];
|
|
29
|
+
}
|
|
30
|
+
subgraph cluster_out {
|
|
31
|
+
label="Output"; fontcolor="#ddd6fe"; style=rounded;
|
|
32
|
+
color="#6d28d9"; bgcolor="#2e1065";
|
|
33
|
+
Report [label="Reports::SAST\nHTML + JSON", fillcolor="#c4b5fd"];
|
|
34
|
+
DD [label="DefectDojo\nimport / reimport", fillcolor="#c4b5fd"];
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
Src -> Factory [color="#38bdf8"];
|
|
38
|
+
Src -> TCE [color="#38bdf8"];
|
|
39
|
+
Factory -> Cmd [color="#f59e0b"];
|
|
40
|
+
Factory -> Web [color="#f59e0b"];
|
|
41
|
+
Factory -> Cryp [color="#f59e0b"];
|
|
42
|
+
TCE -> Data [color="#f59e0b"];
|
|
43
|
+
TCE -> Mem [color="#f59e0b"];
|
|
44
|
+
Cmd -> Report [color="#a78bfa"];
|
|
45
|
+
Web -> Report [color="#a78bfa"];
|
|
46
|
+
Cryp -> Report [color="#a78bfa"];
|
|
47
|
+
Data -> DD [color="#a78bfa"];
|
|
48
|
+
Mem -> DD [color="#a78bfa"];
|
|
21
49
|
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
digraph "PWN_Cron" {
|
|
2
|
+
graph [
|
|
3
|
+
label=<<B>PWN::Cron — Scheduled Autonomous Jobs</B><BR/><FONT POINT-SIZE="11" COLOR="#94a3b8">prompt · ruby · script → jobs.yml → crontab → pwn-ai</FONT>>,
|
|
4
|
+
labelloc=t, fontsize=20, fontname="Helvetica",
|
|
5
|
+
rankdir=LR, splines=spline, nodesep=0.5, ranksep=1.3,
|
|
6
|
+
bgcolor="#0f172a", fontcolor="#e2e8f0", pad=0.6, newrank=true
|
|
7
|
+
];
|
|
8
|
+
node [fontname="Helvetica", fontsize=11, style="filled,rounded",
|
|
9
|
+
shape=box, penwidth=1.4, color="#334155", fontcolor="#0f172a"];
|
|
10
|
+
edge [fontname="Helvetica", fontsize=9, color="#94a3b8",
|
|
11
|
+
fontcolor="#cbd5e1", penwidth=1.3, arrowsize=0.8];
|
|
12
|
+
|
|
13
|
+
Create [label="cron_create\nname · schedule\nprompt | ruby | script", fillcolor="#7dd3fc"];
|
|
14
|
+
Jobs [label="~/.pwn/cron/jobs.yml", shape=cylinder, fillcolor="#fcd34d"];
|
|
15
|
+
Crontab[label="system crontab\n(install_crontab: true)", fillcolor="#fda4af"];
|
|
16
|
+
Runner [label="PWN::Cron.run(id)", fillcolor="#c4b5fd"];
|
|
17
|
+
|
|
18
|
+
subgraph cluster_kinds {
|
|
19
|
+
label="Job Kinds"; fontcolor="#a7f3d0"; style=rounded;
|
|
20
|
+
color="#047857"; bgcolor="#022c22"; penwidth=2;
|
|
21
|
+
Prompt [label=":prompt\n→ pwn-ai one-shot", fillcolor="#6ee7b7"];
|
|
22
|
+
Ruby [label=":ruby\n→ TOPLEVEL_BINDING.eval", fillcolor="#6ee7b7"];
|
|
23
|
+
Script [label=":script\n→ exec external file", fillcolor="#6ee7b7"];
|
|
24
|
+
}
|
|
25
|
+
{rank=same; Prompt; Ruby; Script}
|
|
26
|
+
|
|
27
|
+
Log [label="~/.pwn/cron/log/<id>.log\nlast_run · last_status", shape=cylinder, fillcolor="#fcd34d"];
|
|
28
|
+
|
|
29
|
+
Create -> Jobs [label="write", color="#38bdf8"];
|
|
30
|
+
Create -> Crontab [label="append", color="#fb7185"];
|
|
31
|
+
Crontab -> Runner [label="fire on schedule", color="#fb7185", penwidth=2];
|
|
32
|
+
Jobs -> Runner [label="load job", color="#f59e0b"];
|
|
33
|
+
Runner -> Prompt [color="#34d399"];
|
|
34
|
+
Runner -> Ruby [color="#34d399"];
|
|
35
|
+
Runner -> Script [color="#34d399"];
|
|
36
|
+
Prompt -> Log [color="#f59e0b"];
|
|
37
|
+
Ruby -> Log [color="#f59e0b"];
|
|
38
|
+
Script -> Log [color="#f59e0b"];
|
|
39
|
+
Log -> Jobs [label="update status", style=dashed, color="#fbbf24", constraint=false];
|
|
40
|
+
}
|
|
@@ -1,17 +1,39 @@
|
|
|
1
|
-
digraph "
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
digraph "PWN_Driver" {
|
|
2
|
+
graph [
|
|
3
|
+
label=<<B>Driver Anatomy — bin/pwn_*</B><BR/><FONT POINT-SIZE="11" COLOR="#94a3b8">52 shipped drivers · thin CLI over PWN::Plugins</FONT>>,
|
|
4
|
+
labelloc=t, fontsize=20, fontname="Helvetica",
|
|
5
|
+
rankdir=LR, splines=spline, nodesep=0.5, ranksep=1.3,
|
|
6
|
+
bgcolor="#0f172a", fontcolor="#e2e8f0", pad=0.6, newrank=true
|
|
7
|
+
];
|
|
8
|
+
node [fontname="Helvetica", fontsize=10, style="filled,rounded",
|
|
9
|
+
shape=box, penwidth=1.3, color="#334155", fontcolor="#0f172a"];
|
|
10
|
+
edge [fontname="Helvetica", fontsize=9, color="#94a3b8",
|
|
11
|
+
fontcolor="#cbd5e1", penwidth=1.3, arrowsize=0.8];
|
|
4
12
|
|
|
5
|
-
|
|
6
|
-
Script [label="Driver Script\n(bin/pwn_* or custom)"];
|
|
7
|
-
PWNLoad [label="require 'pwn'\nFull namespace"];
|
|
8
|
-
Orchestrate [label="Orchestration Logic\n(plugins + AI + loops)"];
|
|
9
|
-
Outputs [label="Reports, Logs,\nFindings"];
|
|
13
|
+
Sh [label="$ pwn_burp_suite_pro_active_scan \\ \n -t https://target -o out/", fillcolor="#7dd3fc"];
|
|
10
14
|
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
15
|
+
subgraph cluster_d {
|
|
16
|
+
label="Driver Body"; fontcolor="#a7f3d0"; style=rounded;
|
|
17
|
+
color="#047857"; bgcolor="#022c22";
|
|
18
|
+
Opt [label="OptionParser\nARGV → opts{}", fillcolor="#6ee7b7"];
|
|
19
|
+
Req [label="require 'pwn'", fillcolor="#6ee7b7"];
|
|
20
|
+
Call [label="PWN::Plugins::X.method(opts)", fillcolor="#6ee7b7"];
|
|
21
|
+
}
|
|
22
|
+
{rank=same; Opt; Req; Call}
|
|
23
|
+
|
|
24
|
+
subgraph cluster_o {
|
|
25
|
+
label="Output"; fontcolor="#ddd6fe"; style=rounded;
|
|
26
|
+
color="#6d28d9"; bgcolor="#2e1065";
|
|
27
|
+
Std [label="STDOUT / STDERR", fillcolor="#c4b5fd"];
|
|
28
|
+
Rep [label="PWN::Reports", fillcolor="#c4b5fd"];
|
|
29
|
+
Ex [label="exit code", fillcolor="#c4b5fd"];
|
|
30
|
+
}
|
|
31
|
+
|
|
32
|
+
Sh -> Opt [color="#38bdf8"];
|
|
33
|
+
Sh -> Req [color="#38bdf8"];
|
|
34
|
+
Opt -> Call [color="#34d399"];
|
|
35
|
+
Req -> Call [color="#34d399"];
|
|
36
|
+
Call -> Std [color="#a78bfa"];
|
|
37
|
+
Call -> Rep [color="#a78bfa"];
|
|
38
|
+
Call -> Ex [color="#a78bfa"];
|
|
17
39
|
}
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
digraph "PWN_Extrospection" {
|
|
2
|
+
graph [
|
|
3
|
+
label=<<B>PWN::AI::Agent::Extrospection — World Awareness</B><BR/><FONT POINT-SIZE="11" COLOR="#94a3b8">snapshot · drift · observe · intel · correlate</FONT>>,
|
|
4
|
+
labelloc=t, fontsize=20, fontname="Helvetica",
|
|
5
|
+
rankdir=LR, splines=spline, nodesep=0.5, ranksep=1.3,
|
|
6
|
+
bgcolor="#0f172a", fontcolor="#e2e8f0", pad=0.6, newrank=true
|
|
7
|
+
];
|
|
8
|
+
node [fontname="Helvetica", fontsize=11, style="filled,rounded",
|
|
9
|
+
shape=box, penwidth=1.4, color="#334155", fontcolor="#0f172a"];
|
|
10
|
+
edge [fontname="Helvetica", fontsize=9, color="#94a3b8",
|
|
11
|
+
fontcolor="#cbd5e1", penwidth=1.3, arrowsize=0.8];
|
|
12
|
+
|
|
13
|
+
/* col 0 ─ world */
|
|
14
|
+
subgraph cluster_world {
|
|
15
|
+
label="Outside World"; fontcolor="#fecaca"; style="rounded,dashed";
|
|
16
|
+
color="#b91c1c"; bgcolor="#450a0a";
|
|
17
|
+
Host [label="host\nuname · distro · arch", fillcolor="#fda4af"];
|
|
18
|
+
Net [label="net\ninterfaces · listening ports", fillcolor="#fda4af"];
|
|
19
|
+
Tool [label="toolchain\nnmap · burp · msf · git", fillcolor="#fda4af"];
|
|
20
|
+
Repo [label="repo\nHEAD · dirty · branch", fillcolor="#fda4af"];
|
|
21
|
+
Feeds [label="intel feeds\nNVD · CIRCL · Exploit-DB", fillcolor="#fda4af"];
|
|
22
|
+
}
|
|
23
|
+
{rank=same; Host; Net; Tool; Repo; Feeds}
|
|
24
|
+
|
|
25
|
+
/* col 1 ─ engine */
|
|
26
|
+
subgraph cluster_eng {
|
|
27
|
+
label="Extrospection Engine"; fontcolor="#fde68a"; style=rounded;
|
|
28
|
+
color="#a16207"; bgcolor="#422006"; penwidth=2;
|
|
29
|
+
Snap [label="extro_snapshot\nfingerprint host", fillcolor="#fcd34d"];
|
|
30
|
+
Drift [label="extro_drift\ndelta vs baseline", fillcolor="#fcd34d"];
|
|
31
|
+
Obs [label="extro_observe\nrecord recon fact", fillcolor="#fcd34d"];
|
|
32
|
+
Intel [label="extro_intel\nCVE / exploit lookup", fillcolor="#fcd34d"];
|
|
33
|
+
Corr [label="extro_correlate\njoin with Learning", fillcolor="#fcd34d", penwidth=2];
|
|
34
|
+
}
|
|
35
|
+
{rank=same; Snap; Drift; Obs; Intel; Corr}
|
|
36
|
+
|
|
37
|
+
/* col 2 ─ store + prompt */
|
|
38
|
+
Store [label="~/.pwn/\nextrospection.json", shape=cylinder, fillcolor="#fcd34d"];
|
|
39
|
+
Prompt [label="EXTROSPECTION\nblock in system prompt", fillcolor="#c4b5fd"];
|
|
40
|
+
{rank=same; Store; Prompt}
|
|
41
|
+
|
|
42
|
+
Host -> Snap [color="#fb7185"];
|
|
43
|
+
Net -> Snap [color="#fb7185"];
|
|
44
|
+
Tool -> Drift [color="#fb7185"];
|
|
45
|
+
Repo -> Drift [color="#fb7185"];
|
|
46
|
+
Feeds -> Intel [color="#fb7185"];
|
|
47
|
+
|
|
48
|
+
Snap -> Store [color="#f59e0b"];
|
|
49
|
+
Drift -> Store [color="#f59e0b"];
|
|
50
|
+
Obs -> Store [color="#f59e0b"];
|
|
51
|
+
Intel -> Store [label="record:true", color="#f59e0b"];
|
|
52
|
+
Corr -> Prompt[label="findings", color="#a78bfa", penwidth=2];
|
|
53
|
+
Store -> Prompt[label="inject", style=dashed, color="#fbbf24"];
|
|
54
|
+
Store -> Corr [style=dashed, color="#fbbf24", constraint=false];
|
|
55
|
+
}
|
|
@@ -1,27 +1,47 @@
|
|
|
1
|
-
digraph "
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
digraph "PWN_Fuzz" {
|
|
2
|
+
graph [
|
|
3
|
+
label=<<B>Fuzzing with PWN</B><BR/><FONT POINT-SIZE="11" COLOR="#94a3b8">Plugins::Fuzz · Sock · Packet · Reports::Fuzz</FONT>>,
|
|
4
|
+
labelloc=t, fontsize=20, fontname="Helvetica",
|
|
5
|
+
rankdir=LR, splines=spline, nodesep=0.45, ranksep=1.2,
|
|
6
|
+
bgcolor="#0f172a", fontcolor="#e2e8f0", pad=0.6, newrank=true
|
|
7
|
+
];
|
|
8
|
+
node [fontname="Helvetica", fontsize=10, style="filled,rounded",
|
|
9
|
+
shape=box, penwidth=1.3, color="#334155", fontcolor="#0f172a"];
|
|
10
|
+
edge [fontname="Helvetica", fontsize=9, color="#94a3b8",
|
|
11
|
+
fontcolor="#cbd5e1", penwidth=1.3, arrowsize=0.8];
|
|
4
12
|
|
|
5
|
-
|
|
6
|
-
FuzzProto [label="Protocol Fuzz\n(pwn_fuzz_net_app_proto)"];
|
|
7
|
-
FuzzFile [label="File / Format Fuzz"];
|
|
8
|
-
FuzzNet [label="Network Service Fuzz"];
|
|
9
|
-
FuzzWeb [label="Web App Fuzz\n(XSS vectors, etc.)"];
|
|
10
|
-
PWNfuzz [label="PWN::Plugins::Fuzz", shape=ellipse];
|
|
11
|
-
Monitor [label="Monitor Crashes\n(PS, logging, core dumps)"];
|
|
12
|
-
Corpus [label="Interesting Inputs\n(saved for replay)", shape=cylinder];
|
|
13
|
-
Crash [label="Crash Analysis\n(identify root cause)", shape=ellipse];
|
|
13
|
+
Seed [label="Seed corpus /\nprotocol grammar", fillcolor="#7dd3fc"];
|
|
14
14
|
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
15
|
+
subgraph cluster_gen {
|
|
16
|
+
label="Generate"; fontcolor="#a7f3d0"; style=rounded;
|
|
17
|
+
color="#047857"; bgcolor="#022c22";
|
|
18
|
+
Fuzz [label="Plugins::Fuzz\nmutate · generate", fillcolor="#6ee7b7"];
|
|
19
|
+
Char [label="Plugins::Char\nencodings", fillcolor="#6ee7b7"];
|
|
20
|
+
}
|
|
21
|
+
subgraph cluster_deliver {
|
|
22
|
+
label="Deliver"; fontcolor="#fde68a"; style=rounded;
|
|
23
|
+
color="#a16207"; bgcolor="#422006";
|
|
24
|
+
Sock [label="Plugins::Sock\nTCP/UDP", fillcolor="#fcd34d"];
|
|
25
|
+
Packet [label="Plugins::Packet\nraw L2/L3", fillcolor="#fcd34d"];
|
|
26
|
+
NetApp [label="pwn_fuzz_net_app_proto\nCLI driver", fillcolor="#fcd34d"];
|
|
27
|
+
}
|
|
28
|
+
subgraph cluster_mon {
|
|
29
|
+
label="Monitor"; fontcolor="#fecaca"; style=rounded;
|
|
30
|
+
color="#b91c1c"; bgcolor="#450a0a";
|
|
31
|
+
PS [label="Plugins::PS\nprocess health", fillcolor="#fda4af"];
|
|
32
|
+
Log [label="Plugins::Log\ncrash detect", fillcolor="#fda4af"];
|
|
33
|
+
}
|
|
34
|
+
Report [label="Reports::Fuzz\ncrash triage", fillcolor="#7dd3fc"];
|
|
35
|
+
|
|
36
|
+
Seed -> Fuzz [color="#38bdf8"];
|
|
37
|
+
Seed -> Char [color="#38bdf8"];
|
|
38
|
+
Fuzz -> Sock [color="#f59e0b"];
|
|
39
|
+
Fuzz -> Packet [color="#f59e0b"];
|
|
40
|
+
Char -> NetApp [color="#f59e0b"];
|
|
41
|
+
Sock -> PS [color="#fb7185"];
|
|
42
|
+
Packet -> Log [color="#fb7185"];
|
|
43
|
+
NetApp -> Log [color="#fb7185"];
|
|
44
|
+
PS -> Report [color="#38bdf8"];
|
|
45
|
+
Log -> Report [color="#38bdf8"];
|
|
46
|
+
Log -> Fuzz [label="minimise + reseed", style=dashed, color="#fbbf24", constraint=false];
|
|
27
47
|
}
|
|
@@ -1,20 +1,34 @@
|
|
|
1
|
-
digraph "
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
digraph "PWN_HistToDriver" {
|
|
2
|
+
graph [
|
|
3
|
+
label=<<B>From REPL History → Reusable Driver / Skill</B><BR/><FONT POINT-SIZE="11" COLOR="#94a3b8">explore → history → bin/pwn_* driver → distill_skill</FONT>>,
|
|
4
|
+
labelloc=t, fontsize=20, fontname="Helvetica",
|
|
5
|
+
rankdir=LR, splines=spline, nodesep=0.5, ranksep=1.2,
|
|
6
|
+
bgcolor="#0f172a", fontcolor="#e2e8f0", pad=0.6, newrank=true
|
|
7
|
+
];
|
|
8
|
+
node [fontname="Helvetica", fontsize=10, style="filled,rounded",
|
|
9
|
+
shape=box, penwidth=1.3, color="#334155", fontcolor="#0f172a"];
|
|
10
|
+
edge [fontname="Helvetica", fontsize=9, color="#94a3b8",
|
|
11
|
+
fontcolor="#cbd5e1", penwidth=1.3, arrowsize=0.8];
|
|
4
12
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
Script [label="Prototype Script\n(.rb or bin/)", shape=box];
|
|
9
|
-
Driver [label="PWN Driver\n(/opt/pwn/bin/ example\nor PWN::Driver::Parser)", shape=box];
|
|
10
|
-
Skill [label="Distilled Skill\n(~/.pwn/skills/)", shape=cylinder, fillcolor=lightyellow];
|
|
11
|
-
Agent [label="pwn-ai Agent\n(future automation)"];
|
|
13
|
+
Explore [label="🐚 Explore in REPL\ncall PWN::Plugins::*", fillcolor="#7dd3fc"];
|
|
14
|
+
Hist [label="~/.pwn_history\nPry `history` cmd", shape=cylinder, fillcolor="#fcd34d"];
|
|
15
|
+
Extract [label="copy working lines", fillcolor="#6ee7b7"];
|
|
12
16
|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
17
|
+
subgraph cluster_out {
|
|
18
|
+
label="Reusable Artefacts"; fontcolor="#ddd6fe"; style=rounded;
|
|
19
|
+
color="#6d28d9"; bgcolor="#2e1065";
|
|
20
|
+
Driver [label="bin/pwn_<name>\nOptionParser + PWN calls", fillcolor="#c4b5fd"];
|
|
21
|
+
Skill [label="~/.pwn/skills/<name>.md\nlearning_distill_skill", fillcolor="#c4b5fd"];
|
|
22
|
+
Cron [label="cron_create\nprompt: | ruby:", fillcolor="#c4b5fd"];
|
|
23
|
+
}
|
|
24
|
+
CI [label="⚙️ CI / CD\nheadless run", fillcolor="#7dd3fc"];
|
|
25
|
+
|
|
26
|
+
Explore -> Hist [label="auto-log", color="#38bdf8"];
|
|
27
|
+
Hist -> Extract [color="#f59e0b"];
|
|
28
|
+
Extract -> Driver [color="#a78bfa"];
|
|
29
|
+
Extract -> Skill [color="#a78bfa"];
|
|
30
|
+
Extract -> Cron [color="#a78bfa"];
|
|
31
|
+
Driver -> CI [color="#38bdf8", penwidth=2];
|
|
32
|
+
Skill -> CI [label="pwn --ai", color="#38bdf8"];
|
|
33
|
+
Cron -> CI [color="#38bdf8"];
|
|
20
34
|
}
|
|
@@ -1,28 +1,60 @@
|
|
|
1
|
-
digraph "
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
digraph "PWN_MemorySkills" {
|
|
2
|
+
graph [
|
|
3
|
+
label=<<B>Persistent Knowledge — Memory · Skills · Sessions</B><BR/><FONT POINT-SIZE="11" COLOR="#94a3b8">everything under ~/.pwn/ that shapes future prompts</FONT>>,
|
|
4
|
+
labelloc=t, fontsize=20, fontname="Helvetica",
|
|
5
|
+
rankdir=TB, splines=spline, nodesep=0.55, ranksep=0.95,
|
|
6
|
+
bgcolor="#0f172a", fontcolor="#e2e8f0", pad=0.6, newrank=true
|
|
7
|
+
];
|
|
8
|
+
node [fontname="Helvetica", fontsize=10, style="filled,rounded",
|
|
9
|
+
shape=box, penwidth=1.3, color="#334155", fontcolor="#0f172a"];
|
|
10
|
+
edge [fontname="Helvetica", fontsize=9, color="#94a3b8",
|
|
11
|
+
fontcolor="#cbd5e1", penwidth=1.3, arrowsize=0.8];
|
|
4
12
|
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
AgentPrompt [label="Agent System Prompt\n(injects skills + memory)"];
|
|
15
|
-
Recall [label="memory_recall"];
|
|
13
|
+
subgraph cluster_write {
|
|
14
|
+
label="Write-Side Tools"; fontcolor="#a7f3d0"; style=rounded;
|
|
15
|
+
color="#047857"; bgcolor="#022c22";
|
|
16
|
+
Rem [label="memory_remember\nkey · value · category", fillcolor="#6ee7b7"];
|
|
17
|
+
Skc [label="skill_create\nskill_add_reference", fillcolor="#6ee7b7"];
|
|
18
|
+
Note [label="learning_note_outcome\nlearning_reflect", fillcolor="#6ee7b7"];
|
|
19
|
+
Dist [label="learning_distill_skill\n(session → skill)", fillcolor="#6ee7b7"];
|
|
20
|
+
}
|
|
21
|
+
{rank=same; Rem; Skc; Note; Dist}
|
|
16
22
|
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
23
|
+
subgraph cluster_files {
|
|
24
|
+
label="~/.pwn/"; fontcolor="#fde68a"; style=rounded;
|
|
25
|
+
color="#a16207"; bgcolor="#422006";
|
|
26
|
+
Fmem [label="memory.json\nfact · pref · lesson · env", shape=cylinder, fillcolor="#fcd34d"];
|
|
27
|
+
Fskl [label="skills/*.md\nYAML front-matter refs", shape=cylinder, fillcolor="#fcd34d"];
|
|
28
|
+
Flrn [label="learning.jsonl\noutcome log", shape=cylinder, fillcolor="#fcd34d"];
|
|
29
|
+
Fses [label="sessions/*.jsonl\ntranscripts", shape=cylinder, fillcolor="#fcd34d"];
|
|
30
|
+
}
|
|
31
|
+
{rank=same; Fmem; Fskl; Flrn; Fses}
|
|
32
|
+
|
|
33
|
+
subgraph cluster_read {
|
|
34
|
+
label="Read-Side / Injection"; fontcolor="#ddd6fe"; style=rounded;
|
|
35
|
+
color="#6d28d9"; bgcolor="#2e1065";
|
|
36
|
+
Rec [label="memory_recall", fillcolor="#c4b5fd"];
|
|
37
|
+
Skv [label="skill_list · view", fillcolor="#c4b5fd"];
|
|
38
|
+
Out [label="learning_outcomes\nlearning_stats", fillcolor="#c4b5fd"];
|
|
39
|
+
Sesv [label="sessions_view\nsessions_current", fillcolor="#c4b5fd"];
|
|
40
|
+
}
|
|
41
|
+
{rank=same; Rec; Skv; Out; Sesv}
|
|
42
|
+
|
|
43
|
+
Prompt [label="PromptBuilder\nMEMORY + SKILLS + LEARNING blocks", fillcolor="#7dd3fc", penwidth=2];
|
|
44
|
+
|
|
45
|
+
Rem -> Fmem [color="#f59e0b"];
|
|
46
|
+
Skc -> Fskl [color="#f59e0b"];
|
|
47
|
+
Note -> Flrn [color="#f59e0b"];
|
|
48
|
+
Dist -> Fskl [color="#f59e0b"];
|
|
49
|
+
Dist -> Fses [dir=back, style=dashed, color="#fbbf24", label="mine"];
|
|
50
|
+
|
|
51
|
+
Fmem -> Rec [color="#a78bfa"];
|
|
52
|
+
Fskl -> Skv [color="#a78bfa"];
|
|
53
|
+
Flrn -> Out [color="#a78bfa"];
|
|
54
|
+
Fses -> Sesv [color="#a78bfa"];
|
|
55
|
+
|
|
56
|
+
Rec -> Prompt [color="#38bdf8"];
|
|
57
|
+
Skv -> Prompt [color="#38bdf8"];
|
|
58
|
+
Out -> Prompt [color="#38bdf8"];
|
|
59
|
+
Sesv -> Prompt [color="#38bdf8"];
|
|
28
60
|
}
|
|
@@ -1,22 +1,54 @@
|
|
|
1
|
-
digraph "
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
digraph "PWN_Network" {
|
|
2
|
+
graph [
|
|
3
|
+
label=<<B>Network & Infrastructure Testing</B><BR/><FONT POINT-SIZE="11" COLOR="#94a3b8">discovery → service enum → auth attacks → cloud / CI</FONT>>,
|
|
4
|
+
labelloc=t, fontsize=20, fontname="Helvetica",
|
|
5
|
+
rankdir=LR, splines=spline, nodesep=0.45, ranksep=1.2,
|
|
6
|
+
bgcolor="#0f172a", fontcolor="#e2e8f0", pad=0.6, newrank=true
|
|
7
|
+
];
|
|
8
|
+
node [fontname="Helvetica", fontsize=10, style="filled,rounded",
|
|
9
|
+
shape=box, penwidth=1.3, color="#334155", fontcolor="#0f172a"];
|
|
10
|
+
edge [fontname="Helvetica", fontsize=9, color="#94a3b8",
|
|
11
|
+
fontcolor="#cbd5e1", penwidth=1.3, arrowsize=0.8];
|
|
4
12
|
|
|
5
|
-
|
|
6
|
-
Discovery [label="Discovery\n(NmapIt, pwn_nmap_discover,\nShodan, IPInfo, crt.sh)"];
|
|
7
|
-
Enum [label="Service Enum\n(portscan, version, scripts)"];
|
|
8
|
-
Auth [label="Auth Testing\n(basic_auth, DAOs,\ncredential spray)"];
|
|
9
|
-
VulnScan [label="Vuln Scanning\n(NessusCloud, OpenVAS,\nNexpose, Zaproxy)"];
|
|
10
|
-
Packet [label="Packet Crafting\n(PWN::Plugins::Packet,\nSock, Tor)"];
|
|
11
|
-
Infra [label="Infra Specific\n(AWS, Jenkins, Jira,\nVsphere, RabbitMQ)"];
|
|
12
|
-
ExploitNet [label="Network Exploits"];
|
|
13
|
+
CIDR [label="CIDR / ASN\nscope", fillcolor="#7dd3fc"];
|
|
13
14
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
15
|
+
subgraph cluster_disc {
|
|
16
|
+
label="Discover"; fontcolor="#a7f3d0"; style=rounded;
|
|
17
|
+
color="#047857"; bgcolor="#022c22";
|
|
18
|
+
Nmap [label="NmapIt\npwn_nmap_discover_tcp_udp", fillcolor="#6ee7b7"];
|
|
19
|
+
Packet [label="Plugins::Packet\nraw craft / sniff", fillcolor="#6ee7b7"];
|
|
20
|
+
}
|
|
21
|
+
subgraph cluster_svc {
|
|
22
|
+
label="Service Enum"; fontcolor="#fde68a"; style=rounded;
|
|
23
|
+
color="#a16207"; bgcolor="#422006";
|
|
24
|
+
Sock [label="Plugins::Sock\nbanner grab", fillcolor="#fcd34d"];
|
|
25
|
+
DAO [label="DAO::LDAP · Mongo\nPostgres · SQLite3", fillcolor="#fcd34d"];
|
|
26
|
+
MQ [label="RabbitMQ\nSlack · IRC · Mail", fillcolor="#fcd34d"];
|
|
27
|
+
}
|
|
28
|
+
subgraph cluster_auth {
|
|
29
|
+
label="Auth / Exploit"; fontcolor="#fecaca"; style=rounded;
|
|
30
|
+
color="#b91c1c"; bgcolor="#450a0a";
|
|
31
|
+
MSF [label="Metasploit\nmsf_postgres_login", fillcolor="#fda4af"];
|
|
32
|
+
Auth [label="BasicAuth · OAuth2\nAuthenticationHelper", fillcolor="#fda4af"];
|
|
33
|
+
}
|
|
34
|
+
subgraph cluster_cloud {
|
|
35
|
+
label="Cloud / CI"; fontcolor="#ddd6fe"; style=rounded;
|
|
36
|
+
color="#6d28d9"; bgcolor="#2e1065";
|
|
37
|
+
AWS [label="PWN::AWS::*\n90 services", fillcolor="#c4b5fd"];
|
|
38
|
+
Jenk [label="Plugins::Jenkins\nvSphere · Vault", fillcolor="#c4b5fd"];
|
|
39
|
+
}
|
|
40
|
+
Report [label="Reports · DefectDojo", fillcolor="#7dd3fc"];
|
|
41
|
+
|
|
42
|
+
CIDR -> Nmap [color="#38bdf8"];
|
|
43
|
+
CIDR -> Packet [color="#38bdf8"];
|
|
44
|
+
Nmap -> Sock [color="#f59e0b"];
|
|
45
|
+
Nmap -> DAO [color="#f59e0b"];
|
|
46
|
+
Packet -> MQ [color="#f59e0b"];
|
|
47
|
+
Sock -> MSF [color="#fb7185"];
|
|
48
|
+
DAO -> Auth [color="#fb7185"];
|
|
49
|
+
MQ -> Auth [color="#fb7185"];
|
|
50
|
+
MSF -> AWS [color="#a78bfa"];
|
|
51
|
+
Auth -> Jenk [color="#a78bfa"];
|
|
52
|
+
AWS -> Report [color="#38bdf8"];
|
|
53
|
+
Jenk -> Report [color="#38bdf8"];
|
|
22
54
|
}
|