To shake in one's shoes means to tremble with fear.
1. The businessman shook in his shoes on realizing that the man in front of him was an Income Tax officer who had come to check his audit books.
2. Mahendra shook in his shoes when the examiner approached his desk as he was sure he would be caught cheating.