This was my 406th room of tryhackme... I actually struggled with nano, vi over the reverse shell, in the end, I used vi and then just dd, dd, dd... the entire service file, and then rebuilt it with my reverse shell command... > >> >> >> until the file was done, and that shit worked to preserve permissions and ownership while clearing the entire file... dunno but that always bothers me, and that is how I beat the box this time... Cool setup I like the camera angle... Chef wuz here!
check out this link: github.com/TheR1D/shell_gpt?tab=readme-ov-file#runtime-configuration-file it will take you to the spot in the README about the config file. (~/.config/shell_gpt/.sgptrc) you can set your API key there. Thanks for watching!