your dog is emanciated, something besides worms is going on here..your vet needs to do a complete blood work up, and in the meantime getting some tubes of nutrical, an easily digestable, high calorie and protein supliment is available at pet and feed stores. i have brought many a puppy back from the brink by adding that to the food.. also powdered milk, honey, fish oil, all can be added to the food..there is muscle that isn't present in his legs, this dog is starving.
...please! Get your baby to a vet. Hopefully you've just rescued him and this is a "Before" pic. Let us know how he is doing, and what the vet's prognosis is. Bless his little doggy soul that he recovers from obvious malnutrition.