Use Of Human Faeces In Treatment Of Diarrhoea
The same ruling is for the case you mentioned. Filth too is not allowed unless it is inevitable ( iztiraar). However if it is altered such a way that it is no more stool, like only bacteria is extracted, it will be allowed being a different product which has nothing objectionable.