Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place! |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
|
02-23-2015, 07:39 AM
|
#1
|
LQ Newbie
Registered: Feb 2015
Posts: 1
Rep: 
|
grayhole attack in ns2 using aodv protocol
i am getting the folowing error while running the tcl script:-
can't read "source1": no such variable
while executing
"set source1"
(file "gray.tcl" line 109)
abhishek@ubuntu:~/Ns2$ ns gray.tcl
num_nodes is set 9
INITIALIZE THE LIST xListHead
can't read "source=1": no such variable
while executing
"set source=1"
(file "gray.tcl" line 109)
|
|
|
02-24-2015, 12:47 PM
|
#2
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
Welcome to LQ.
`gray.tclŽ : Unknown file.
Please attach the file as gray.tcl.txt
* Attachments : The paper clip tool in the 'Advanced Editor'.
|
|
|
04-06-2015, 07:55 AM
|
#3
|
LQ Newbie
Registered: Apr 2015
Posts: 6
Rep: 
|
hii excuse me, please help me haow to implement idsaodv with grayholeaodv in ns2?
|
|
|
04-06-2015, 12:22 PM
|
#4
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
Last edited by knudfl; 04-06-2015 at 12:54 PM.
|
|
|
04-20-2015, 04:26 AM
|
#5
|
LQ Newbie
Registered: Apr 2015
Posts: 6
Rep: 
|
hi knudfl
thank you for grayhole.zip but i'm still learn how to make grayhole and idsaodv, I have problems in making .tcl grayhole and .tcl idsaodv. may I ask grayhole.tcl and idsaodv.tcl ?? please sent in
Last edited by alexa999; 04-20-2015 at 07:19 AM.
|
|
|
04-20-2015, 05:22 AM
|
#6
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
Re #5.
Please delete your email address. To prevent your address getting harvested by spammers.
We already have "Send email to alexa999"
http://www.linuxquestions.org/questi...mber&u=1007257
* Editing post #5 : The 'Edit' button in post #5.
Besides that, all technical discussions are supposed to happen in the Forum`s:
Then all readers can benefit from the solutions.
So generally : We don't use email for information / attachments.
And file attachments too big for this site are uploaded to e.g. 'Google Docs'.
Grayhole : Please read some information :
https://www.google.com/webhp?hl=all&...rayhole+attack
The file idsaodv2.tcl is attached here, '29 March 2015' ...
https://groups.google.com/forum/?fro...E/79QZwlbdecsJ
-
|
|
|
04-20-2015, 07:31 AM
|
#7
|
LQ Newbie
Registered: Apr 2015
Posts: 6
Rep: 
|
thanks knudfl
but i'm have any error when execute this grayhole.tcl. how i do?
root@harlan-VirtualBox:/home/harlan/gray# ns sample21.tcl
num_nodes is set 9
INITIALIZE THE LIST xListHead
can't read "xx(0)": no such variable
while executing
"$node_($i) set X_ $xx($i)"
("for" body line 5)
invoked from within
"for {set i 0} {$i < $val(nn) } { incr i } {
#set xx($i) [expr rand()*$val(x)]
#set yy($i) [expr rand()*$val(y)]
$node_($i) set X_ $xx($i)
$node_($i) ..."
(file "sample21.tcl" line 97)
root@harlan-VirtualBox:/home/harlan/gray#
Last edited by alexa999; 04-20-2015 at 07:33 AM.
|
|
|
04-20-2015, 07:43 AM
|
#8
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
Re #7.
xx is not defined.
The two lines with some settings are commented with a # :
#set xx($i) [expr rand()*$val(x)]
#set yy($i) [expr rand()*$val(y)]
Which turns the settings into "not to be used".
Any questions ? Then please attach sample21.tcl as sample21.tcl.txt .
Attachments : The paper clip tool in the 'Advanced Editor'.
-
Last edited by knudfl; 04-20-2015 at 07:44 AM.
|
|
|
04-21-2015, 05:22 AM
|
#9
|
LQ Newbie
Registered: Apr 2015
Posts: 6
Rep: 
|
grayhole
thanks knudfl this the sample21 as txt. please correction this sample21.tcl.txt
|
|
|
04-21-2015, 06:48 AM
|
#10
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
Re #9.
`sample21.tcl' : You will have to define the "not defined variables".
( Besides un - commenting the xx, yy settings.)
Variable`s not defined :
"count(1)"
"n(1-0)" ?
*** The file is not complete.
http://slogix.in/how-to-create-grayh...ns2/index.html
""Sample Code Segment""
Example "Template" :
Code:
# start with these lines :
set ns [new Simulator]
set nf [open out.nam w]
$ns namtrace-all $nf
proc finish {} {
global ns nf
$ns flush-trace
close $nf
exec nam out.nam &
exit 0
}
#######################
#
# Write all other commands here.
#
#######################
# end with :
$ns at 5.0 "finish"
$ns run
|
|
|
05-04-2015, 03:39 AM
|
#11
|
LQ Newbie
Registered: Apr 2015
Posts: 6
Rep: 
|
thank you knudfl
i'm also questions about, how to implement cooperative network intrussion detection system (CNIDS) in mobile adhoc network based on DSR?
whether ids can be implemented into protocols other than AODV like a idsaodv?
Last edited by alexa999; 05-04-2015 at 03:48 AM.
|
|
|
05-04-2015, 07:44 AM
|
#12
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
Re #11.
As you can read : Google https://www.google.com/webhp?hl=all&...+system+(CNIDS)
... there isn't much info in those 15 hits ....... Sorry.
-
|
|
|
05-05-2015, 07:28 AM
|
#13
|
LQ Newbie
Registered: Apr 2015
Posts: 6
Rep: 
|
thank you knudfl
i'm also questions about, how to implement wormhole attack in aodv with secure ids aodv?
|
|
|
05-05-2015, 08:38 AM
|
#14
|
LQ 5k Club
Registered: Jan 2008
Location: Copenhagen DK
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,519
|
Re #13.
Wormhole attack + idsAODV : May be.
Example wormhole.tcl by @Mellia , post #18 here ..
http://www.linuxquestions.org/questi...714/page2.html
.. And my test : $ ns-byzantine-attack+aodvuu wormhole-Mellia.tcl
.. I.e. the attack module (Byzantine-attack) works OK.
( It was a year ago, I don't even remember that we got {byzantine + aodvuu} to work.)
-
Last edited by knudfl; 05-05-2015 at 08:42 AM.
|
|
|
05-07-2015, 10:08 AM
|
#15
|
LQ Newbie
Registered: May 2015
Posts: 2
Rep: 
|
sorry sir knudfl byzantine attack include wormhole attack or rushing attack thanks before
|
|
|
All times are GMT -5. The time now is 09:57 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|