Posts

Showing posts from June, 2013

NS2 Code for Blackhole Attack (multiple blackholes) in AODV Protocol

Image
Workshop on Cyber Security and Forensics (16th to 20th August 2016) http://svecw.edu.in/docs/CSEFDPCS.pdf   Workshop on Big Data Analytics (2nd to 6th August 2016) http://svecw.edu.in/docs/CSEFDPBigDataAnalytics2016.pdf The following scenario consists of 25 nodes, in which 1,7 and 13 nodes are blackholenodes and other nodes are non-malicious.           To create multiple blackhole   attackers in AODV protocol     i)              In aodv.h the following blue colour lines needs to be added to define balckhole attackers      /*        * History management        */      double                PerHopTime(aodv_rt_entry *rt); nsaddr_t malicious1; nsaddr_t malicious2; nsaddr_t malicious3;     ii)             In   aodv.cc the following blue colour lines needs to be added to initialize the attackers   int AODV::command(intargc, const char*const* argv) { if(argc == 2) { Tcl&tcl = Tcl::instance(); if(strncasecmp(argv[1]