These are both examples of trojans. A trojan is something that mimics your login screen in order to get you to attempt to log into a certain website but to really only steal your password. The trojan horse is much easier code to write than remote access trojan, in order to help each other out, hackers often provide the codes on websites to share with other hackers.