# Python for Exfil

Ever looking to get that juicy excel file with all the client data past the blue team?

```python
import base64
import time

data = open("dummy.xls", 'rb').read()
base64_encoded = base64.b64encode(data).decode('UTF-8')
print ("Encoding your data")
print ("Saving to output.txt")
with open("output.txt", "a") as f:
    print(data, file=f) 
time.sleep(2)
print ("ALL DONE!!")
```


---

# 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://blog.dev4cloud.net/pentesting-and-red-teaming/python-for-exfil.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.
