# RID劫持

```
利用场景：
激活guest修改rid为管理员的
修改低权限用户rid
劫持rid之前普通用户1的rid值
```

![image](https://raw.githubusercontent.com/xiaoy-sec/Pentest_Note/master/img/450.png)

```
使用msf的post/windows/manage/rid_hijack模块
```

![image](https://raw.githubusercontent.com/xiaoy-sec/Pentest_Note/master/img/451.png)

```
运行后可以看到已经变为超管的rid值
```

![image](https://raw.githubusercontent.com/xiaoy-sec/Pentest_Note/master/img/452.png)

```
此时普通用户1登录系统是为超管权限
```


---

# 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://www.heresecurity.wiki/quan-xian-wei-chi/windows/rid-jie-chi.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.
