> 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/post-exploit/protocols/135-msrpc.md).

# 135 - msrpc

<pre><code><strong># msrpc 바인딩
</strong>rpcclient -U '&#x3C;username>' '&#x3C;server-address>'

<strong># 익명 바인딩
</strong>rpcclient -U "" -N '&#x3C;server-address>' 
</code></pre>

연결이 성공되어 명령을 실행할 권한이 있다면 아래와 같은 명령을 통해 다양한 정보 수집 및 원격 실행이 가능합니다.

| 명령               | 결과                 |
| ---------------- | ------------------ |
| querydominfo     | 도메인 정보             |
| querydispinfo    | 도메인 유저 정보          |
| enumdomains      | 사용중인 도메인 목록        |
| srvinfo          | 서버 정보              |
| netshareenumall  | 사용 가능한 모든 쉐어 절대 경로 |
| enumdomusers     | 모든 도메인 사용자 열거      |
| queryuser \<RID> | 특정 사용자에 대한 정보를 제공  |
