NYCPHP Meetup

NYPHP.org

[nycphp-talk] Is this possible in PHP?

Hans Zaunere hans at nyphp.org
Wed Apr 30 16:38:25 EDT 2003


--- Jon Baer <jonbaer at jonbaer.net> wrote:
> Im trying to attempt something simple and already have a proto in Java for
> scanning Snort logs and then sending a DHCPRELEASE to a DHCP server but Id
> like to know if it's possible to create a simple app that could be cron'd
> to
> do the same thing ... Id like to build some analysis tools around it that's
> why ...

Yeah, although perhaps not very nicely.  It escapes me exactly what layer
DHCP operates at (it must be frame/link layer right?).  If this is the case,
then you'll have problems; PHP doesn't like binary, and it doesn't like raw
sockets; although, you could use libnet
(http://www.packetfactory.net/libnet/) maybe.  If all you need are TCP or UDP
packets, then you're golden; just use the socket extension, which while
called experimental, has worked well enough for me.

H

> 
> - Jon
> 
> 
> 
> --- Unsubscribe at http://nyphp.org/list/ ---
> 
> 




More information about the talk mailing list