LinuxQuestions.org
Visit Jeremy's Blog.
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 10-22-2012, 03:29 PM   #1
rose24
LQ Newbie
 
Registered: Oct 2012
Posts: 12

Rep: Reputation: Disabled
Buffer overflow packit terminated


Hello everybody,

Can someone help me fixing this error: I get following error when I use this command, packit d 10.1.1.7, I am using mandriva 2010.2, Any suggestions for solving this problem??

[root@lan23 amr]# packit -d 10.1.1.7
Mode: Packet Injection using device: eth0

TCP header: Src Port: 5445 Dst Port(s): 0 Flag(s): None
Window: 65535
IP header: Src Address: lan15 Dst Address: 10.1.1.7
TTL: 128 ID: 39315 TOS: 0x0 Len: 40

Writing packet(s) (1): .*** buffer overflow detected ***: packit terminated
======= Backtrace: =========
/lib/i686/libc.so.6(__fortify_fail+0x50)[0xb76dd960]
/lib/i686/libc.so.6(+0xeda3a)[0xb76dba3a]
/lib/i686/libc.so.6(+0xed399)[0xb76db399]
packit[0x804d361]
======= Memory map: ========
08048000-08055000 r-xp 00000000 08:05 3718963 /usr/sbin/packit
08055000-08056000 r--p 0000c000 08:05 3718963 /usr/sbin/packit
08056000-08057000 rw-p 0000d000 08:05 3718963 /usr/sbin/packit
09dfe000-09e1f000 rw-p 00000000 00:00 0 [heap]
b753d000-b755a000 r-xp 00000000 08:05 2883641 /lib/libgcc_s-4.4.3.so.1
b755a000-b755b000 rw-p 0001c000 08:05 2883641 /lib/libgcc_s-4.4.3.so.1
b7578000-b7579000 rw-p 00000000 00:00 0
b7579000-b759d000 r-xp 00000000 08:05 2883589 /lib/i686/libm-2.11.1.so
b759d000-b759e000 r--p 00023000 08:05 2883589 /lib/i686/libm-2.11.1.so
b759e000-b759f000 rw-p 00024000 08:05 2883589 /lib/i686/libm-2.11.1.so
b759f000-b75a0000 rw-p 00000000 00:00 0
b75a0000-b75eb000 r-xp 00000000 08:05 3678582 /usr/lib/libnl.so.1.1
b75eb000-b75ee000 rw-p 0004b000 08:05 3678582 /usr/lib/libnl.so.1.1
b75ee000-b7739000 r-xp 00000000 08:05 2887647 /lib/i686/libc-2.11.1.so
b7739000-b773a000 ---p 0014b000 08:05 2887647 /lib/i686/libc-2.11.1.so
b773a000-b773c000 r--p 0014b000 08:05 2887647 /lib/i686/libc-2.11.1.so
b773c000-b773d000 rw-p 0014d000 08:05 2887647 /lib/i686/libc-2.11.1.so
b773d000-b7740000 rw-p 00000000 00:00 0
b7740000-b7757000 r-xp 00000000 08:05 3718962 /usr/lib/libnet.so.1.5.0
b7757000-b7758000 r--p 00016000 08:05 3718962 /usr/lib/libnet.so.1.5.0
b7758000-b7759000 rw-p 00017000 08:05 3718962 /usr/lib/libnet.so.1.5.0
b7759000-b775a000 rw-p 00000000 00:00 0
b775a000-b7793000 r-xp 00000000 08:05 3711462 /usr/lib/libpcap.so.1.1.1
b7793000-b7794000 r--p 00039000 08:05 3711462 /usr/lib/libpcap.so.1.1.1
b7794000-b7795000 rw-p 0003a000 08:05 3711462 /usr/lib/libpcap.so.1.1.1
b77a1000-b77ab000 r-xp 00000000 08:05 2883620 /lib/libnss_files-2.11.1.so
b77ab000-b77ac000 r--p 00009000 08:05 2883620 /lib/libnss_files-2.11.1.so
b77ac000-b77ad000 rw-p 0000a000 08:05 2883620 /lib/libnss_files-2.11.1.so
b77ad000-b77af000 r-xp 00000000 08:05 2887439 /lib/libnss_mdns4_minimal.so.2
b77af000-b77b0000 r--p 00001000 08:05 2887439 /lib/libnss_mdns4_minimal.so.2
b77b0000-b77b1000 rw-p 00002000 08:05 2887439 /lib/libnss_mdns4_minimal.so.2
b77b1000-b77b3000 rw-p 00000000 00:00 0
b77b3000-b77ce000 r-xp 00000000 08:05 2883597 /lib/ld-2.11.1.so
b77ce000-b77cf000 r--p 0001a000 08:05 2883597 /lib/ld-2.11.1.so
b77cf000-b77d0000 rw-p 0001b000 08:05 2883597 /lib/ld-2.11.1.so
bfe09000-bfe1e000 rw-p 00000000 00:00 0 [stack]
ffffe000-fffff000 r-xp 00000000 00:00 0 [vdso]
Aborted
 
Old 10-23-2012, 02:29 PM   #2
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,006

Rep: Reputation: 67
You should specify more parameter on command line, such as destination port.
 
Old 10-24-2012, 01:20 AM   #3
fatcomp
LQ Newbie
 
Registered: Oct 2012
Posts: 6

Rep: Reputation: Disabled
Dear all,
I have the same problem, although I used port option, can anybody help me to solve this problem?

Thanks in advance,
 
Old 10-24-2012, 02:39 PM   #4
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,006

Rep: Reputation: 67
What your libnet version? Packit 1.0 requires libnet 1.1.2 or greater.
 
Old 10-26-2012, 05:30 AM   #5
fatcomp
LQ Newbie
 
Registered: Oct 2012
Posts: 6

Rep: Reputation: Disabled
Thanks for your reply
When I add -c option for example packit -d 10.1.1.10 -c 100, it start sending when finish sending 100 packits the privous error appear. what does mean?why this happen?
How I do know my libnet?
 
Old 10-26-2012, 02:46 PM   #6
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,006

Rep: Reputation: 67
When I add -c option for example packit -d 10.1.1.10 -c 100, it start sending when finish sending 100 packits the privous error appear. what does mean?why this happen?
The packit may have a bug. You can apply the pacth, http://sources.gentoo.org/cgi-bin/vi...ch?view=markup

How I do know my libnet?
Check libnet version: strings $PATH_TO_LIBNET/libnet.a | grep version
 
Old 11-01-2012, 09:20 AM   #7
fatcomp
LQ Newbie
 
Registered: Oct 2012
Posts: 6

Rep: Reputation: Disabled
when I write previous command: strings $PATH_TO_LIBNET/libnet.a | grep version
I get following error : strings: '/libnet.a': No such file
why??
Thanks

---------- Post added 11-01-12 at 09:21 AM ----------

How apply the patch and where?
Thanks
 
Old 11-01-2012, 02:43 PM   #8
nini09
Senior Member
 
Registered: Apr 2009
Posts: 1,006

Rep: Reputation: 67
The PATH_TO_LIBNET mayn't be setup. Normally, the libnet.a should be under /lib directory.

You need download the source code of packit and then apply the patch. And then compilering code, installing and trying it again.
 
  


Reply

Tags
networking


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
Conky on Suse 10.0 - *** buffer overflow detected *** conky terminated Slidex Linux - Software 1 03-17-2006 11:50 AM
What is a buffer overflow Joey.Dale Linux - Security 4 07-12-2004 05:12 PM
Buffer Overflow pymehta Linux - Security 7 02-24-2004 01:19 PM
buffer overflow cxel91a Programming 3 08-14-2003 05:23 PM
Q. What is a buffer overflow? auslew Linux - Security 2 11-08-2002 05:36 AM


All times are GMT -5. The time now is 04:51 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration