LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 08-01-2013, 05:17 AM   #1
harvi949
LQ Newbie
 
Registered: Jul 2013
Posts: 3

Rep: Reputation: Disabled
Lightbulb NS2: wormhole attack


hi all
please guide me if it is possible to make cc file for wormhole attack, or we can use awk file only
 
Old 08-01-2013, 09:06 AM   #2
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,633

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by harvi949 View Post
hi all
please guide me if it is possible to make cc file for wormhole attack, or we can use awk file only
No idea what you're talking about. What program(s) are you wanting to use? Version/distro of Linux? ANY details at all???
 
1 members found this post helpful.
Old 08-01-2013, 01:39 PM   #3
John VV
LQ Muse
 
Registered: Aug 2005
Location: A2 area Mi.
Posts: 17,624

Rep: Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651Reputation: 2651
Quote:
please guide me if it is possible to make cc file for wormhole attack, or we can use awk file only
please restate , the above gibberish looks like something an 8 year old might type
 
Old 08-01-2013, 02:08 PM   #4
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
they want to attack someones network by pushing captured packets to a remote network and replaying them so they think they are true neighbours and get them to route through the wormhole.
Bad route, so poor performance, and also bad as attacker has many more packets to sniff.

poorly worded version of this :
http://www.wings.cs.sunysb.edu/~ritesh/wormhole.html
 
Old 08-01-2013, 02:13 PM   #5
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,633

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by Firerat View Post
they want to attack someones network by pushing captured packets to a remote network and replaying them so they think they are true neighbours and get them to route through the wormhole. Bad route, so poor performance, and also bad as attacker has many more packets to sniff.
Maybe, or they could be asking about NS2. Can't tell by what's been posted.
 
Old 08-01-2013, 02:29 PM   #6
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
Quote:
Originally Posted by TB0ne View Post
Maybe, or they could be asking about NS2. Can't tell by what's been posted.
didn't think of that

I suppose I should of, since a script kiddie would just use the awk
 
Old 08-02-2013, 01:06 AM   #7
harvi949
LQ Newbie
 
Registered: Jul 2013
Posts: 3

Original Poster
Rep: Reputation: Disabled
HI
actually im using NS 2.35 in ubuntu...and i want to implement worm hole attack. I know how to implement this scenario in tcl and awk scripts and i want to know whether it is possible to modify or create any CC file for the same.
 
Old 08-02-2013, 01:23 AM   #8
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
Google .. ns2 wormhole ..

The first hit is :
http://web.njit.edu/~crix/software/wormhole.html
> attack_module.tar http://web.njit.edu/~crix/software/attack_module.tar
 
1 members found this post helpful.
Old 04-14-2014, 04:54 AM   #9
smail
LQ Newbie
 
Registered: Apr 2014
Posts: 3

Rep: Reputation: Disabled
Wormhole attack in NS2 using AODV

Hi,
I want to implmeent a wormhole attack (using encapsulation) in NS2. Please, I need your heple.
 
Old 04-14-2014, 10:28 AM   #10
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,633

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by smail View Post
Hi,
I want to implmeent a wormhole attack (using encapsulation) in NS2. Please, I need your heple.
So did you read/understand what was posted here previously?? Check the links, where your question was answered? Do ANY research at all??
 
Old 04-15-2014, 02:13 AM   #11
smail
LQ Newbie
 
Registered: Apr 2014
Posts: 3

Rep: Reputation: Disabled
NS2: wormhole attack

thanks for your answer.
I did follow all the steps. I have donlowded the attack module from : http://web.njit.edu/~crix/software/wormhole.html
So I modified the fils arp.cc, ll.cc and ll.h in /../ns-allinone-2.35/ns-2.35/mac.
then, I did sudo ./configure, sudo make clean, sudo make
But when I execute my script the following error message appears:
ns: _o171 wormhole-peer:
(_o171 cmd line 1)
invoked from within
"_o171 cmd wormhole-peer"
invoked from within
"catch "$self cmd $args" ret"
invoked from within
"if [catch "$self cmd $args" ret] {
set cls [$self info class]
global errorInfo
set savedInfo $errorInfo
error "error when calling class $cls: $args" $..."
(procedure "_o171" line 2)
(SplitObject unknown line 2)
invoked from within
"_o171 wormhole-peer"
Please, I need your help
thanks in advance

Last edited by smail; 04-15-2014 at 02:25 AM.
 
Old 04-15-2014, 03:37 PM   #12
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
The link you gave has

Quote:
...
The module was developed for version 2.27 of ns2. The archive contains a directory with the original ns2 files (orig-ns-2.27) and a directory with the modified files for the attack module (odsbr-ns-2.27).

...
2.27 IS NOT 2.35

Also, there should be no need for sudo !
 
Old 04-16-2014, 02:48 AM   #13
smail
LQ Newbie
 
Registered: Apr 2014
Posts: 3

Rep: Reputation: Disabled
NS2;wormhole attack

but I compared the files of the too versions of ns2(2.27 and 2.35)in mac. there is only one différence in the path and i changed it.
is there any solution to simulate wormhole in ns2.35?
 
Old 04-16-2014, 05:31 AM   #14
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
# 13 .

Why use ns-2.35 ?
All ns-2.27 ... ns-2.34 are easy to build with any 32bits Linux OS.

About "attack_module.tar" from http://web.njit.edu/~crix/software/wormhole.html :
The first thing to do is always to test with the version it was meant for → ns-2.27.
With some of the usual file edits added, it might work :
ns-2.27/common/packet.h
ns-2.27/tcl/lib/{ns-<??>.tcl, ns-packet.tcl, etc.}

-
 
1 members found this post helpful.
Old 04-26-2014, 12:05 PM   #15
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
#11, @smail.

Please attach your "script.tcl" as <name>.tcl.txt

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

-
 
1 members found this post helpful.
  


Reply

Tags
byzantine attack, ns2, rushing attacks, wormhole



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
[SOLVED] simulating blackhole attack and wormhole attack in ns-2 aditijigyasi Linux - Newbie 7 07-04-2016 08:50 AM
code for wormhole attack in MANETs maria_seb Linux - Software 3 10-26-2012 02:42 AM
manet in ns2-wormhole attack(modifying aodv) indumit18 Linux - Software 2 02-02-2012 03:12 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

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