# Python Shell Agent

Create a personalized agent to use within Control Pack. The created script could include a custom shellcode and be converted into an executable file.

{% embed url="<https://youtu.be/xBmtS8LpEVc?si=slfIMeuD5Xa9qEag>" %}

Deploy a Stage-1 Python agent with a low-footprint terminal shell (\*) plus lifecycle controls (stage2, exit, killagent). Upgrade to Stage-2 to unlock full operator tooling: host/context enumeration (systeminfo, getuid, currentpath), display capture (screenshot), and optional webcam snapshot (webcam). If intercepted early, only the lean Stage-1 footprint is exposed.


---

# 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/python-shell-agent.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.
