Lab description


I’m having difficulty understanding what should i do in the course labs, for example, on lab(C++ assisted exploitation), i’m asked to make two programs, one of them is a key logger, I don’t know any other details, even though the key logger idea is simple, but I don’t know if should just make a program that connects to attackers machine or should I use an exploit,
Another one is simple information stealer, and there wasn’t any explanation on how I should do that, should I connect and send to the attacked machine the file name or should I get a remote access and so on.

I wonder if there is a way to understand how I should do the labs, or if I can get an explanation.