LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking
User Name
Password
Linux - Wireless Networking This forum is for the discussion of wireless networking in Linux.

Notices


Reply
  Search this Thread
Old 06-28-2015, 12:37 PM   #1
q0dr1
LQ Newbie
 
Registered: Oct 2014
Posts: 2

Rep: Reputation: Disabled
how to implementing black hole attack simulation on routing protocol AOMDV ns 2.35


hi
i am trying to implement black hole attack in AOMDV so any one know how to changes file aomdv.cc and aomdv.h to make black hole attack in that protocol. i already get how to make on AODV but its not working in AOMDV. please help me, thank you.
 
Old 06-29-2015, 05:26 AM   #2
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
? Did you remember also adding the "blackhole" changes to ...
ns-2.35/tcl/lib/{ ns-agent.tcl, ns-lib.tcl, ns-mobilenode.tcl, ns-packet.tcl } ?

See blackholeaodv2013-ns235_1.patch ...
https://drive.google.com/file/d/0B7S...ew?usp=sharing


-
 
Old 07-01-2015, 01:05 PM   #3
q0dr1
LQ Newbie
 
Registered: Oct 2014
Posts: 2

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
? Did you remember also adding the "blackhole" changes to ...
ns-2.35/tcl/lib/{ ns-agent.tcl, ns-lib.tcl, ns-mobilenode.tcl, ns-packet.tcl } ?

See blackholeaodv2013-ns235_1.patch ...
https://drive.google.com/file/d/0B7S...ew?usp=sharing


-
iam not adding the "blackhole" changes to ...
ns-2.35/tcl/lib/{ ns-agent.tcl, ns-lib.tcl, ns-mobilenode.tcl, ns-packet.tcl }.
i use the blackholeaodv patch by @mohittahiliani. but i dont know how to use in AOMDV.
i just try your patch, but it say :

can't find file to patch at input line 2604
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Naur ns-2.35-orig/common/packet.h ns-2.35/common/packet.h
|--- ns-2.35-orig/common/packet.h 2010-05-10 00:28:41.000000000 +0200
|+++ ns-2.35/common/packet.h 2014-05-13 12:37:11.000000000 +0200
--------------------------
No file to patch. Skipping patch.
3 out of 3 hunks ignored
can't find file to patch at input line 2641
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Naur ns-2.35-orig/Makefile.in ns-2.35/Makefile.in
|--- ns-2.35-orig/Makefile.in 2011-10-23 18:29:54.000000000 +0200
|+++ ns-2.35/Makefile.in 2014-05-13 12:17:49.000000000 +0200
--------------------------
No file to patch. Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 2653
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Naur ns-2.35-orig/queue/priqueue.cc ns-2.35/queue/priqueue.cc
|--- ns-2.35-orig/queue/priqueue.cc 2010-05-10 00:28:41.000000000 +0200
|+++ ns-2.35/queue/priqueue.cc 2014-05-13 12:32:30.000000000 +0200
--------------------------
No file to patch. Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 2665
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Naur ns-2.35-orig/tcl/lib/ns-agent.tcl ns-2.35/tcl/lib/ns-agent.tcl
|--- ns-2.35-orig/tcl/lib/ns-agent.tcl 2009-01-15 07:23:49.000000000 +0100
|+++ ns-2.35/tcl/lib/ns-agent.tcl 2014-05-13 12:17:49.000000000 +0200
--------------------------
No file to patch. Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 2678
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Naur ns-2.35-orig/tcl/lib/ns-lib.tcl ns-2.35/tcl/lib/ns-lib.tcl
|--- ns-2.35-orig/tcl/lib/ns-lib.tcl 2010-05-10 00:28:41.000000000 +0200
|+++ ns-2.35/tcl/lib/ns-lib.tcl 2014-05-13 13:01:01.000000000 +0200
--------------------------
No file to patch. Skipping patch.
2 out of 2 hunks ignored
can't find file to patch at input line 2706
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Naur ns-2.35-orig/tcl/lib/ns-mobilenode.tcl ns-2.35/tcl/lib/ns-mobilenode.tcl
|--- ns-2.35-orig/tcl/lib/ns-mobilenode.tcl 2009-01-15 07:23:49.000000000 +0100
|+++ ns-2.35/tcl/lib/ns-mobilenode.tcl 2014-05-13 12:17:49.000000000 +0200
--------------------------
No file to patch. Skipping patch.
1 out of 1 hunk ignored
can't find file to patch at input line 2724
Perhaps you used the wrong -p or --strip option?
The text leading up to this was:
--------------------------
|diff -Naur ns-2.35-orig/tcl/lib/ns-packet.tcl ns-2.35/tcl/lib/ns-packet.tcl
|--- ns-2.35-orig/tcl/lib/ns-packet.tcl 2011-10-15 00:11:08.000000000 +0200
|+++ ns-2.35/tcl/lib/ns-packet.tcl 2014-05-13 12:17:49.000000000 +0200
--------------------------
No file to patch. Skipping patch.
1 out of 1 hunk ignored
 
Old 07-02-2015, 05:22 AM   #4
knudfl
LQ 5k Club
 
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511

Rep: Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641Reputation: 3641
Re #3.

You are of course not meant to use the patch for "blackhole AODV" for AOMDV.

The idea is that you make similar entries / edits for AOMDV : Read the patch.
 
  


Reply

Tags
ns2



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
implementing black hole attack simulation in ns2.35 saeed.m Linux - Networking 12 12-16-2015 07:14 AM
ns2: implementation of black hole attack in TORA protocol venkatadri Linux - Software 6 09-02-2014 10:21 AM
[SOLVED] How can I implement cooperative black hole attack in AODV protocol? eikhin Linux - Newbie 1 09-18-2013 09:03 AM
black hole attack in aodv protocol my3ram Linux - Wireless Networking 0 12-29-2011 08:29 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking > Linux - Wireless Networking

All times are GMT -5. The time now is 07:43 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration