Skip site navigation (1)Skip section navigation (2)
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>

index | next in thread | raw e-mail

Hi,

I’ve got a problem with the packet injection. I’ve tried to send a packet by
the means of the nemesis suite. Everything works fine since I type the
command

“nemesis udp …”

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: “/dev/bpf0: Permission denied” !



sprintf(device, "/dev/bpf%d", i);

fd = open(device, O_RDWR);



Gives  fd = -1.



Can anybody help me?

Serena


home | help

Want to link to this message? Use this
URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?b2ecfd381003100651s774dd6dcy63c69008088ca826>