From owner-freebsd-net@FreeBSD.ORG Wed Mar 10 15:13:47 2010 Return-Path: Delivered-To: freebsd-net@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2C70F1065676 for ; Wed, 10 Mar 2010 15:13:47 +0000 (UTC) (envelope-from sz3003@gmail.com) Received: from mail-bw0-f216.google.com (mail-bw0-f216.google.com [209.85.218.216]) by mx1.freebsd.org (Postfix) with ESMTP id B558C8FC21 for ; Wed, 10 Mar 2010 15:13:46 +0000 (UTC) Received: by bwz8 with SMTP id 8so4346155bwz.3 for ; Wed, 10 Mar 2010 07:13:45 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:date:message-id:subject :from:to:content-type; bh=1Du9QcJnKQUuUTcTDBE0UBrDCCdX4V5QcCNjBpN9zAA=; b=KWsME6PlneY7Kdlq3NMxTJGQYKQ49FI12MMJX3vCI0QLKu5joLfVLd74WRUd226aTy dRX8h7NbL77iuNgxPsmBo74TsEcaQDkrl266TRVPH1Gzpx1ftVFS7vkj9G2Cn/64oFFW +AfDemibbEGU/YD2iSHl4M48ON7zA0pG+aw+s= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:date:message-id:subject:from:to:content-type; b=P+HH3sJ5nUg2FcCcUJuwE+ceISqFYaeCtxvtsZtqen17ysoKZHGtC9DIt6//5ipIyH 9hnEaG40tRIZ2hDqAUUKQThmv/Ej3HHpUV8MD8/JdB6nXipe46XPnT5tWYUE9sxd8jxP ndnZsJgNnSjycPIGYEPtbVjP2VOkO6kydST0Y= MIME-Version: 1.0 Received: by 10.204.8.141 with SMTP id h13mr1817103bkh.92.1268232719878; Wed, 10 Mar 2010 06:51:59 -0800 (PST) Date: Wed, 10 Mar 2010 15:51:59 +0100 Message-ID: From: serena zanetta To: freebsd-net@freebsd.org Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Content-Filtered-By: Mailman/MimeDel 2.1.5 Subject: Permission denied error X-BeenThere: freebsd-net@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Networking and TCP/IP with FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Mar 2010 15:13:47 -0000 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