Re: Passing random mac to lladdr in ifconfig

2005-05-30 Thread Thorsten Glaser
Nick Holmes dixit: > found it in the Linux-based "Auditor" LiveCD) and that can generate a random > MAC for the interface. Does anyone here have a script (Perl or otherwise) > which > can achieve the same in OpenBSD and they'd be willing to share? Yuck, Perl, you are evil. #!/bin/ksh function a

Re: Passing random mac to lladdr in ifconfig

2005-05-30 Thread Artur Grabowski
"Nick Holmes" <[EMAIL PROTECTED]> writes: > Many thanks to everyone for their replies. > > Every few times I was getting "ifconfig: SIOCSIFLLADDR: Invalid > argument" but I've tracked that down to the generation of multicast > addresses (first octet's LSB), which aren't allowed. I've modified > J

Re: Passing random mac to lladdr in ifconfig

2005-05-28 Thread Nick Holmes
Many thanks to everyone for their replies. Every few times I was getting "ifconfig: SIOCSIFLLADDR: Invalid argument" but I've tracked that down to the generation of multicast addresses (first octet's LSB), which aren't allowed. I've modified Jason's code below to address this issue (My change

Re: Passing random mac to lladdr in ifconfig

2005-05-28 Thread Jason Dixon
On May 28, 2005, at 10:36 AM, Nick Holmes wrote: Hi All. Does anyone here have a wrapper script which can send a random MAC to ifconfig's lladdr parameter? I've used the 'macchanger' program before (written by Alvaro Lopez Ortega, found it in the Linux-based "Auditor" LiveCD) and that can ge

Passing random mac to lladdr in ifconfig

2005-05-28 Thread Nick Holmes
Hi All. Does anyone here have a wrapper script which can send a random MAC to ifconfig's lladdr parameter? I've used the 'macchanger' program before (written by Alvaro Lopez Ortega, found it in the Linux-based "Auditor" LiveCD) and that can generate a random MAC for the interface. Does anyone