Hello and welcome to healthcare forum.
As per your complain it seems that you are having some gastrointestinal infection
and not piles as you also have abdominal pain
which is usually not present alonge with piles. To know the exact microorganism you will require test of stool for culture and sensitivity.
You will also require ultra sonography
Consult your doctor with these reports, so that he can start appropriate treatment for you.
Best wishes for your health.