As far as I know, Hookworms lay their eggs on the surface of the anus, which means that if a snake ingests a rat that has hookworms that have recently laid eggs the snake should have a chance to contract the parasite by ingesting the larvae. I am not sure if the larvae can withstand the intestinal juices of a snake but if they can, I am sure they can get hookworms. I remember when I was a little kid, and going into an old house with my mother she told me to be careful because there were tiny worms, I was afraid to breathe!