# speeds and feeds

## Problem

> There is something on my shop network running at mercury.picoctf.net:16524, but I can't tell what it is. Can you?

## Solution

1. We can use `nc` to connect to the challenge and output the commands to a file: `nc mercury.picoctf.net 16524 > cnc_command.txt`
2. Searching for `What language does a CNC machine use?` finds that the answer is `g-code` Searching for `simulate g-code` finds [NCViewer](https://ncviewer.com/) ([WebGCode](https://nraynaud.github.io/webgcode/) is another option).
3. We can paste in the contents of [cnc\_command.txt](https://github.com/HHousen/PicoCTF-2021/blob/master/Reverse%20Engineering/speeds%20and%20feeds/cnc_command.txt) into the "GCode File" panel and then click "Plot" to view the flag.

### Flag

`picoCTF{num3r1cal_c0ntr0l_1395ffad}`


---

# 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://picoctf2021.haydenhousen.com/reverse-engineering/speeds-and-feeds.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.
