LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Security
User Name
Password
Linux - Security This forum is for all security related questions.
Questions, tips, system compromises, firewalls, etc. are all included here.

Notices


Reply
  Search this Thread
Old 07-29-2008, 04:41 AM   #1
nkd
Member
 
Registered: Oct 2006
Location: india
Distribution: fedora 8, ubuntu 10.10
Posts: 318

Rep: Reputation: 34
Unhappy ifconfig donot report the promiscous mode when ethereal is running


I am using fedora8.
When I use the command ifconfig -a , the ethernet adapter donot display the promiscous mode, even if ethereal is running.
however, if I put the card in promiscous mode by giving the command
ifconfig eth0 promisc
thereafter, the ifconfig -a command reports the promiscous mode correctly.
why so ? AFAIK ethereal is running in promiscous mode and so the ifconfig -a command should report that
thanks in advance
nishith
 
Old 07-29-2008, 06:11 AM   #2
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
In short there's two "types" of promiscuous mode and two methods of determining it. The "old way" (IFF_PROMISC) can be detected by running 'ifconfig' or 'ifpromisc', the "new way" (MR_PACKET_PROMISC, libpcap-based apps) can be detected running 'ip' (iproute package). The shortcomings of ifconfig-based detection in Tiger, LSAT and Rootkit Hunter was countered and patched in 2003 and any recent version of Chkrootkits 'ifpromisc' will have PF_PACKET-based detection.
 
Old 07-29-2008, 12:32 PM   #3
nkd
Member
 
Registered: Oct 2006
Location: india
Distribution: fedora 8, ubuntu 10.10
Posts: 318

Original Poster
Rep: Reputation: 34
thanks for your response
The command ip link show eth0 on my machine gives the following output :-
[root@localhost ~]# ip link show eth0
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast qlen 1000
link/ether 00:1b:24:d4:1b:92 brd ff:ff:ff:ff:ff:ff

Ethereal is running at the time the command was executed.
However, after I put the card explicitly in promiscous mode using ifconfgi eth0 promisc command ,
the PROMISC flag shows up as expected.
what next ?
nishith
 
Old 07-29-2008, 03:29 PM   #4
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Trying all scenarios again, what does
Code:
showSniffer() { inodes=($(awk '/[0-9]/ {print $9}' /proc/net/packet)); 
 inodes=${inodes[*]}; inodes=${inodes// /|}; for p in $pids; do 
 /usr/bin/readlink -f /proc/"$p"/exe; done; }
return during each?
 
  


Reply



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
IPW2200 Promiscous Mode Help pjenkins2006 Linux - Software 1 03-16-2006 01:54 PM
promiscous mode on wifi card s0lid Linux - Wireless Networking 3 12-10-2004 12:52 PM
Ethernet in Promiscous and Non -Promiscous Modet zaheer031 Linux - Networking 1 12-02-2004 10:38 AM
Network card in Promiscous mode thetwin Linux - Security 2 07-29-2003 07:56 PM
eth0 is enabled in promiscous mode saravanan1979 Linux - Networking 11 06-15-2002 09:01 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Security

All times are GMT -5. The time now is 05:25 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration