Just about any activity can be made exciting and just about any can be made boring. When I'm considering an approach, I don't think is this good or exciting or whatever. I have to think: can I as author make it good or exciting or whatever.
Movie/TV labors under certain constraints. The most difficult is making whatever is happening on the secondary screen--the one the characters are looking at--readable and understandable to the users. The best handling of this I've seen is Halt and Catch Fire. You'll notice it's not the programming that the engaging part, it's the character interaction around the screen that really counts. Probably the worst example is "Unix. I know this!" from Jurassic Park.
Hacking specifically? I can't cite anything. My favorite silliness is War Games with the 40 character screen zooming past on a 300 baud modem. But you know what? It didn't matter. It was Matt Broderick's reactions that sold it.
Doing hacking in prose is both easier and more difficult, but the key is still going to be the situation, the stakes, and the characters. One possible avenue would be social engineering. Follow the character through attempts to talk or trick someone out of a key password. Who needs algorithms when we've got people!