Blood in stool

I’ve had pain when passing a BM and blood when I wipe for 4 weeks now. What can it be?