Re: libnet and root privileges question

Frédéric Raynal <[email protected]> Wed, 19 Jan 2005 20:56:26 +0100
Newsgroups gmane.comp.security.libnet
Message-ID <[email protected]>
On Wed, Jan 19, 2005 at 03:10:13PM +0100, Bokor Laszlo wrote:
> 
> 
> 
> Dear All,
> 
> my question is for the libnet developers: is there any method to use your
> library without root privileges? We are using libnet only to create
> UDP/IPv6 headers. We are getting out the created headers from the context,
> and writing them into a specialized file, so we don't use any sockets.
> 
> If you know any other library for the mentioned problem, please tell me.
> 
> Hoping your kind help,
> goodzi

With the current libnet version (1.1.*) you need to root rights as
the only output device is either through RAW sockets or link level
sockets.

However, in the "devel" version (libnetng), I have added a PCAP
injection mode, which requires no privilege at all.

Have a look here :
http://www.security-labs.org/libnetng/

Get the last sources and the README.ng file. You can also view the
sample directory.

Regards,

	Fred Raynal