LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Buffer overflow packit terminated (http://www.linuxquestions.org/questions/linux-networking-3/buffer-overflow-packit-terminated-4175433556/)

rose24 10-22-2012 04:29 PM

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

nini09 10-23-2012 03:29 PM

You should specify more parameter on command line, such as destination port.

fatcomp 10-24-2012 02:20 AM

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

Thanks in advance,

nini09 10-24-2012 03:39 PM

What your libnet version? Packit 1.0 requires libnet 1.1.2 or greater.

fatcomp 10-26-2012 06:30 AM

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?

nini09 10-26-2012 03:46 PM

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

fatcomp 11-01-2012 10:20 AM

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

nini09 11-01-2012 03:43 PM

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.


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