Date: Wed, 10 Mar 2010 15:51:59 +0100 From: serena zanetta <sz3003@gmail.com> To: freebsd-net@freebsd.org Subject: Permission denied error Message-ID: <b2ecfd381003100651s774dd6dcy63c69008088ca826@mail.gmail.com>
next in thread | raw e-mail | index | archive | help
Hi, I=92ve got a problem with the packet injection. I=92ve tried to send a pack= et by the means of the nemesis suite. Everything works fine since I type the command =93nemesis udp =85=94 on the command line. If I tried to call the same command via the PHP exec() exec("nemesis udp $message_to_send",$response); the nemesis packet injection failed: =93/dev/bpf0: Permission denied=94 ! sprintf(device, "/dev/bpf%d", i); fd =3D open(device, O_RDWR); Gives fd =3D -1. Can anybody help me? Serena
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b2ecfd381003100651s774dd6dcy63c69008088ca826>