Thanks for query,
As you said hemorrhoid
but it is fistula in ano.where there is bump at opening of anus and while bursting plenty of pus coming out,afterward pain and bump will subside.
In fistula again after some time collection of pus and bump will re appear.
Consult surgeon and get examined.
Ok and bye.