趁人之危

To take advantage of somebody's trouble.