|
1 | | -# Agent Development Kit (ADK) |
| 1 | +# KRNL Key Automation Script |
2 | 2 |
|
3 | | -[](LICENSE) |
4 | | -[](https://github.com/google/adk-python/actions/workflows/python-unit-tests.yml) |
5 | | -[](https://www.reddit.com/r/agentdevelopmentkit/) |
6 | | -[](https://deepwiki.com/google/adk-python) |
| 3 | +This Python script automates the process of retrieving KRNL keys and injecting them into the KRNL exploit. |
7 | 4 |
|
8 | | -<html> |
9 | | - <h2 align="center"> |
10 | | - <img src="https://raw.githubusercontent.com/google/adk-python/main/assets/agent-development-kit.png" width="256"/> |
11 | | - </h2> |
12 | | - <h3 align="center"> |
13 | | - An open-source, code-first Python toolkit for building, evaluating, and deploying sophisticated AI agents with flexibility and control. |
14 | | - </h3> |
15 | | - <h3 align="center"> |
16 | | - Important Links: |
17 | | - <a href="https://google.github.io/adk-docs/">Docs</a>, |
18 | | - <a href="https://github.com/google/adk-samples">Samples</a>, |
19 | | - <a href="https://github.com/google/adk-java">Java ADK</a> & |
20 | | - <a href="https://github.com/google/adk-web">ADK Web</a>. |
21 | | - </h3> |
22 | | -</html> |
| 5 | +## Features |
23 | 6 |
|
24 | | -Agent Development Kit (ADK) is a flexible and modular framework for developing and deploying AI agents. While optimized for Gemini and the Google ecosystem, ADK is model-agnostic, deployment-agnostic, and is built for compatibility with other frameworks. ADK was designed to make agent development feel more like software development, to make it easier for developers to create, deploy, and orchestrate agentic architectures that range from simple tasks to complex workflows. |
| 7 | +- **Automatic Key Retrieval**: Automatically navigates to krnl.gg/getkey and retrieves a valid key |
| 8 | +- **Key Validation**: Checks if a provided key matches the correct format |
| 9 | +- **Clipboard Integration**: Automatically copies retrieved keys to clipboard |
| 10 | +- **Automated Injection**: Uses pyautogui to automate the injection process |
25 | 11 |
|
| 12 | +## Installation |
26 | 13 |
|
27 | | ---- |
| 14 | +1. Install Python 3.7+ if you haven't already |
| 15 | +2. Install the required dependencies: |
| 16 | + ```bash |
| 17 | + pip install -r requirements.txt |
| 18 | + ``` |
28 | 19 |
|
29 | | -## ✨ Key Features |
| 20 | +## Usage |
30 | 21 |
|
31 | | -- **Rich Tool Ecosystem**: Utilize pre-built tools, custom functions, |
32 | | - OpenAPI specs, or integrate existing tools to give agents diverse |
33 | | - capabilities, all for tight integration with the Google ecosystem. |
| 22 | +1. Run the script: |
| 23 | + ```bash |
| 24 | + python krnl_automation.py |
| 25 | + ``` |
34 | 26 |
|
35 | | -- **Code-First Development**: Define agent logic, tools, and orchestration |
36 | | - directly in Python for ultimate flexibility, testability, and versioning. |
| 27 | +2. The script will ask if you already have a KRNL key: |
| 28 | + - If you have a valid key, enter it and the script will proceed with injection |
| 29 | + - If you don't have a key or enter an invalid one, the script will automatically retrieve one |
37 | 30 |
|
38 | | -- **Modular Multi-Agent Systems**: Design scalable applications by composing |
39 | | - multiple specialized agents into flexible hierarchies. |
| 31 | +## Important Notes |
40 | 32 |
|
41 | | -- **Deploy Anywhere**: Easily containerize and deploy agents on Cloud Run or |
42 | | - scale seamlessly with Vertex AI Agent Engine. |
| 33 | +- **Coordinate Adjustment**: The `inject_krnl()` function uses hardcoded coordinates (500, 400) and (600, 500) for clicking. You'll need to adjust these coordinates based on your screen resolution and KRNL window position. |
| 34 | +- **Browser Automation**: The script uses Chrome WebDriver to automate the key retrieval process. |
| 35 | +- **Safety**: Make sure KRNL is the active window when the injection process starts. |
43 | 36 |
|
44 | | -## 🤖 Agent2Agent (A2A) Protocol and ADK Integration |
| 37 | +## Dependencies |
45 | 38 |
|
46 | | -For remote agent-to-agent communication, ADK integrates with the |
47 | | -[A2A protocol](https://github.com/google-a2a/A2A/). |
48 | | -See this [example](https://github.com/a2aproject/a2a-samples/tree/main/samples/python/agents) |
49 | | -for how they can work together. |
| 39 | +- `selenium`: Web automation |
| 40 | +- `webdriver-manager`: Chrome driver management |
| 41 | +- `pyautogui`: GUI automation |
| 42 | +- `pyperclip`: Clipboard operations |
50 | 43 |
|
51 | | -## 🚀 Installation |
| 44 | +## Disclaimer |
52 | 45 |
|
53 | | -### Stable Release (Recommended) |
54 | | - |
55 | | -You can install the latest stable version of ADK using `pip`: |
56 | | - |
57 | | -```bash |
58 | | -pip install google-adk |
59 | | -``` |
60 | | - |
61 | | -The release cadence is weekly. |
62 | | - |
63 | | -This version is recommended for most users as it represents the most recent official release. |
64 | | - |
65 | | -### Development Version |
66 | | -Bug fixes and new features are merged into the main branch on GitHub first. If you need access to changes that haven't been included in an official PyPI release yet, you can install directly from the main branch: |
67 | | - |
68 | | -```bash |
69 | | -pip install git+https://github.com/google/adk-python.git@main |
70 | | -``` |
71 | | - |
72 | | -Note: The development version is built directly from the latest code commits. While it includes the newest fixes and features, it may also contain experimental changes or bugs not present in the stable release. Use it primarily for testing upcoming changes or accessing critical fixes before they are officially released. |
73 | | - |
74 | | -## 📚 Documentation |
75 | | - |
76 | | -Explore the full documentation for detailed guides on building, evaluating, and |
77 | | -deploying agents: |
78 | | - |
79 | | -* **[Documentation](https://google.github.io/adk-docs)** |
80 | | - |
81 | | -## 🏁 Feature Highlight |
82 | | - |
83 | | -### Define a single agent: |
84 | | - |
85 | | -```python |
86 | | -from google.adk.agents import Agent |
87 | | -from google.adk.tools import google_search |
88 | | - |
89 | | -root_agent = Agent( |
90 | | - name="search_assistant", |
91 | | - model="gemini-2.0-flash", # Or your preferred Gemini model |
92 | | - instruction="You are a helpful assistant. Answer user questions using Google Search when needed.", |
93 | | - description="An assistant that can search the web.", |
94 | | - tools=[google_search] |
95 | | -) |
96 | | -``` |
97 | | - |
98 | | -### Define a multi-agent system: |
99 | | - |
100 | | -Define a multi-agent system with coordinator agent, greeter agent, and task execution agent. Then ADK engine and the model will guide the agents works together to accomplish the task. |
101 | | - |
102 | | -```python |
103 | | -from google.adk.agents import LlmAgent, BaseAgent |
104 | | - |
105 | | -# Define individual agents |
106 | | -greeter = LlmAgent(name="greeter", model="gemini-2.0-flash", ...) |
107 | | -task_executor = LlmAgent(name="task_executor", model="gemini-2.0-flash", ...) |
108 | | - |
109 | | -# Create parent agent and assign children via sub_agents |
110 | | -coordinator = LlmAgent( |
111 | | - name="Coordinator", |
112 | | - model="gemini-2.0-flash", |
113 | | - description="I coordinate greetings and tasks.", |
114 | | - sub_agents=[ # Assign sub_agents here |
115 | | - greeter, |
116 | | - task_executor |
117 | | - ] |
118 | | -) |
119 | | -``` |
120 | | - |
121 | | -### Development UI |
122 | | - |
123 | | -A built-in development UI to help you test, evaluate, debug, and showcase your agent(s). |
124 | | - |
125 | | -<img src="https://raw.githubusercontent.com/google/adk-python/main/assets/adk-web-dev-ui-function-call.png"/> |
126 | | - |
127 | | -### Evaluate Agents |
128 | | - |
129 | | -```bash |
130 | | -adk eval \ |
131 | | - samples_for_testing/hello_world \ |
132 | | - samples_for_testing/hello_world/hello_world_eval_set_001.evalset.json |
133 | | -``` |
134 | | - |
135 | | -## 🤝 Contributing |
136 | | - |
137 | | -We welcome contributions from the community! Whether it's bug reports, feature requests, documentation improvements, or code contributions, please see our |
138 | | -- [General contribution guideline and flow](https://google.github.io/adk-docs/contributing-guide/). |
139 | | -- Then if you want to contribute code, please read [Code Contributing Guidelines](./CONTRIBUTING.md) to get started. |
140 | | - |
141 | | -## Vibe Coding |
142 | | - |
143 | | -If you are to develop agent via vibe coding the [llms.txt](./llms.txt) and the [llms-full.txt](./llms-full.txt) can be used as context to LLM. While the former one is a summarized one and the later one has the full information in case your LLM has big enough context window. |
144 | | - |
145 | | -## 📄 License |
146 | | - |
147 | | -This project is licensed under the Apache 2.0 License - see the [LICENSE](LICENSE) file for details. |
148 | | - |
149 | | ---- |
150 | | - |
151 | | -*Happy Agent Building!* |
| 46 | +This script is for educational purposes only. Use responsibly and in accordance with applicable terms of service. |
0 commit comments