Ignore all these comments. Railway rules clearly says if you are unable to purchase ticket and have boarded a train, then you can approach the TTE on board and pay fine along with ask for a ticket. He will provide you.
Genuine reason ho toh koi TTE apko jail ya RPF ke hawale nahi Karega.
Maar khate wohi hain jo pakde Jane pe akad dikhate hain.