4 ms·
I just tried getting ChatGPT to interact with a command prompt on my machine. It managed to: 1. Create a directory. 2. Put a text file in it. 3. Try to move
by 13of40 4y ago
I just tried getting ChatGPT to interact with a command prompt on my machine. It managed to:
1. Create a directory.
2. Put a text file in it.
3. Try to move the file into a nonexistent directory.
4. Based on the error message, create the target directory and do the move again.
5. Verify that the move was successful.
Then it stopped running commands and tried to have a conversation with me.
It's probably only a matter of time before someone tunes it to be HackGPT and points a thousand of them at the internet, so yeah, I guess it's time to start freaking out.
- vezycash 4y agoHow did you do this?
- 13of40 4y agoI told it "Here is a shell prompt, try running a command..." then copied its command into the shell, copied the output back into ChatGPT, with the prompt "Here's the output, try another" and so on.
- singularity2001 4y agoI did the same yesterday. don't forget to add the following to the prompt: "for dangerous commands, such as `rm` emit a "danger!" warning. if such a warning occurs, I insert a confirmation dialogue. Next: parse and compile the code and language in ```language blocks ```
- thornewolf 4y agoIf you are interested in doing this in an automated fashion, see my GitHub repo. It uses telegram as a frontend for gpt executing code on the backend. https://github.com/thornewolf/gpt-3-execution https://github.com/thornewolf/gpt-3-execution
- lgas 4y agoI haven't tried this with recent versions, but this was great fun early on: https://github.com/f/awesome-chatgpt-prompts#act-as-an-ai-trying-to-escape-the-box https://github.com/f/awesome-chatgpt-prompts#act-as-an-ai-tr...