Martin Shkreli has taken a lot of crap for raising the price of the HIV/AIDS drug Daraprim ... and now that's happened literally.

Shkreli was holding court at UC Davis Saturday when a protester hurled dog poop and hit his target ... in the face!!!