Sunday, 2 November 2014


Simple Blackhole attacks

Blackhole Attacks on NS-2


What is blackhole attacks ??
Black-hole attack: malicious node sends a forged RREP packet to a source node that initiates  the route discovery in order to pretend to be a destination node itself or a node of immediate neighbour the destination. Source node will forward all of its data packets to the malicious node; which were intended for the destination.
We will apply a simple blackhole attack in AODV. following the scenario illustration
For apply this attacks, we have to modify file aodv.cc, aodv.h inside the protocol. folowing the pseudocode in c++
Blackhole always say that have the route to be a sink.
else if ((rt && blackhole == 1)) {
    assert(rq> rq_dst == rt> rt_dst);
    sendReverse(rq> rq_src);
    rt> pc_insert(rt0> rt_nexthop);
    rt0> pc_insert(rt> rt_nexthop);
    Packet::free(p);}
Next i will write complete version.

No comments:

Post a Comment