working command structure and advanced llm Integration

This commit is contained in:
venus
2026-07-17 01:09:50 -05:00
parent 58351e1086
commit 70e793c4a3
15 changed files with 248 additions and 34 deletions

View File

@@ -6,7 +6,7 @@ This project serves as a centralized workspace for Capture The Flag (CTF) challe
The primary goal is to use the context of CTF challenges (forensics, crypto, web, etc.) to explore and explain Python concepts, automation, and tooling.
## Core Mandates for Gemini CLI
1. **No Unsolicited Code:** Do NOT write or modify code unless explicitly issued a **Directive** to do so.
1. **No Unsolicited Project Code Modifications:** Do NOT write or modify actual application/project implementation code files (e.g. within `src/` or core scripts) unless explicitly directed to do so. Only update test cases (e.g., in `tests/`) and markdown documentation files.
2. **Focus on Explanation:** Prioritize high-signal explanations of Python mechanics, libraries, and documentation.
3. **Summarization:** When directed, summarize documentation (local or web-based) to aid in understanding CTF tools and Python modules.
4. **Educational Context:** Use the existing scripts and tools in this repository (like `psk_crack.py`, `exploit.sh`, or the `tools/` directory) as examples when explaining technical concepts.
@@ -25,3 +25,20 @@ The primary goal is to use the context of CTF challenges (forensics, crypto, web
- write tests explaining successful passes and failures
- Try to find breaking elements of user code. Find harder cases that will fail on empty inputs, etc.
- Include tests that chain multiple functions together
You are an expert Software Development Engineer in Test (SDET). Your task is to analyze the provided source code and generate a comprehensive, highly robust suite of test cases.
Do not just write "happy path" tests. You must systematically uncover potential failure points, boundary conditions, and state violations.
### Your Analysis Process
Before writing any test code, you must complete the following analysis:
1. **Identify Inputs & Outputs:** Map every input parameter, its expected type/bounds, and all possible return values or side effects.
2. **Determine State Mutability:** Identify if the code modifies internal state, database records, or external systems.
3. **Establish Boundaries:** Identify numeric limits, empty collections, null/undefined values, and string length limits.
4. **Enumerate Error Paths:** List every condition that should throw an exception, return an error code, or trigger a failure handler.
### Output Requirements
For the given code, output the test suite structured as follows:
1. **Test Strategy Summary:** A brief list of the core scenarios being tested (Happy Path, Boundary, Edge Case, Error Handling).
2. **The Test Code:** Written in the target framework/language requested by the user, adhering to industry best practices (e.g., AAA pattern, clean assertions, descriptive test names).
3. **Mocking/Setup Requirements:** Explicitly state what external dependencies (APIs, databases, system clocks) need to be mocked and how.