how can i implement a blackhole or sybil attack with GPSR in NS2.34

classic Classic list List threaded Threaded
8 messages Options
Reply | Threaded
Open this post in threaded view
|

how can i implement a blackhole or sybil attack with GPSR in NS2.34

MOKHFI
This post has NOT been accepted by the mailing list yet.
This post was updated on .
HELPPPPPPP !!

first, i don't know how i patch ns2.34 to use GPSR and how i implemented it.
second, i should implement an attack like Sybil or Blackhole and prevent it using GPSR in NS2.34.


Thank's for all
Reply | Threaded
Open this post in threaded view
|

Re: how can i implement a blackhole or sybil attack with GPSR in NS2.34

knudfl
This post has NOT been accepted by the mailing list yet.
> @MOKHFI
> GPSR
> Attack module

There are two different gpsr´s for ns2 :

GPSR-hls http://network-simulator-ns-2.7690.n7.nabble.com/GPSR-Patching-td29371.html#a29372

GPSR-KeLiu http://www.linuxquestions.org/questions/linux-software-2/how-to-simulate-gpsr-in-ns2-35-a-4175538084/page4.html
→ post #50.

There is no code for attacks to gpsr, AFAIK.
Reply | Threaded
Open this post in threaded view
|

Re: how can i implement a blackhole or sybil attack with GPSR in NS2.34

MOKHFI
This post has NOT been accepted by the mailing list yet.
This post was updated on .
thank's for halping .... but what is the different between GPSR-hls and GPSR-KeLiu ?? is there a different, witch can i implement to simulate an attack?
Reply | Threaded
Open this post in threaded view
|

Re: how can i implement a blackhole or sybil attack with GPSR in NS2.34

knudfl
This post has NOT been accepted by the mailing list yet.
This post was updated on .
> @MOKHFI
> simulate an attack, gpsr

You can have as many ns-allinone-2.xx as you want, installed at the same time.
But do never add any *PATH text to .bashrc . Not required.
Just add all the executable 'ns' to /usr/local/bin/, with different names.
Example : /usr/local/bin/{ ns235-gpsr-hls, ns235-gpsr-KeLiu, ns-name3, ns-name4 }.

Build setup, example ...
/home/name/ns2/gpsr-hls/ns-allinone-2.35/
/home/name/ns2/gpsr-keliu/ns-allinone-2.35/
etc. etc.

So why not build both GPSR versions for your experiments ?
But nobody have had any luck adding some attack code to gpsr, AFAIK.
Reply | Threaded
Open this post in threaded view
|

Re: how can i implement a blackhole or sybil attack with GPSR in NS2.34

MOKHFI
This post has NOT been accepted by the mailing list yet.
HI ;;;
when i do this :
tar xvf ns-allinone-2.35_gcc482.tar.gz
https://drive.google.com/file/d/0B7S...ew?usp=sharing
cd ns-allinone-2.35/
patch -p0 < gpsr-KeLiu_ns235.patch
./install

i have this error :
/ranvar.cc
tools/ranvar.cc: In member function ‘virtual double GammaRandomVariable::value()’:
tools/ranvar.cc:219:70: error: cannot call constructor ‘GammaRandomVariable::GammaRandomVariable’ directly [-fpermissive]
tools/ranvar.cc:219:70: error:   for a function-style cast, remove the redundant ‘::GammaRandomVariable’ [-fpermissive]
make: *** [tools/ranvar.o] Error 1
Ns make failed!
See http://www.isi.edu/nsnam/ns/ns-problems.html for problems

i don't know what is the problem ? can you help me please

thank's

 
Reply | Threaded
Open this post in threaded view
|

Re: how can i implement a blackhole or sybil attack with GPSR in NS2.34

knudfl
This post has NOT been accepted by the mailing list yet.
> @MOKHFI
> compilation errors

Please specify your OS: Name, version, architecture.

If Ubuntu, then use an earlier g++, e.g. $ sudo apt install g++-4.8
I.e. the Ubuntu gcc versions 5 ... 6 will fail with some ns2 code.

With e.g. gcc 4.8 the build command is :
$ export CC=gcc-4.8 CXX=g++-4.8

-
Reply | Threaded
Open this post in threaded view
|

Re: how can i implement a blackhole or sybil attack with GPSR in NS2.34

MOKHFI
This post has NOT been accepted by the mailing list yet.
> @knudfl
thank's ... finaly i install it , thank's a lot..
is there any attack implemented in an other protocol (i know there is an attack in AODV, but if there is in another protocle geographique)
Thank's
Reply | Threaded
Open this post in threaded view
|

Re: how can i implement a blackhole or sybil attack with GPSR in NS2.34

knudfl
This post has NOT been accepted by the mailing list yet.
This post was updated on .
> @MOKHFI
> ns2, attacks

There is the old "Byzantine attack module" http://ds2.cs.purdue.edu/software/wormhole/wormhole.html
→ → http://ds2.cs.purdue.edu/software/wormhole/attack_module.tar
AODV-UU is required, so it may have something to do with aodv too ?

The "Byzantine attack module" itself is patching mac/{ arp.cc, ll.cc, ll.h } : wormhole peer
Diff´s, Byzantine-attacks-patching.gz

-