Skip to content

Commit 1a216ec

Browse files
carlospolopgitbook-bot
authored andcommitted
GitBook: [master] one page modified
1 parent 5d5023a commit 1a216ec

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

linux-unix/privilege-escalation/README.md

+16
Original file line numberDiff line numberDiff line change
@@ -286,6 +286,22 @@ Typically, `/dev/mem` is only readable by **root** and **kmem** group.
286286
strings /dev/mem -n10 | grep -i PASS
287287
```
288288

289+
#### osxpmem
290+
291+
In order to dump the memory in a MacOS machine you can use [**osxpmem**](https://github.com/google/rekall/releases/download/v1.5.1/osxpmem-2.1.post4.zip).
292+
293+
```bash
294+
sudo osxpmem.app/osxpmem --format raw -o /tmp/dump_mem
295+
```
296+
297+
If you find this error: `osxpmem.app/MacPmem.kext failed to load - (libkern/kext) authentication failure (file ownership/permissions); check the system/kernel logs for errors or try kextutil(8)` You can fix it doing:
298+
299+
```bash
300+
sudo cp -r osxpmem.app/MacPmem.kext "/tmp/"
301+
sudo kextutil "/tmp/MacPmem.kext"
302+
sudo osxpmem.app/osxpmem --format raw -o /tmp/dump_mem
303+
```
304+
289305
#### Tools
290306

291307
To dump a process memory you could use:

0 commit comments

Comments
 (0)