# Demo: UPX

Choose a file that contains strings, and run:

* upx -o \<packedFileName> \<fileToPack>
* strings \<fileToPack> | wc
* strings \<packedFileName> | wc

What do you see?

```
$ strings test_malware.exe
# full words and potential error messages

$ upx -o packed test_malware.exe

$ strings packed
# no human-readable strings

$ strings test_malware.exe | wc
700 1978 15062

$ strings packed | wc
659 716 4029
```


---

# 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://wiki.zacheller.dev/exploit-dev-analysis/static-analysis/packed-and-obfuscated-malware/demo-upx.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.
