How zep4yrs/ctf-qiankun works
CTF 乾坤袋 is a browser-side CTF and security-analysis toolbox; the README says inputs are processed locally by default and describes no server API. The main flow is category/search browsing, choosing a tool, supplying text or files, executing an operation, and viewing results. The source index confirms the workbench page composition and sidebar search; README capabilities preserve smart codec, operation chains, tool manuals, and broad tool families. Some runtime wiring is unsampled, so those links are omitted or marked unverified.
Main entry points: Sidebar.tsx Browse & search · app.tsx App routes · WorkbenchPage.tsx Workbench page · WorkArea.tsx Tool workspace
Components 26
Navigation
- App routes
client/src/app.tsx - Tool manual
client/src/pages/ApiDocsPage/ApiDocsPage.tsx
Workbench
- Workbench page
client/src/pages/WorkbenchPage/WorkbenchPage.tsx - Browse & search
client/src/pages/WorkbenchPage/Sidebar.tsx - Search controls
client/src/components/workbench/ToolSearch.tsx - Workbench state
client/src/store/workbench-store.ts - Tool workspace
client/src/pages/WorkbenchPage/WorkArea.tsx - Input & files
client/src/components/workbench/InputPanel.tsx - Results display
client/src/components/workbench/OutputPanel.tsx - Smart codec
client/src/hooks/useSmartCodec.ts - Operation chains
client/src/hooks/useOperationChain.ts - Chain editor
client/src/components/workbench/OperationChain/OperationChainPanel.tsx
Tool Runtime
- Tool catalog
client/src/tools/meta-manifest.ts - Sync execution
client/src/tools/_shared/SimpleTool.tsx - Async execution
client/src/tools/_shared/AsyncTool.tsx - Tool contracts
client/src/tools/types.ts - Binary helpers
client/src/tools/_shared/hexUtils.ts - File input helpers
client/src/tools/_shared/inputUtils.ts - Codec operations
client/src/lib/codecs.ts
Analysis Capabilities
- Encoding tools
client/src/tools/encoding - Crypto tools
client/src/tools/classical-crypto - File analysis
client/src/tools/file-binary - Forensics & OSINT
client/src/tools/forensics - Stego analysis
client/src/tools/stego - PWN & reverse
client/src/tools/pwn-reverse
Other components
- Tool user
Connections 26
- Tool user → App routes: opens app
client/src/app.tsx - App routes → Workbench page: routes to
client/src/app.tsx - App routes → Tool manual: routes to
client/src/app.tsx - Workbench page → Browse & search: renders
client/src/pages/WorkbenchPage/WorkbenchPage.tsx - Workbench page → Tool workspace: renders
client/src/pages/WorkbenchPage/WorkbenchPage.tsx - Browse & search → Tool catalog: filters catalog
- Browse & search → Search controls: uses search
- Tool user → Browse & search: browses tools
- Tool user → Input & files: provides input
- Tool workspace → Input & files: accepts input
- Tool workspace → Results display: shows results
- Tool catalog → Tool contracts: defines entries
client/src/tools/meta-manifest.ts - Sync execution → Tool contracts: uses props
client/src/tools/_shared/SimpleTool.tsx - Async execution → Tool contracts: uses props
client/src/tools/_shared/AsyncTool.tsx - File input helpers → Binary helpers: parses hex
client/src/tools/_shared/inputUtils.ts - PWN & reverse → Binary helpers: uses helpers
client/src/tools/pwn-reverse/asm-disasm/ToolComponent.tsx - Smart codec → Codec operations: uses codecs
- Tool user → Smart codec: encodes or decodes
- Tool user → Operation chains: chains operations
- Operation chains → Chain editor: edits chain
- Tool user → Encoding tools: transforms text
- Tool user → Crypto tools: uses crypto tools
- Tool user → File analysis: analyzes files
- Tool user → Forensics & OSINT: investigates evidence
- Tool user → Stego analysis: analyzes media
- Tool user → PWN & reverse: uses reverse tools