PowerShell is a great tool for making all your virus needs. You can do almost anything in PowerShell, including making keyloggers. Though it is more practical to make them in VB or C# here is a simple and effective piece of keylogger code:
All those random comments actually do something with I will explain in a minute.
So if you run this in PowerShell it comes up as a PowerShell window, something obvious and suspicious. Also, you can convert it into a .exe file but anti-virus catches those pretty easily.
So I converted the script into base64 and ran a program that decrypts it and runs the code, the random comments add randomness to the base64 encryption. The program looks like this:
So if you convert this into a .exe file currently only 13 of 66 anti-viruses detect it on virus total, so if you load it onto a system with these anti-viruses it probably won’t work. I could probably do better encryption but it’s ok for a small project.
There are currently 13 anti-viruses that detect it a virus, so if your victim doesn’t have one of those your good to go.