From: Rob Biedenharn Date: 2009-12-22T08:25:08+09:00 Subject: Re: promiscuous mode On Dec 21, 2009, at 5:47 PM, Aaron Turner wrote: > On Mon, Dec 21, 2009 at 2:34 PM, Marco Biscetti > wrote: >> i have a wireless card of netgear and i want to make a code in ruby >> that >> set it in a promiscuous mode to read all packet in a lan for catch >> and >> block all wrong packet. (wrong packet according at rule of my boss). >> this program run in ubuntu 9.04 :) >> thank to all :) If you are already running under Ubuntu 9.04, why do you want to write a program to do this at all? Does something like 'iptables' satisfy the 'wrong packet according at rule of my boss'? Ruby is a very high-level language in which to be examining every packet on a LAN. -Rob > > just use: > > system("") > > That's how you'd do it in ruby. The problem *you* have to answer is > what that shell command actually is. > > -- > Aaron Turner > http://synfin.net/ > http://tcpreplay.synfin.net/ - Pcap editing and replay tools for > Unix & Windows > Those who would give up essential Liberty, to purchase a little > temporary > Safety, deserve neither Liberty nor Safety. > -- Benjamin Franklin > "carpe diem quam minimum credula postero" > Rob Biedenharn http://agileconsultingllc.com Rob@AgileConsultingLLC.com