> For the complete documentation index, see [llms.txt](https://notes.nomanaziz.me/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://notes.nomanaziz.me/cybersecurity/blue-teaming/digital-forensics-and-incidence-response/memory-acquisition-with-lime.md).

# Memory Acquisition with LIME

### Memory Acquisition

Aka Memory Dump is process of dumping RAM from specific systems to disk for purpose of analysis

***

### LIME

* It is a Loadable Kernel Module (LKM) used for acquisition of volatile memory from **Linux** and linux based devices like **Android**
* It supports exporting memory dump either to file system of device or over the network
* Since it is a LKM, it needs to be compiled on the system which has same kernel version with of the infected system on which you want to dump memory and then it can be transfered to the infected machine

***

### Prerequisites to install

1. gcc
2. cmake
3. build-essential

***

### Steps to install

Goto `src` directory and `make`

***

### Steps to Run

`insmod ./lime-<kernel-version>.ko "path=/root/dump.mem format=raw"`

* Path is where to store the dump
* format raw means that this will be compatible with other forensic tools with Memory Forensice with Volatility
* **Size of the dump will be will same as RAM i.e 8GB Ram = 8GB Dump**

***
