image
image

Go Back   macosx.com > Mac Help Forums > Mac OS X System & Mac Software

Reply
 
Thread Tools
  #1  
Old June 22nd, 2002, 03:10 PM
Fragger's Avatar
Lorem Ipsum
 
Join Date: Nov 2000
Posts: 112
Thanks: 0
Thanked 0 Times in 0 Posts
Fragger is on a distinguished road
lack of promiscuity (in network interface)

i'm sitting here with EtherPeek and ethereal, wondering how to set myself into promiscuous mode. Curiously this procedure is absent from the built in man pages, so I applied the standard procedure to no result.

ifconfig en0 promisc
ifconfig en0 192.168.1.x promisc
both return:
ifconfig: promisc: bad value

any help is well appreciated, thankyou
Reply With Quote
  #2  
Old June 22nd, 2002, 07:38 PM
Registered User
 
Join Date: Jun 2001
Posts: 204
Thanks: 0
Thanked 0 Times in 0 Posts
howardm4 is on a distinguished road
you dont.

First off, only root can put the interface
into promis. mode.

Second, as I recall, you can only do it
via the C API which ethereal will do.

So, su to root and launch the tool.

Or, if you like to live dangerously and you're
the only user of the machine, suid the binary.
Reply With Quote
  #3  
Old June 23rd, 2002, 04:58 PM
Fragger's Avatar
Lorem Ipsum
 
Join Date: Nov 2000
Posts: 112
Thanks: 0
Thanked 0 Times in 0 Posts
Fragger is on a distinguished road
ack (no pun intended)

i kind of wanted to know what the actual call in the C API or wherever is... looks like i have a bit of source code digging to do! thankyou
__________________
Hi! I'm a .signature virus! Copy me into your ~/.signature to help me spread!
Reply With Quote
  #4  
Old June 23rd, 2002, 08:27 PM
Registered User
 
Join Date: Jun 2001
Posts: 204
Thanks: 0
Thanked 0 Times in 0 Posts
howardm4 is on a distinguished road
well, try examining the source code for
your favorite packet sniffer or check
the Steven's book.

you essentially need the IFF_PROMISC
flag sent to the interface via ioctl.

see 'man netintro'
Reply With Quote
  #5  
Old June 24th, 2002, 12:36 PM
Fragger's Avatar
Lorem Ipsum
 
Join Date: Nov 2000
Posts: 112
Thanks: 0
Thanked 0 Times in 0 Posts
Fragger is on a distinguished road
thanks

thanks again, time to get reading!
__________________
Hi! I'm a .signature virus! Copy me into your ~/.signature to help me spread!
Reply With Quote
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Firewire appears as a network port bookem Mac OS X System & Mac Software 6 October 16th, 2003 06:28 AM
windows network + wireless router = unable to browse school network? diddy Networking & Compatibility 2 May 1st, 2003 02:00 PM
USB as network interface LordCoven Unix & X11 4 June 24th, 2002 04:13 PM
DSL, OS X, and PC network problem ~vert Mac OS X System & Mac Software 6 October 15th, 2001 01:19 PM
Setting network interface speed ? otto Mac OS X System & Mac Software 1 October 4th, 2001 02:26 PM


All times are GMT -5. The time now is 03:03 PM.


Mac Support® Version 3.7.2
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0
Copyright 2000-2008 DigitalCrowd, Inc.