# Control Pack agent's code

Control Pack agents are designed to be easy to configure and come precompiled by default, so you can get started quickly. Both the agent’s source code and the IDE projects are available in the root folder of Control Pack. You’ll also find detailed instructions on how to compile the agents yourself, giving you the flexibility to add your own code or adapt the agent to your specific needs.

***

**Agent Configuration: Custom Values and Presets**

While each agent has its own particularities, there are some standard settings you’ll need to provide. At a minimum, you’ll have to specify the Control Pack server’s current IP address in IPv4 format: This is where the agent will connect back, and the **port number**. These values can be customized to fit your environment, but we recommend starting with the default settings, especially if it’s your first time.

<figure><img src="/files/ucfnCAOZ073XjNu0tC8N" alt=""><figcaption></figcaption></figure>

Beyond these mandatory values, most agents offer additional options that can be selected per agent type. For example, the VBS agent allows you to explore the different options available for that type and then generates a VBS file.

<figure><img src="/files/LJ13Zl9JNv4nbuhYDlDJ" alt=""><figcaption></figcaption></figure>

The Java agent is also configured through the wizard, which will generate a ZIP file. Inside that bundle, you will find at least two files:

1. The precompiled binary of your chosen agent.
2. The configuration file (`config.ep`), which stores all the settings you selected in the wizard.

<figure><img src="/files/Ul1UnP9JY5xBKS8XqGiv" alt=""><figcaption></figcaption></figure>

Even after the agent is compiled, the non-precompiled source code is always accessible in the wizard. This allows you to inspect the agent’s capabilities, understand how it works, and make any modifications you might need.&#x20;

This combination of precompiled binaries and accessible source code ensures that Control Pack is both user-friendly for quick deployment and flexible for advanced customization.


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://exploit-pack.gitbook.io/exploit-pack-manual-pages/control-pack/control-pack-agents-code.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
