Đang chuẩn bị liên kết để tải về tài liệu:
libpcap

Đang chuẩn bị nút TẢI XUỐNG, xin hãy chờ

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? | libpcap Packet Sniffing for Security Alisa Neeman 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://sourceforge.net/projects/libpcap/ VC++: Winpcaphttp://winpcap.polito.it/install/default.htm Cygwin: Wpcap (haven’t tried this) http://www.rootlabs.com/windump/ 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 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 ) VC++, cont’d 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) */ C cont’d Output is formatted. char person[ ] = “baby”; printf(“give me %d, %s\n”, 5, person); %d: int %x: hex %s: string %f: double Get to the point! Pass by reference explicitly - Pass-by-reference prototype int doSomething( Thing *); Choice . | libpcap Packet Sniffing for Security Alisa Neeman 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://sourceforge.net/projects/libpcap/ VC++: Winpcaphttp://winpcap.polito.it/install/default.htm Cygwin: Wpcap (haven’t tried this) http://www.rootlabs.com/windump/ 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 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

TÀI LIỆU LIÊN QUAN
TAILIEUCHUNG - Chia sẻ tài liệu không giới hạn
Địa chỉ : 444 Hoang Hoa Tham, Hanoi, Viet Nam
Website : tailieuchung.com
Email : tailieuchung20@gmail.com
Tailieuchung.com là thư viện tài liệu trực tuyến, nơi chia sẽ trao đổi hàng triệu tài liệu như luận văn đồ án, sách, giáo trình, đề thi.
Chúng tôi không chịu trách nhiệm liên quan đến các vấn đề bản quyền nội dung tài liệu được thành viên tự nguyện đăng tải lên, nếu phát hiện thấy tài liệu xấu hoặc tài liệu có bản quyền xin hãy email cho chúng tôi.
Đã phát hiện trình chặn quảng cáo AdBlock
Trang web này phụ thuộc vào doanh thu từ số lần hiển thị quảng cáo để tồn tại. Vui lòng tắt trình chặn quảng cáo của bạn hoặc tạm dừng tính năng chặn quảng cáo cho trang web này.