LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 04-01-2013, 02:05 AM   #1
saeed.m
LQ Newbie
 
Registered: Apr 2013
Posts: 17

Rep: Reputation: Disabled
implementing black hole attack simulation in ns2.35


hi
i am trying to implement new agent to simulate black hole attack so i have been apply changes to this files:ns-agent.tcl and Makefile according to some internet learning. after that i issued make command but when i wants to use that agent in my Tcl file the output show me that the agent does not exist.
the output shown in images below:
Click image for larger version

Name:	1.png
Views:	458
Size:	57.2 KB
ID:	12177

Click image for larger version

Name:	2.png
Views:	271
Size:	72.2 KB
ID:	12178
i need help to solve this problem
thanks.
 
Old 04-02-2013, 07:01 AM   #2
subi.kp
LQ Newbie
 
Registered: Jan 2013
Posts: 4

Rep: Reputation: Disabled
Subject: selecting next node for packet forwardiing
I need to change the condition for selecting next hop node for packet
forwarding in AODV for avoiding selfish node.
so plz help me by providing where the editing have to be done
urgent plz
thx in advance
 
Old 04-02-2013, 11:55 AM   #3
saeed.m
LQ Newbie
 
Registered: Apr 2013
Posts: 17

Original Poster
Rep: Reputation: Disabled
go to the ns-2.35/aodv directory
and copy all files except the *.obj files after that i thing your change must be applied to aodv.cc and then change the Makefile.in and use ./configure then make commands
 
Old 04-02-2013, 12:22 PM   #4
subi.kp
LQ Newbie
 
Registered: Jan 2013
Posts: 4

Rep: Reputation: Disabled
actually i need to know the fuction which select the next hop node for forwarding packet
 
Old 04-03-2013, 12:22 AM   #5
saeed.m
LQ Newbie
 
Registered: Apr 2013
Posts: 17

Original Poster
Rep: Reputation: Disabled
i thing it maybe the recv function you must be edit
 
Old 04-03-2013, 02:10 AM   #6
subi.kp
LQ Newbie
 
Registered: Jan 2013
Posts: 4

Rep: Reputation: Disabled
hey i dont know wer the next path got select
 
Old 10-31-2013, 11:03 AM   #7
fotohireza
LQ Newbie
 
Registered: Sep 2013
Posts: 2

Rep: Reputation: 0
hi dear,,
you done mistake black hole simulation.
write agent black hole following like:
Agent/Black hole

Last edited by fotohireza; 10-31-2013 at 11:05 AM.
 
Old 04-17-2015, 05:54 AM   #8
michaelmanyanga
LQ Newbie
 
Registered: Feb 2015
Posts: 4

Rep: Reputation: Disabled
prevention of blackholeaodv using idsaodv

i have created blackhole attack by the patch provided by Mohit P Tahiliancan , i do have the patch for idsaodv, can i have a tcl cript for this patch idsAODV-for-M-blackholeaodv_ns235.patch
 
Old 04-17-2015, 06:54 AM   #9
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 #8, @michaelmanyanga.

The Mohit Tahiliani 'blackhole.tcl' http://mohittahiliani.blogspot.in/20...k-in-ns-2.html
Code:
$ grep -n hack blackhole.tcl
127:$ns at 0.0 "[$n5 set ragent_] hacker"

The idsAODV simulation script, idsaodv2.tcl http://www.linuxquestions.org/questi...-4175539244/#2
Code:
$ grep -n black idsaodv2.tcl
59:$ns_ node-config        -adhocRouting blackholeAODV
63:      $ns_ at 0.01 "$node_($i) label \"blackhole node\""
.. I guess you can edit idsaodv2.tcl :
.. To use the "hacker line", instead of the "blackhole lines".
** Please use 'ns_' instead of 'ns' in idsaodv2.tcl, like :
$ns_ at 0.0 "[$n5 set ragent_] hacker"


-

Last edited by knudfl; 04-17-2015 at 07:05 AM.
 
Old 04-20-2015, 09:05 AM   #10
michaelmanyanga
LQ Newbie
 
Registered: Feb 2015
Posts: 4

Rep: Reputation: Disabled
for blackhole.tcl created by Mohit Tahiliani ' i added this code ns at 0.0 "[$n5 set ragent_] hacker" for blackhole attack to take effect and its working fine,

which code to add for ids to take effect in tht blackhole attack code

---------- Post added 04-20-15 at 09:06 AM ----------

@knudfl
for blackhole.tcl created by Mohit Tahiliani ' i added this code ns at 0.0 "[$n5 set ragent_] hacker" for blackhole attack to take effect and its working fine,

which code to add for ids to take effect in tht blackhole attack code
 
Old 04-20-2015, 10:41 AM   #11
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 #10.
Quote:
which code to add for ids to take effect in the blackhole attack code
See post #9 about idsaodv2.tcl :
* Change this
$ns_ node-config -adhocRouting blackholeAODV
$ns_ at 0.01 "$node_($i) label \"blackhole node\""

* To this
$ns at 0.0 "[$n5 set ragent_] hacker"


INFO, idsAODV https://groups.google.com/forum/?fro...rs/oznEEorxqJE

-
 
1 members found this post helpful.
Old 12-16-2015, 05:21 AM   #12
Nanakram
LQ Newbie
 
Registered: Dec 2015
Posts: 3

Rep: Reputation: Disabled
please send me complete code for gray hole attack tcl file and how to change in aodv.cc & aodv.h

please send me complete code for gray hole attack tcl file and how to change in aodv.cc & aodv.h
 
Old 12-16-2015, 07:14 AM   #13
rtmistler
Moderator
 
Registered: Mar 2011
Location: USA
Distribution: MINT Debian, Angstrom, SUSE, Ubuntu, Debian
Posts: 9,883
Blog Entries: 13

Rep: Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930Reputation: 4930
Quote:
Originally Posted by Nanakram View Post
please send me complete code for gray hole attack tcl file and how to change in aodv.cc & aodv.h
Don't start duplicate threads, this one isn't because you didn't start it, but you already started two threads asking this same question. Put in effort on your own part, and by the way, read the former posts on this very thread and there are script links cited. I don't know, nor care, how good or bad they are, but if they are good, then you can benefit. Still, you'll need to do some actual work and not just ask people for handouts.

As told in the other threads, read the Welcome To LQ FAQNote that if you persist in these behaviors you'll just end up banned from the site.
 
  


Reply

Tags
blackhole, idsaodv, ns2


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Black hole attack help ramamohanreddypilli Linux - Newbie 13 09-20-2016 06:05 AM
Problem in simulating Black Hole Attack in AODV Protocol through NS2 in FC8 shyan Linux - Newbie 3 02-17-2015 03:21 PM
Implementing black hole node in NS-2.35 ameet Linux - Newbie 0 06-27-2012 06:20 AM
black hole attack in aodv protocol my3ram Linux - Wireless Networking 0 12-29-2011 08:29 PM
NS2 - Experts for Implementing attack krishnaceg Linux - Wireless Networking 2 10-30-2011 08:16 AM

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

All times are GMT -5. The time now is 03:58 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