# AVML dump to SMB / AWS

**Scenario**

You have a potentially compromised Linux EC2 instance sitting inside an Amazon VPC. You cannot expose the VPC to the greater internet for acquisition. You need to acquire the memory on the Linux EC2 host. You do not know what operating system or kernel is running on it.

1. Setup secure Windows SMB destination host &#x20;
2. Setup inbound RDP and SMB security group rules on Windows destination host &#x20;
3. Create shared folder with read/write for specific user (pick a user) &#x20;
4. Determine whether smbclient or cifs-utils is installed on EC2 instance &#x20;
5. Download AVML onto Linux host &#x20;

```
$ sudo mount -t cifs -o user=administrator \\\\windowsIP\\sharename /mnt/point  
$ wget https://github.com/microsoft/avml/releases/download/v0.2.0/avml
$ chmod +x avml  
$ sudo ./avml /mnt/point/EC2memdump.mem  
or  
$ sudo ./avml EC2memdump.mem && sudo mv EC2memdump.mem /mnt/point/`
```


---

# 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://www.iblue.team/incident-response-1/avml-dump-to-smb-aws.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.
