Hi Siddharth, there are not many hostels in Shimla, i know of one its a guest house which also have dorm, its called Thira and another is Youth hostel in Shimla, however its not really in a very good condition. I have also attached some other options for you.