libpcap [Packet Sniffing for Security ]
#1

[attachment=12063]
Introduction
 libpcap is an open source C library for putting your NIC in promiscuous mode.
Today I’ll go over a few C gotchas and how to use the libpcap API
Any C programmers?
 Planning to go to grad school?
 Agenda
 Installing libpcap
 C stuff
 Basic libpcap program
– Grab a device to sniff
– Filters/Event Loops
– Packet structure
– Getting the library
Linux:
http://sourceforgeprojects/libpcap/
VC++: Winpcaphttp://winpcap.polito.it/install/default.htm
Cygwin: Wpcap (haven’t tried this)
http://rootlabswindump/
Install on Linux
 gunzip libpcap-0.7.1.tar.gz
 tar -xvf libpcap-0.7.1.tar
 cd libpcap-0.7.1
 ./configure
 make
Install for Windows VC++
 Get both Developer's pack download and
Windows 95/98/ME/NT/2000/XP install package.
 Run install and reboot (this installs the .dll and inserts a page link in your registry).
 You need to insert a copy of pcap.h into
C:\Program Files\Microsoft Visual
Studio\VC98\Include
(There is a copy of pcap.h in the Winpcap developer's pack in wpdpack/Include. In fact you can copy over all the .h files )
 You also need to add the lib files.
 Copy everything from wpdpack/Lib to
C:\Program Files\Microsoft Visual
Studio\VC98\Lib
 go to Project -> Settings -> click on the Link tab, and type in wpcap.lib and wsock32.lib in addition to the lib files that are already there.
Avoiding C Gotchas
 Always declare variables at the beginning of a block (no Java/C++ messiness!!)
 Nothing ‘new’: Always free what you malloc
malloc( sizeof ( thingYouWantToAllocate ));
 Always check the return value (no Exceptions!)
if (thing_didnt_work()) {
fprintf(stderr, "ERROR: thing didn't work\n");
exit(-1);
} /* if (thing_didnt_work) */
 Output is formatted.
char person[ ] = “baby”;
printf(“give me %d, %s\n”, 5, person);
 Get to the point!
 Pass by reference explicitly
- Pass-by-reference prototype int doSomething( Thing *);
Finally…
 C is NOT an object-oriented language
Most frequent data structure is a struct. Under the covers this is an array of contiguous bytes.
struct pcap_pkthdr {
struct timeval ts; //time stamp
bpf_u_int32 caplen; // length of //portion present
bpf_u_int32; //packet length
}
Overview of libpcap
 What to include and how to compile
 Going Live
 Main Event Loop
 Reading from a packet
 Filters
What to include and how to compile
 gcc sniff.c -lpcap –o sniff
 You must be root or admin
 Some headers I’ve used.
#include <pcap.h>
#include <stdio.h>
#include <stdlib.h>
#include <sys/socket.h>
#include<netinet/if_ether.h>

Reply
#2

to get information about the topic packet sniffing full report ,ppt and related topic refer the page link bellow

http://studentbank.in/report-packet-snif...anti-stuff

http://studentbank.in/report-packet-sniffers

http://studentbank.in/report-libpcap-pac...r-security

http://studentbank.in/report-a-packet-sn...p-protocol
Reply

Important Note..!

If you are not satisfied with above reply ,..Please

ASK HERE

So that we will collect data for you and will made reply to the request....OR try below "QUICK REPLY" box to add a reply to this page
Popular Searches: packet sniffing seminar topics, sniffing packets, seminar report on packet sniffing, packet sniffing and spoofing**station, packet sniffing editing tool, what is maent by sniffing the cellular in mobile cloning, packet sniffing tools,

[-]
Quick Reply
Message
Type your reply to this message here.

Image Verification
Please enter the text contained within the image into the text box below it. This process is used to prevent automated spam bots.
Image Verification
(case insensitive)

Possibly Related Threads...
Thread Author Replies Views Last Post
  network security seminars report computer science technology 14 20,513 24-11-2018, 01:19 AM
Last Post:
  Bluetooth Security Full Download Seminar Report and Paper Presentation computer science crazy 21 26,213 07-08-2014, 11:32 PM
Last Post: [email protected]
  Data Security in Local Network using Distributed Firewalls computer science crazy 10 14,926 30-03-2014, 04:40 AM
Last Post: Guest
  General Packet Radio Service (Download Full Seminar Report) Computer Science Clay 10 15,737 22-03-2014, 12:46 PM
Last Post: MichaelPn
  Security in Data Warehousing seminar surveyer 3 9,929 12-08-2013, 10:24 AM
Last Post: computer topic
  E-COMPILER FOR JAVA WITH SECURITY EDITOR smart paper boy 7 11,854 27-07-2013, 01:06 PM
Last Post: computer topic
  E-COMPILER FOR JAVA WITH SECURITY EDITOR seminar class 9 13,627 24-06-2013, 11:44 AM
Last Post: Guest
  Security System using Biometrics ( Download Full Seminar Report ) computer science crazy 7 10,346 02-02-2013, 03:56 PM
Last Post: seminar details
  Network security and protocols project topics 1 2,239 24-01-2013, 12:41 PM
Last Post: seminar details
  Security Challenge and Defense in VoIP Infrastructures project topics 3 2,581 04-01-2013, 11:16 AM
Last Post: [email protected]

Forum Jump: