There are two main stages in the proposed system: Firstly includes detection and determining the number of evil paths depending on encoding an input messages by the source node by using the system of linear equations and sent these coded messages to the sink mode along the disjointed-multi-paths of the network. The sink node will construct number of equations from the received coded messages. It can detect number of evil paths depending on the number of inconsistent equations. It can determine which paths are exact evil paths depending on the indices of these inconsistent equations. In the second stage, both the source node and the sink node will deal only with the nodes of the evil path. They will built the source codes for the nodes of the evil path. Depending on these source codes, the sink node can detect number of the evil nodes by using a Boolean operations. Also it can locate the evil nodes according to the source code of the source node and the source code of the sink node.