[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-108646":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":15,"subscribersCount":15,"size":15,"stars1d":15,"stars7d":16,"stars30d":17,"stars90d":15,"forks30d":15,"starsTrendScore":18,"compositeScore":19,"rankGlobal":10,"rankLanguage":10,"license":20,"archived":21,"fork":21,"defaultBranch":22,"hasWiki":21,"hasPages":21,"topics":23,"createdAt":10,"pushedAt":34,"updatedAt":35,"readmeContent":36,"aiSummary":37,"trendingCount":15,"starSnapshotCount":15,"syncStatus":38,"lastSyncTime":39,"discoverSource":40},108646,"pwner","0x45dd\u002Fpwner","0x45dd","Autonomous agentic network penetration-testing tool (authorized use only)","https:\u002F\u002Fwww.pwner.si",null,"Python",87,7,72,0,4,12,3,45.91,"GNU Affero General Public License v3.0",false,"main",[24,25,26,27,28,29,30,31,32,33],"agent","ai-agent","cli","infosec","llm","nmap","offensive-security","pentest","python","security","2026-11-05 14:29:08","2026-11-22 12:52:01","\u003Cp align=\"center\">\n  \u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002F0x45dd\u002Fpwner\u002Fmain\u002Fdocs\u002Flogo.svg\" width=\"250\" alt=\"pwner\">\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  An agentic network pentest tool you talk to.\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002F0x45dd\u002Fpwner\u002Factions\u002Fworkflows\u002Fci.yml\">\u003Cimg\n    src=\"https:\u002F\u002Fgithub.com\u002F0x45dd\u002Fpwner\u002Factions\u002Fworkflows\u002Fci.yml\u002Fbadge.svg?branch=main\"\n    alt=\"CI status\">\u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Fpypi.org\u002Fproject\u002Fpwner\u002F\">\u003Cimg\n    src=\"https:\u002F\u002Fimg.shields.io\u002Fpypi\u002Fv\u002Fpwner?color=4c4a42&label=pypi\"\n    alt=\"pwner on PyPI\">\u003C\u002Fa>\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002F0x45dd\u002Fpwner\u002Fblob\u002Fmain\u002FLICENSE\">\u003Cimg\n    src=\"https:\u002F\u002Fimg.shields.io\u002Fgithub\u002Flicense\u002F0x45dd\u002Fpwner?color=4c4a42&label=license\"\n    alt=\"License: AGPL-3.0-or-later\">\u003C\u002Fa>\n  \u003Cimg src=\"https:\u002F\u002Fimg.shields.io\u002Fbadge\u002Fpython-3.10%2B-4c4a42\" alt=\"Python 3.10+\">\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Cb>English\u003C\u002Fb> &nbsp;·&nbsp;\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002F0x45dd\u002Fpwner\u002Fblob\u002Fmain\u002FREADME.es.md\">Español\u003C\u002Fa> &nbsp;·&nbsp;\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002F0x45dd\u002Fpwner\u002Fblob\u002Fmain\u002FREADME.de.md\">Deutsch\u003C\u002Fa> &nbsp;·&nbsp;\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002F0x45dd\u002Fpwner\u002Fblob\u002Fmain\u002FREADME.ja.md\">日本語\u003C\u002Fa> &nbsp;·&nbsp;\n  \u003Ca href=\"https:\u002F\u002Fgithub.com\u002F0x45dd\u002Fpwner\u002Fblob\u002Fmain\u002FREADME.tr.md\">Türkçe\u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Ca href=\"#safety-model\">Safety model\u003C\u002Fa> &nbsp;·&nbsp;\n  \u003Ca href=\"#install\">Install\u003C\u002Fa> &nbsp;·&nbsp;\n  \u003Ca href=\"#first-run\">First run\u003C\u002Fa> &nbsp;·&nbsp;\n  \u003Ca href=\"#your-model\">Your model\u003C\u002Fa> &nbsp;·&nbsp;\n  \u003Ca href=\"#pci-dss-segmentation-testing\">PCI DSS\u003C\u002Fa> &nbsp;·&nbsp;\n  \u003Ca href=\"#documentation\">Documentation\u003C\u002Fa>\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Cimg src=\"https:\u002F\u002Fraw.githubusercontent.com\u002F0x45dd\u002Fpwner\u002Fmain\u002Fdocs\u002Fsession.gif\" width=\"860\"\n       alt=\"A pwner session: the operator sets a target and asks for a full scan. The agent port-scans, fingerprints services, checks for known issues, reports two findings, then stops and asks permission before brute-forcing SSH. The operator answers n and it skips.\">\n\u003C\u002Fp>\n\n\u003Cp align=\"center\">\n  \u003Csub>\u003Cb>Example session\u003C\u002Fb> against a fictional lab host. The agent's wording and the counts\n  are illustrative, not a recording of a live run. Note the last four lines: it asks before\n  anything intrusive, and a refusal stops it.\u003C\u002Fsub>\n\u003C\u002Fp>\n\n`pwner` is an LLM-driven agent that plans and runs a network penetration test from your\nterminal. It discovers hosts, fingerprints services, checks them against known issues, and —\nwhen the target warrants it and **you** approve — exploits them to prove impact. It drives\nreal tools (nmap, nuclei, netexec, impacket, hydra and others) rather than simulating them,\nand it reports confirmed findings with severity, evidence and a fix.\n\nIt runs on your own model, or on no model at all.\n\n- **You talk to it.** Not a flag soup: say *\"scan it, focus on the database\"* and it decides\n  what to run, shows you its reasoning as it goes, and you can redirect it mid-run.\n- **Scope is enforced in code.** Every tool call is checked against the target you named\n  before it runs — not asked of the model in a prompt. See [Safety model](#safety-model).\n- **Intrusive actions are denied by default.** Brute-force, remote command execution,\n  credential dumping and reverse shells need your explicit approval.\n- **Your model, your machine.** OpenAI, Anthropic, Google, DeepSeek, or a server on your\n  own hardware — Ollama, Lemonade, llama.cpp, anything OpenAI-compatible. A local\n  endpoint needs no API key. Nothing is sent anywhere until you configure one.\n- **Works with no model.** `--no-ai` runs the full discovery → fingerprint → detect pipeline\n  deterministically, with no API key and nothing leaving the machine.\n- **52 tools** across nmap, HTTP, web crawling and parameter probing, per-service probes,\n  Active Directory and credential work,\n  each a thin wrapper over the standard binary rather than a reimplementation.\n\n## Safety model\n\nTwo mechanisms, both in the tool layer, both outside the model's reach. The model can ask\nfor anything; it cannot widen its own authorization.\n\n```mermaid\nflowchart LR\n    OP([\"operator\"]) -->|\"plain language\"| AG[\"agent loop\"]\n    AG -->|\"tool call\"| SG{\"scope guard\"}\n    SG -->|\"host outside\u003Cbr>the target\"| R1[\"refused\"]\n    SG -->|\"in scope\"| CG{\"consent gate\"}\n    CG -->|\"intrusive,\u003Cbr>not approved\"| R2[\"skipped\"]\n    CG -->|\"approved, or\u003Cbr>not intrusive\"| RUN[\"runs against\u003Cbr>the target\"]\n    classDef guard fill:#ffb000,stroke:#8a5f00,color:#140d00,stroke-width:2px\n    classDef stop fill:none,stroke:#8b949e,stroke-dasharray:4 4\n    class SG,CG guard\n    class R1,R2 stop\n```\n\nA refusal is not an error that stops the run: it goes back to the model as a tool result,\nso the agent learns it overstepped and carries on inside the boundary.\n\n**Scope lock.** [`build_dispatch`](https:\u002F\u002Fgithub.com\u002F0x45dd\u002Fpwner\u002Fblob\u002Fmain\u002Fpwner\u002Ftools\u002Fcore.py) wraps every tool so each\nhost-carrying argument is checked against your target *before* the tool body runs. Tools are\nin-scope-by-default: one that forgets its own check is still guarded, and an unregistered\ntool name fails closed. A network argument has to sit entirely inside the authorization, so\na `\u002F24` scope cannot be widened to a `\u002F16` by a tool argument.\n\n**Changing the scope.** The one thing the guard cannot check is `set_target`, because its\nargument *is* the new scope, so there is nothing to check it against. It carries its own\ngate instead: narrowing, or returning to something you already authorized, is free, and\nmoving anywhere else needs your answer every time. An earlier approval for some other\naction does not buy it, `--auto-consent` does not cover it, and a non-interactive run\nrefuses it outright.\n\n**Consent gate.** Anything active is denied unless you approve it in that session. The agent\ncannot self-approve — consent is resolved outside the model — and a non-interactive run\nrefuses it unless you launched it with `--auto-consent`.\n\nThese two are the part of the codebase under the most test: 77 tests on the scope boundary\nin [`tests\u002Ftest_scope.py`](https:\u002F\u002Fgithub.com\u002F0x45dd\u002Fpwner\u002Fblob\u002Fmain\u002Ftests\u002Ftest_scope.py), 32 more on the scope-change gate in\n[`tests\u002Ftest_scope_change.py`](https:\u002F\u002Fgithub.com\u002F0x45dd\u002Fpwner\u002Fblob\u002Fmain\u002Ftests\u002Ftest_scope_change.py), and 13 on the consent gate in\n[`tests\u002Ftest_consent.py`](https:\u002F\u002Fgithub.com\u002F0x45dd\u002Fpwner\u002Fblob\u002Fmain\u002Ftests\u002Ftest_consent.py), out of 785 overall. If you are going to\nread one thing before pointing this at a network, read those.\n\nIntended use:\n\n- Authorized penetration tests, with written permission and an agreed scope\n- Bug-bounty work, inside the program's stated rules\n- Your own lab, your own hardware, CTFs\n- Security research on systems you own\n\nNot this tool's purpose, and not defensible:\n\n- Anything on a host you do not own and have no written permission to test\n- \"Just checking\" a network you happen to be on\n- Anything where you cannot name who authorized it\n\n## Install\n\nPython **3.10+**. **nmap is the only hard requirement** — everything else enables more tools\nand is optional.\n\n```bash\ncurl -fsSL https:\u002F\u002Fraw.githubusercontent.com\u002F0x45dd\u002Fpwner\u002Fmain\u002Finstall.sh | bash\n```\n\nThat builds an isolated virtualenv under `~\u002F.local\u002Fshare\u002Fpwner`, leaves your system\nPython alone, and puts `pwner` on your PATH so it works from any directory. Add\n`--with-tools` to install nmap and the optional scanners too, and `--uninstall` to take\nit all back out.\n\nIt is on PyPI too, if you would rather use your own Python tooling:\n\n```bash\npipx install pwner      # isolated, and `pwner` lands on your PATH\nuv tool install pwner   # the same, through uv\npip install pwner       # inside a virtualenv\n```\n\nReach for `pipx` or `uv tool` over a bare `pip install`: they give you the same isolation\nthe installer script does, and installing into the system Python is refused outright on\nmost current distributions anyway.\n\nOn macOS there is also a tap:\n\n```bash\nbrew install 0x45dd\u002Ftap\u002Fpwner\n```\n\nThat brings nmap with it. From source instead:\n\n```bash\ngit clone https:\u002F\u002Fgithub.com\u002F0x45dd\u002Fpwner.git\ncd pwner\npython3 -m venv .venv && source .venv\u002Fbin\u002Factivate\npip install -e .\n```\n\nThen the external tools, and a check:\n\n```bash\n.\u002Fscripts\u002Finstall-deps.sh   # brew\u002Fapt\u002Fkali\u002Fpacman\u002Fdnf\npwner doctor               # what's missing\n```\n\n`install-deps.sh` installs only what is missing and skips anything your distro does not\npackage instead of failing. `pwner doctor` reports every external tool, what each one\nenables, and the install command *for the system you are on*; it exits non-zero only when\nnmap is missing, so it works as a setup check in a script.\n\n**On Kali there is almost nothing to install.** A default Kali image already ships 8 of the\n11 external tools pwner drives — nmap, hydra, netexec, impacket, certipy, searchsploit,\nhashcat and snmpwalk. `sudo apt install nuclei bloodhound.py` adds two more, and only\nkerbrute is unpackaged. pwner detects Kali as its own ecosystem rather than as Debian, so\n`pwner doctor` hands you apt commands instead of the source builds a plain Debian box needs.\nIf you are choosing where to run this, run it there.\n\n\u003Cdetails>\n\u003Csummary>\u003Cb>uv, or just the command\u003C\u002Fb>\u003C\u002Fsummary>\n\n```bash\nuv tool install pwner          # from PyPI, command on your PATH\nuv venv && uv pip install -e . # from a clone, editable\npipx install -e .              # from a clone, command on your PATH\n```\n\n\u003C\u002Fdetails>\n\n\u003Cdetails>\n\u003Csummary>\u003Cb>Docker\u003C\u002Fb>\u003C\u002Fsummary>\n\nThe whole toolchain in one image, nothing installed on your host. The base is Kali, so\nevery tool but kerbrute comes from apt:\n\n```bash\ndocker build -t pwner .\ndocker run --rm -it --net=host \\\n  --cap-add=NET_RAW --cap-add=NET_ADMIN \\\n  -v pwner-config:\u002Froot\u002F.config\u002Fpwner \\\n  -v pwner-sessions:\u002Froot\u002F.local\u002Fshare\u002Fpwner \\\n  pwner\n```\n\n`--net=host` and the two capabilities are what let nmap do SYN scans and ICMP\u002FARP discovery;\nwithout them it quietly falls back to slower connect scans and finds fewer hosts. The\nvolumes persist your key and your saved transcripts.\n\nThe image is ~2.7 GB and carries 10 of the 11 external tools plus nuclei's 14k templates,\nbaked in so the first scan does not stall on a download. kerbrute is the one omission: it\nhas no Kali package and no arm64 release. Built and run on arm64; the package set resolves\non amd64 too.\n\n\u003C\u002Fdetails>\n\n## First run\n\n```bash\npwner\n```\n\nThe first run asks for a provider and an API key once and saves them to\n`~\u002F.config\u002Fpwner\u002Fconfig.json` (owner-only). Every run after that drops you straight into a\nsession. Change it later with `pwner --pick` for a provider\u002Fmodel menu, `pwner setup` for the\nfull prompts, or `\u002Fmodel` and `\u002Fprovider` from inside a running session.\n\n```bash\npwner chat 10.0.0.5          # session, target set\npwner 10.0.0.0\u002F24 --no-ai    # sweep, no model\npwner doctor                 # tool status\npwner --pick                 # choose a provider\u002Fmodel, then open a session\n```\n\nIn a session you talk to the agent and steer it while it works; `\u002Fhelp` lists the commands,\n`\u002Ffindings` and `\u002Ftopology` show what it has built so far, and `\u002Fdump` writes the transcript\nto `~\u002F.local\u002Fshare\u002Fpwner\u002Fsessions\u002F` (owner-only — it contains every credential the\nengagement turned up, in cleartext).\n\n## Your model\n\nPoint it at a provider and give it a key. Presets cover OpenAI, Anthropic, Google and\nDeepSeek; anything else that speaks the OpenAI API works via `--base-url`.\n\n```bash\nexport PWNER_API_KEY=...\npwner chat 10.0.0.5 --provider anthropic\n```\n\nThe model has to support tool calling. `pwner chat --help` lists the presets and every\noverride; each preset's default model is in [`pwner\u002Fllm.py`](https:\u002F\u002Fgithub.com\u002F0x45dd\u002Fpwner\u002Fblob\u002Fmain\u002Fpwner\u002Fllm.py). Model names move\ntoo fast to be worth pinning in a README.\n\n### How hard it thinks\n\n`\u002Feffort low|medium|high|off` sets the reasoning budget for the rest of the session, and\n`off` is the default: a model that does not implement `reasoning_effort` answers 400 to it\nrather than ignoring it, so nothing is sent unless you ask. It is not saved to your config,\nbecause the right setting depends on what you are doing right now.\n\nTwo things raise it on their own, both by one notch and only for a few steps. A tool that\nfound something says so in its result, so a `param_probe` that moved the response or a\nsegmentation test that did not hold buys more deliberation for the turns that read it. And\nwhen the agent stops calling tools while your ledger still has an unresolved hypothesis or\na service nothing has touched, that state goes back to it once, with more budget to answer.\n\nThat last one is the only thing in the loop arguing for more work rather than less: the\nother three guards all exist to stop an agent that is spinning. It reports state and never\nan instruction, it is capped, and deciding a hypothesis is not worth chasing is a complete\nanswer — so it makes a shallow stop visible without making it impossible.\n\n### On your own hardware\n\n`ollama` and `lemonade` are presets too, and a local endpoint needs **no API key** — if\none is given it is still sent, since Lemonade does separate inference from admin keys.\n\n```bash\npwner chat 10.0.0.5 --provider ollama\npwner chat 10.0.0.5 --provider lemonade\n```\n\nLocal servers are named after whatever that machine has pulled, so there is no sensible\ndefault model. When none is set, pwner asks the server's `\u002Fmodels` endpoint and uses what\nit finds; `pwner setup` lists them and lets you pick one to save. Any other OpenAI-compatible\nserver — llama.cpp, LM Studio, vLLM — works the same way with `--base-url`, and is treated\nas keyless whenever the URL points at loopback or a private network.\n\n```bash\npwner chat 10.0.0.5 --base-url http:\u002F\u002F192.168.1.50:13305\u002Fapi\u002Fv1 --model Qwen3-Coder-30B\n```\n\n## Running without a model\n\n`--no-ai` runs the deterministic suite: host discovery, port scan, service detection, OS\nfingerprint and known-issue detection, then the same findings report. No API key, no network\ncalls beyond the scan itself, and reproducible — which makes it the mode to use in CI, on an\nair-gapped engagement, or when the data cannot leave the building.\n\nThe active tools are the agent's; they need both a model and your consent.\n\n## PCI DSS segmentation testing\n\nTwo of the things PCI DSS v4.0.1 asks for are pure network-layer work, and `pwner pci` does\nthem with no model and no agent:\n\n```bash\npwner pci 10.0.0.0\u002F24                       # is the CDE isolated from here?\npwner pci 10.0.0.0\u002F24 --json > evidence.json\n```\n\nRun it from a segment that is **out of scope** for the CDE. It tries to reach the CDE and\nreports whether the boundary held — that is **11.4.5**, or **11.4.6** on the six-month cycle\nif you are a service provider. Because it is deterministic, re-running it after a fix is the\nretest **11.4.4** asks for, and the exit code makes that a gate: `0` isolated, `2` not\nisolated, `3` inconclusive.\n\nIt is not asking what a port scan asks. A port scan wants to know what is listening; this\nwants to know whether a packet can get there at all, so a **closed** port that answers with a\nRST is a failure of isolation rather than a pass — something on the path replied. Whether that\nRST came from the host or from a firewall rejecting on its behalf cannot be told from a TCP\nconnect, so that case is reported as `inconclusive` rather than guessed in either direction.\nSettle those from the segmentation control's own logs.\n\n> [!NOTE]\n> **This does not make anyone compliant.** 11.4.2 and 11.4.3 require a qualified tester with\n> organizational independence, 11.4.1 requires a documented methodology, and the quarterly\n> external scan in 11.3.2 has to come from an Approved Scanning Vendor. This is an instrument\n> a tester uses. What it contributes is the evidence an assessor asks for — when, from where,\n> against what, and what came back — attached to the result instead of reconstructed later.\n\n## Documentation\n\nFull command and config reference, the agent loop, the module catalogue and the rules live at\n**[pwner.si](https:\u002F\u002Fwww.pwner.si\u002F)**:\n\n- [Docs](https:\u002F\u002Fwww.pwner.si\u002Fdocs) — install, first session, every command and flag\n- [Agent](https:\u002F\u002Fwww.pwner.si\u002Fagent) — how the loop works and what it can and cannot do\n- [Modules](https:\u002F\u002Fwww.pwner.si\u002Fmodules) — all 52 tools and what each one drives\n- [Rules](https:\u002F\u002Fwww.pwner.si\u002Frules) — scope, consent, responsible use\n- [Contributing](https:\u002F\u002Fgithub.com\u002F0x45dd\u002Fpwner\u002Fblob\u002Fmain\u002FCONTRIBUTING.md) — development setup, the tools package, adding a tool\n- [Security](https:\u002F\u002Fgithub.com\u002F0x45dd\u002Fpwner\u002Fblob\u002Fmain\u002FSECURITY.md) — reporting a vulnerability in pwner itself\n\n## Contact\n\nFor anything that does not belong in a public issue — questions, private feedback, or\ngetting in touch directly — email [berk@planckproof.ai](mailto:berk@planckproof.ai).\n\nBugs and feature requests work better as [issues](https:\u002F\u002Fgithub.com\u002F0x45dd\u002Fpwner\u002Fissues), and security vulnerabilities\nshould go through [SECURITY.md](https:\u002F\u002Fgithub.com\u002F0x45dd\u002Fpwner\u002Fblob\u002Fmain\u002FSECURITY.md) so they stay private until there is a fix.\n\n## License\n\n[GNU AGPL-3.0-or-later](https:\u002F\u002Fgithub.com\u002F0x45dd\u002Fpwner\u002Fblob\u002Fmain\u002FLICENSE). Copyright (C) 2026 Berk D.\n\nStrong copyleft, with a network clause: if you modify pwner and let other people use it over\na network, you owe them the modified source too.\n\n> [!WARNING]\n> **Authorized use only.** pwner sends real traffic to the hosts you name and, with your\n> approval, actively breaks into them. Only run it against systems you own or have explicit,\n> written permission to test, and stay inside the agreed scope. Unauthorized testing is\n> illegal in most jurisdictions.\n> Obtaining that authorization is your responsibility, not the tool's. pwner is provided\n> as is, with no warranty and no liability for misuse. The scope lock and the consent gate\n> are engineering, not a legal defence.\n","pwner 是一个基于大语言模型（LLM）的自主式网络渗透测试代理工具，面向授权红队与安全评估场景。它通过自然语言交互接收指令，自动规划并调用真实安全工具（如 nmap、nuclei、hydra 等）执行主机发现、服务识别、漏洞探测与验证；所有高危操作（如暴力破解、漏洞利用）均需用户实时确认，且严格遵循预设目标范围。项目采用 AGPL-3.0 开源协议，支持本地或远程 LLM 接入，强调可审计性、可控性与合规性，适用于 PCI DSS 分段测试、内部红蓝对抗及自动化安全评估等需人机协同决策的实战场景。",2,"2026-11-24 04:34:51","CREATED_QUERY"]