How do you know it has a trojan ? Very hard to detect unless you have a good anti-virus and malware program. This video shows the long manual way to remove them but I do suggest you get a decent anti-virus and scan. Also, you must have Malwarebytes Free and possibly Hitman Pro free trial to clean it all out.
https://www.malwarebytes.com/mwb-download/
www.surfright.nl/en/hitmanpro