I have opened a program from a website, has my MBP been infected with a virus? I have opened a file on https://kickass.so/revenge-s04e14-hdtv-x264-lol-ettv-t10127520.html. I was supposed to click on a torrent file but I clicked on the big DOWNLOAD link.

And I had no idea that  I was not supposed to open a dmg file. Anyway, done is done. I opened it, and there was an install file, I double clicked on it. Then I was not asked to do anything, it just directed me to a website. 

How do I make sure I do not have a virus or spyware? Running AIR'13 Yosemite.
The file name was macfest. The content looks like this:


I also used Sophos Anti-virus and it detected OSX/FkCodec-A in the dmg file that I trashed.
About the website you visited should give you some idea what you downloaded.

Here is Feb. 2015 Whois Record showing the site was banned (closed) by the Authorities.

So what ever you downloaded, get rid of it, it can not be trusted.

http://venturebeat.com/2015/02/09/kickasstorrents-goes-down-after-its-domain-is-seized-but-makes-a-quick-return/

http://kickasstorrents.eu/news/kickasstorrents-is-not-shut-down-kat-ph-domain-seized/



As long you only downloaded the dmg and not installed it your should be fine by just deleting that dmg package.