Airliners are hit by cloud to cloud lightning quite a bit. The components on board in the cockpit are shielded and made to survive lightning strikes. In the manufacturing process they are qualified to be used by being tested on what is a "lightning strike table". It's a big copper table with a big copper canopy. The top canopy is charged up to incredible energy and then it jumps to the lower table in an artificially produced lighting strike. Then they verify the equipment isn't damaged and still works. Pretty cool to watch.
#31