Layer 2 socket connection

richmoore44 at gmail.com richmoore44 at gmail.com
Thu Aug 16 08:03:41 EDT 2007


On Aug 15, 7:21 pm, alisonken1 <alisonk... at gmail.com> wrote:
> Hello all -
>
> I'm looking at trying to write a python script to connect to a layer 2
> bridge (no IP available).
>
> Looking at the sockets function, it's not clear if I can connect using
> only the mac address - it appears to want either a broadcast address
> or a specific IP address.
>
> Can anyone give me a clue on opening a layer 2 socket in Python?

I use impacket for stuff like that, see http://oss.coresecurity.com/projects/impacket.html

Cheers

Rich.




More information about the Python-list mailing list