Permission denied error
serena zanetta
sz3003 at gmail.com
Wed Mar 10 15:13:47 UTC 2010
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
More information about the freebsd-net
mailing list