LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
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 05-24-2014, 05:11 AM   #16
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

# 15 .

""how to convert (blackholeaodv.tcl) to simulation file "".

Why would you do that ?
Is there anything in that file that can be used for simulation ?

You already have several examples → →
Latest "blackhole examples" update : blackholeaodv2005-examples-1.tar.gz
https://drive.google.com/file/d/0B7S...it?usp=sharing

-
 
Click here to see the post LQ members have rated as the most helpful post in this thread.
Old 05-24-2014, 05:18 AM   #17
hd_uni_pro
Member
 
Registered: Mar 2014
Posts: 31

Rep: Reputation: Disabled
I found a lots of example
But all are one and does not work
 
Old 05-24-2014, 05:47 AM   #18
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
# 17 .

Examples found on the Internet :
Do not expect any of them to work without editing.
That's why we have the tested (edited) examples in blackholeaodv2005-examples-1.tar.gz.

May be you should start from scratch building an ns2 for blackholeaodv ?
* You can have as many versions of ns-allinone-2.xx as you want,
installed at the same time. But do not add any *PATH text to .bashrc →
Not required when it's your computer and you have write access to /usr/.
I.e. you can copy the executable 'ns-<name>' to /usr/local/bin/.

Which OS are you using now ?
a) $ uname -m
b) OS name and version.

Latest blackhole patches :
blackholeaodv2013-ns235_1.patch https://drive.google.com/file/d/0B7S...it?usp=sharing
blackholeaodv2013-ns234_4.patch https://drive.google.com/file/d/0B7S...it?usp=sharing
Blackhole.patch `mohittahiliani´ http://mohittahiliani.blogspot.in/20...k-in-ns-2.html
→ The Blackhole.patch works with http://www.mediafire.com/view/0f40bf.../blackhole.tcl only,
but it should be easy to write new tcl scripts for this Mohit Tahiliani version.

-
 
1 members found this post helpful.
Old 05-24-2014, 11:06 PM   #19
hd_uni_pro
Member
 
Registered: Mar 2014
Posts: 31

Rep: Reputation: Disabled
thank you sir
download and run it . i told you problem's

Last edited by hd_uni_pro; 05-25-2014 at 01:30 AM.
 
Old 05-25-2014, 03:40 AM   #20
hd_uni_pro
Member
 
Registered: Mar 2014
Posts: 31

Rep: Reputation: Disabled
Red face upload me setting files

Quote:
Originally Posted by knudfl View Post
# 15 .

""how to convert (blackholeaodv.tcl) to simulation file "".

Why would you do that ?
Is there anything in that file that can be used for simulation ?

You already have several examples → →
Latest "blackhole examples" update : blackholeaodv2005-examples-1.tar.gz
https://drive.google.com/file/d/0B7S...it?usp=sharing

-
hello
i install ns-2.29 in to windowsxp--->cygwin

i download folder and run any of files in folder :
file atk3.tcl display error :

http://www.uplooder.net/img/image/68...a582e/atk3.JPG

i met this error .but i do'nt know how solution problem do you know!?

http://www.uplooder.net/img/image/11...5538/wrong.JPG

Also say:
I have a series of settings in makefile and ns-lib and aodv.cc and aodv.h but Not resolved(define blackhole).

and for these file's :
blackhole20-1-vbr and blackhole20-1 code's
run but The survey found :These files have just the label Black Hole and do not work blackhole attack.
and for file :
blackholeaodv-btechnos.tcl

http://www.uplooder.net/img/image/4/...c/btechnos.JPG

and file:blackholeAODV-DevangPatel.tcl

http://www.uplooder.net/img/image/57...14e/devang.JPG

and file :sim1forBlackHole_5.tcl

http://www.uplooder.net/img/image/96...f1e3b/sim1.JPG

and file :test1-nadiui.tcl and testblack-1.tcl

http://www.uplooder.net/img/image/22...c584/other.JPG

please upload or tell me method for setting blackhole attacks for each file ,tcl file's not enough for run's

and This is my last word:
how solution this error :

http://www.uplooder.net/img/image/72...5cc7/wrong.JPG

thank you sir

Last edited by hd_uni_pro; 05-25-2014 at 04:41 AM.
 
Old 05-25-2014, 03:48 AM   #21
hd_uni_pro
Member
 
Registered: Mar 2014
Posts: 31

Rep: Reputation: Disabled
survey

Quote:
Originally Posted by knudfl View Post
# 17 .

Examples found on the Internet :
Do not expect any of them to work without editing.
That's why we have the tested (edited) examples in blackholeaodv2005-examples-1.tar.gz.

May be you should start from scratch building an ns2 for blackholeaodv ?
* You can have as many versions of ns-allinone-2.xx as you want,
installed at the same time. But do not add any *PATH text to .bashrc →
Not required when it's your computer and you have write access to /usr/.
I.e. you can copy the executable 'ns-<name>' to /usr/local/bin/.

Which OS are you using now ?
a) $ uname -m
b) OS name and version.

Latest blackhole patches :
blackholeaodv2013-ns235_1.patch https://drive.google.com/file/d/0B7S...it?usp=sharing
blackholeaodv2013-ns234_4.patch https://drive.google.com/file/d/0B7S...it?usp=sharing
Blackhole.patch `mohittahiliani´ http://mohittahiliani.blogspot.in/20...k-in-ns-2.html
→ The Blackhole.patch works with http://www.mediafire.com/view/0f40bf.../blackhole.tcl only,
but it should be easy to write new tcl scripts for this Mohit Tahiliani version.

-
i survey and told you !
 
Old 05-25-2014, 11:44 AM   #22
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
# 20 .

Why not build ns-allinone-2.34 and ns-allinone-2.35 too ?
The patches are for those two versions.

The output texts and the output files are listed
in the attached "all-examples2005__output.txt".
-
Attached Files
File Type: txt all-examples2005__output.txt (6.5 KB, 40 views)
 
Old 05-26-2014, 03:45 AM   #23
hd_uni_pro
Member
 
Registered: Mar 2014
Posts: 31

Rep: Reputation: Disabled
ok -download-install

Quote:
Originally Posted by knudfl View Post
# 20 .

Why not build ns-allinone-2.34 and ns-allinone-2.35 too ?
The patches are for those two versions.

The output texts and the output files are listed
in the attached "all-examples2005__output.txt".
-
ok i download ns2.35 and install and run tcl code.please introduce site for install ns-2.35 on windows xp
I hope to answer
I announced you.

Last edited by hd_uni_pro; 05-26-2014 at 06:21 AM.
 
Old 05-28-2014, 06:37 AM   #24
hd_uni_pro
Member
 
Registered: Mar 2014
Posts: 31

Rep: Reputation: Disabled
hello sir i download ns2.35 and install by this method :
install ns 2.pdf - 939 KB
and other method .
but when run file atk3.tcl and etc. display error :
http://www.uplooder.net/img/image/99...9/untitled.JPG

and file blackhole20-1.tcl:
http://www.uplooder.net/img/image/36...0/untitled.JPG
please tell me how install ns-2.35 !?
and how solution error ?

Last edited by hd_uni_pro; 05-28-2014 at 06:45 AM.
 
Old 05-29-2014, 01:01 AM   #25
hd_uni_pro
Member
 
Registered: Mar 2014
Posts: 31

Rep: Reputation: Disabled
i waiting
 
Old 05-29-2014, 03:51 AM   #26
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
# 24 .

Which compilers have you got ? GCC version, please.

Building ns2 :
Start with the creation of the new folders (a,b,c) for multiple ns2 :
/home/name/{ a/, b/ ,c/ }

Build examples : 1.
$ cd a/
$ tar xvf ns-allinone-2.34.tar.gz
$ cd ns-allinone-2.34/
$ tar xvf blackhole2013-ns234-patch.tar.gz
https://drive.google.com/file/d/0B7S...it?usp=sharing
$ ./install
$ cd ns-2.34/
$ cp ns ns234-blackholeaodv2013
# cp ns234-blackhole2013 /usr/local/bin/
......... Simulation : $ ns234-blackhole2013 atk3.tcl


2.
$ cd b/
$ tar xvf ns-allinone-2.35.tar.gz
$ cd ns-allinone-2.35/
$ patch -p0 < blackholeaodv2013-ns235_1.patch
$ ./install
$ cd ns-2.35/
$ cp ns ns235-blackholeaodv2013
# cp ns235-blackhole2013 /usr/local/bin/

** Why not set up a genuine Linux OS ?
In a spare hard disk // a spare partition, or VirtualBox.
I.e. not much help you can get with Cygwin. ( I never use Windows©.)

Remark : Do not quote entire posts. A one word reference will do.

-
 
1 members found this post helpful.
Old 05-31-2014, 12:15 AM   #27
hd_uni_pro
Member
 
Registered: Mar 2014
Posts: 31

Rep: Reputation: Disabled
Quote:
Originally Posted by knudfl View Post
# 24 .

Which compilers have you got ? GCC version, please.

-
i install cygwin -2.416
version gcc :
http://www.uplooder.net/img/image/25...f/untitled.JPG

and how to install linux uboutu 12.04 and ns-2.34!?

Last edited by hd_uni_pro; 05-31-2014 at 05:06 AM.
 
Old 05-31-2014, 06:58 AM   #28
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
# 27 .

The cygwin gcc-3.3.1 : Might be too old for ns-2.3x .
Later gcc's ftp://ftp.mirrorservice.org/sites/so...6/release/gcc/
g++ ftp://ftp.mirrorservice.org/sites/so...e/gcc/gcc-g++/
( gcc/g++ version 4.5.3 should do for ns-2.35 ).


Getting the 32bits Ubuntu 12.04.4 http://releases.ubuntu.com/12.04/
→ ubuntu-12.04.4-desktop-i386.iso →
http://releases.ubuntu.com/12.04/ubu...sktop-i386.iso
→ → Burn `ubuntu-12.04.4-desktop-i386.iso´ as an image, to DVD.

Install ns-2.34 : See post #26.
For Ubuntu 12.04, the build command is : $ export CC=gcc41 CXX=g++41
Getting gcc41,g++41 , post #18 here :
http://www.linuxquestions.org/questi...022/page2.html

-

Last edited by knudfl; 05-31-2014 at 07:01 AM.
 
1 members found this post helpful.
Old 06-01-2014, 02:31 AM   #29
hd_uni_pro
Member
 
Registered: Mar 2014
Posts: 31

Rep: Reputation: Disabled
in #27
i download :
gcc-4.8.3-1-src.tar.xz
and
gcc-g++-4.8.3-1.tar.xz
how to install and configure in cygwin or linux ?
 
Old 06-01-2014, 04:44 AM   #30
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
# 29 .

"gcc-4.8.3" : Not usable for any ns2 version.
And : You will not be able to build "gcc-4.8.3" on that old Cygwin version.

Linux : Do not build any gcc. The default gcc packages will do.
 
1 members found this post helpful.
  


Reply

Tags
blackhole, blackholeaodv, 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
Make-3.82 error:Makefile:282:error: mixed implicit and normal rules Ramanc51 Linux - Newbie 5 06-08-2011 07:55 AM
error recompiling php BCarey Slackware 4 03-01-2008 06:56 PM
error in recompiling the code ravindra1103 Linux - Kernel 1 04-06-2007 04:35 AM
Lilo error after recompiling xp1o1d5 Linux - General 12 07-26-2006 10:50 AM

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

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