Welcome to Linux Forums!

With a comprehensive Linux Forum, information on various types of Linux software and many Linux Reviews articles, we have all the knowledge you need a click away, or accessible via our knowledgeable members.

Linux Forum ArticlesLinux ForumsLinux Forum DownloadsLinux Hosts
Home|Register|FAQ|Member List|Calendar|Unanswered Posts|Forum Rules|Today's Posts|Advanced Search|
SEARCH FOR IN
Go Back   Linux Forums > GNU Linux Zone > Linux Security
Reload this Page promiscous mode
Linux Forums
Linux Forums
Welcome To The Linux Forums!
Welcome to Linux Forums. We pride ourselves in being one of the largest Linux communities on the web, we encourage you to REGISTER on our forums and participate in the community. There are over 150,000 members ready to answer your questions. JOINING US today will allow you to make new posts, get support, send messages to other members and submit downloads to our downloads directory and many other great features!

Linux Security Discussion about keeping your machines secure, and the crackers out.

Reply
 
Thread Tools Display Modes
Old 05-10-2003   #1 (permalink)
chandan820
Just Joined!
 
Join Date: May 2003
Location: vijayawada
Posts: 4
Send a message via Yahoo to chandan820
promiscous mode

I have read in a book that sniffing is done when a lan card or a nic is set to the promiscous mode...

How exactly is this mode set....
i mean, in the socket programming... how to set this thing call promiscous mode...??
some one plz help me out.....

regards,
gc.
__________________
only good is knowledge and only evil is ignorance.
chandan820 is offline   Reply With Quote
Old 05-10-2003   #2 (permalink)
Dolda2000
Linux Guru
 
Join Date: Oct 2001
Location: Täby, Sweden
Posts: 7,575
You don't need to set promiscuous mode to sniff the network. All you need to do is bind a raw socket to an interface. Promiscuous mode means that the NIC will intercept _all_ packets, not just those intended for your computer. This means that if you're using a hub, you'll be able to listen to packets that other computers send to each other as well.
If you want to set promiscuous mode, it's probably done via some socket ioctl. I don't know exactly which one, but either check the kernel sources, or download the sources for tcpdump and examine them. You could also just not write the sniffing subsys yourself, but just use tcpdump with the -w option to do that part of the job, and then just interpret its output.
Dolda2000 is offline   Reply With Quote
Old 05-10-2003   #3 (permalink)
andutt
Linux Engineer
 
Join Date: Apr 2003
Location: Sweden
Posts: 796
I suggest that you put on the flag on which port, interface and type of packets you want to listen to otherwise you will be drown in output from tcpdump...

Regards

__________________
Regards

Andutt
andutt is offline   Reply With Quote
Old 08-20-2003   #4 (permalink)
daveo
Just Joined!
 
Join Date: Aug 2003
Posts: 26
Re: promiscous mode

Quote:
Originally Posted by chandan820
I have read in a book that sniffing is done when a lan card or a nic is set to the promiscous mode...

How exactly is this mode set....
i mean, in the socket programming... how to set this thing call promiscous mode...??
some one plz help me out.....

regards,
gc.
Use the tcpdump method. With the following syntaxes:

tcpdump -s 1600 (take the whole packet size all protocols included) -w filename.pcap -i eth0

This will dump anything into the .pcap file, you can read this file by typeing: string filename.pcap, this will read 'all' readable strings out of the pcap file.
__________________
daveo

Linux articles, faq\'s, forums, advisories,
visit http://www.linuxaddicted.org
daveo is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

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




All times are GMT. The time now is 10:48 AM.




© 2000 - 2008 - All Rights Reserved - Property of  MAS Media

Content Relevant URLs by vBSEO 3.0.0