"Keylogger" card reader?
So i am very stupid (But not really). And i was wondering these past few days if its possible to make a trojan credit card chip that when you insert the card into the card reader it uploads a program like a keylogger that grabs the credit card info and the pin number while you are typing it. Im still learning to code and im pretty young so im not the absolute genius mastermind that could do this but i just wanted your take on this and also another hypothetical what if you own a store an you reverse engineer the card reader so that it gets all the credit card info and pin number and then actually does its job for the payment. (That was just on my mind and i am unable to figure this out so good luck)