Evil-GPT
Connected to the target via
nc 10.201.98.229 1337.Got the following prompt after I connected.

I started sending random messages to understand how the bot works.

Sometimes I just didn't understand the way the bot was processing my queries.

I found an
evilai.pyfile in the working directory but couldn't read it's contents, it probably had a role to play in the bot's functioning.I even found a
.ollamafile in the current working directory indicating that maybe the AI model was using ollama to run locally.Next I ran some commands to gain some information on the system.

I tried to view the contents of the
rootdirectory which surprisingly I was able to do.

Here I could see the
flag.txtfile sitting in all it's glory. I tried viewing it using basic prompt injection.

The flag was found! It was that easy.
Last updated