Wireless sensor and ad-hoc networks are widely used networks for data sharing and transmission. They are cheap and easy to install and configure with some basic disadvantages, such as intrusion and routing attacks. This paper concentrates on the routing security of the ad-hoc networks. A very common attack in wireless sensor networks is the vampire attack. Vampire attacks sap the network of its energy by routing a packet of data in a longer path along the network, energy from each node. An ad-hoc network is as good as the energy of its node's, hence if the nodes' energy is drained it affects the overall performance of the network.