Mobile ad-hoc Network is a network in which different mobile nodes or devices are present and they wants to communicate with each other using shared wireless medium. In this network all nodes are having their own communication range. During communication each nodes acts as router to forward packets to another node. In MANET there is no centralized administration. So, there is high possibility of different types of attacks on network. Gray hole attack and black hole attack are such attacks.