# One Liners

This is simply a random assortment of useful one line commands that I use frequently.

## Mounting Shared Folders for VMWare

```bash
sudo vmhgfs-fuse .host:/ /mnt/ -o subtype=vmhgfs-fuse,allow_other
```

## Spoofing a Webserver with Socat

Have a xss vulnerability and need a place to make requests to? Sure you could set up a python webserver, but if you simply need to catch requests and display them then socat is a better solution.

```bash
sudo socat TCP-LISTEN:80,reuseaddr,fork -
```


---

# 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.jacobshodd.com/cheat-sheets/security/one-liners.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.
