Skip to content

User mode layer-2 bridge to capture traffic from mobile devices like iPad, iPhone, Android, etc.

Notifications You must be signed in to change notification settings

kowsik/l2bridge

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

l2bridge

It is a libpcap based user-mode layer2 bridge. You need the latest version of libpcap to compile this.

What do I use this for?

I originally wrote it so I can bridge en1 and en0 on my MacBook to capture iPhone traffic without jail-breaking, installing access points, hubs and other complex setups. You can read more about this on our blog

How do I build this

Just type make and you are done.

And running?

sudo ./l2bridge en1 en0

How does it work?

It capture packets on both en1 and en0 and copies them back and forth. Any packets destined to the interface MAC address (i.e. to the host running l2bridge) are skipped.

What OS does this work on?

Currently just OSX. The only OS dependency is in the HalfPipe::_get_mac method which extracts the MAC address from the interface. Linux has an ioctl(SIOCGIFHWADDR) call that we could use, but haven't done it yet.

License

"THE BEER-WARE LICENSE" (Revision 42):

pcapr wrote this file. As long as you retain this notice you can do whatever you want with this stuff. If we meet some day, and you think this stuff is worth it, you can buy us a beer in return.

http://www.pcapr.net
http://twitter.com/pcapr
http://labs.mudynamics.com

About

User mode layer-2 bridge to capture traffic from mobile devices like iPad, iPhone, Android, etc.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages