Finding MD5 collision messages is a important research issue.Since Pro Wang proposes the differential attack algorithm, the algorithm is attracted more and more attention.However, Pro Wang donot give the way how to get difference and differential path.This paper provides the automatic algorithm to construct difference and differential path in MD5.We can not only get Wang’s differential path and sufficient condition, but also better ones.