LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   grayhole attack in ns2 using aodv protocol (https://www.linuxquestions.org/questions/linux-newbie-8/grayhole-attack-in-ns2-using-aodv-protocol-4175534857/)

absharma 02-23-2015 07:39 AM

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)

knudfl 02-24-2015 12:47 PM

Welcome to LQ.

`gray.tclŽ : Unknown file.
Please attach the file as gray.tcl.txt

* Attachments : The paper clip tool in the 'Advanced Editor'.

alexa999 04-06-2015 07:55 AM

hii excuse me, please help me haow to implement idsaodv with grayholeaodv in ns2?

knudfl 04-06-2015 12:22 PM

Post #3, @alexa999 : Welcome to LQ.

idsAODV info https://groups.google.com/forum/?fro...aodv|sort:date

grayholeAODV info
. http://www.dokurer.net/files/others/
. http://www.dcs.warwick.ac.uk/~adhoc1/malicious.html


New patches :

grayholeaodv_ns235.patch
https://drive.google.com/file/d/0B7S...ew?usp=sharing

idsAODV_ns235.patch
https://drive.google.com/file/d/0B7S...ew?usp=sharing

grayholeaodv-for-idsAODV-patched_ns235.patch
https://drive.google.com/file/d/0B7S...ew?usp=sharing


-

alexa999 04-20-2015 04:26 AM

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

knudfl 04-20-2015 05:22 AM

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


-

alexa999 04-20-2015 07:31 AM

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#

knudfl 04-20-2015 07:43 AM

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'.

-

alexa999 04-21-2015 05:22 AM

grayhole
 
1 Attachment(s)
thanks knudfl this the sample21 as txt. please correction this sample21.tcl.txt

knudfl 04-21-2015 06:48 AM

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


alexa999 05-04-2015 03:39 AM

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?

knudfl 05-04-2015 07:44 AM

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.

-

alexa999 05-05-2015 07:28 AM

thank you knudfl
i'm also questions about, how to implement wormhole attack in aodv with secure ids aodv?

knudfl 05-05-2015 08:38 AM

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.)


-

davidnursaputro 05-07-2015 10:08 AM

sorry sir knudfl byzantine attack include wormhole attack or rushing attack thanks before


All times are GMT -5. The time now is 03:27 AM.