24
Dan Lo Department of Computer Science and Software Engineering Southern Polytechnic State University

Dan Lo Department of Computer Science and Software ...ksuweb.kennesaw.edu/.../ProgramDevelopmentonWinpcapUsingMSVisualStudi… · Dan Lo. Department of Computer Science and Software

  • Upload
    others

  • View
    0

  • Download
    0

Embed Size (px)

Citation preview

Page 1: Dan Lo Department of Computer Science and Software ...ksuweb.kennesaw.edu/.../ProgramDevelopmentonWinpcapUsingMSVisualStudi… · Dan Lo. Department of Computer Science and Software

Dan LoDepartment of Computer Science and Software 

EngineeringSouthern Polytechnic State University

Page 2: Dan Lo Department of Computer Science and Software ...ksuweb.kennesaw.edu/.../ProgramDevelopmentonWinpcapUsingMSVisualStudi… · Dan Lo. Department of Computer Science and Software

ObjectivesStep‐by‐step instructions for software development with Winpcap on MS Visual Studio C++Download and intsall Winpcap developer packSet paths for header (pcap.h) and library (wpcap.lib)Build and test the program

Page 3: Dan Lo Department of Computer Science and Software ...ksuweb.kennesaw.edu/.../ProgramDevelopmentonWinpcapUsingMSVisualStudi… · Dan Lo. Department of Computer Science and Software

Download Winpcap Developer's Packs

http://www.winpcap.org/devel.htmDownload WinPcap 4.1.1 Developer's PackUncompress it to the desired folder 

Page 4: Dan Lo Department of Computer Science and Software ...ksuweb.kennesaw.edu/.../ProgramDevelopmentonWinpcapUsingMSVisualStudi… · Dan Lo. Department of Computer Science and Software

We need to download 

the developer pack!

Page 5: Dan Lo Department of Computer Science and Software ...ksuweb.kennesaw.edu/.../ProgramDevelopmentonWinpcapUsingMSVisualStudi… · Dan Lo. Department of Computer Science and Software

Remember where you store the 

file.

Page 6: Dan Lo Department of Computer Science and Software ...ksuweb.kennesaw.edu/.../ProgramDevelopmentonWinpcapUsingMSVisualStudi… · Dan Lo. Department of Computer Science and Software

Make sure you 

remember where you dump!

Page 7: Dan Lo Department of Computer Science and Software ...ksuweb.kennesaw.edu/.../ProgramDevelopmentonWinpcapUsingMSVisualStudi… · Dan Lo. Department of Computer Science and Software
Page 8: Dan Lo Department of Computer Science and Software ...ksuweb.kennesaw.edu/.../ProgramDevelopmentonWinpcapUsingMSVisualStudi… · Dan Lo. Department of Computer Science and Software

Create a new 

project.

Page 9: Dan Lo Department of Computer Science and Software ...ksuweb.kennesaw.edu/.../ProgramDevelopmentonWinpcapUsingMSVisualStudi… · Dan Lo. Department of Computer Science and Software
Page 10: Dan Lo Department of Computer Science and Software ...ksuweb.kennesaw.edu/.../ProgramDevelopmentonWinpcapUsingMSVisualStudi… · Dan Lo. Department of Computer Science and Software
Page 11: Dan Lo Department of Computer Science and Software ...ksuweb.kennesaw.edu/.../ProgramDevelopmentonWinpcapUsingMSVisualStudi… · Dan Lo. Department of Computer Science and Software
Page 12: Dan Lo Department of Computer Science and Software ...ksuweb.kennesaw.edu/.../ProgramDevelopmentonWinpcapUsingMSVisualStudi… · Dan Lo. Department of Computer Science and Software
Page 13: Dan Lo Department of Computer Science and Software ...ksuweb.kennesaw.edu/.../ProgramDevelopmentonWinpcapUsingMSVisualStudi… · Dan Lo. Department of Computer Science and Software
Page 14: Dan Lo Department of Computer Science and Software ...ksuweb.kennesaw.edu/.../ProgramDevelopmentonWinpcapUsingMSVisualStudi… · Dan Lo. Department of Computer Science and Software
Page 15: Dan Lo Department of Computer Science and Software ...ksuweb.kennesaw.edu/.../ProgramDevelopmentonWinpcapUsingMSVisualStudi… · Dan Lo. Department of Computer Science and Software

Here I show a basic function (pcap_lookupdev) to test if the system setting is correct, and 

ready for you to develop something complex!

Page 16: Dan Lo Department of Computer Science and Software ...ksuweb.kennesaw.edu/.../ProgramDevelopmentonWinpcapUsingMSVisualStudi… · Dan Lo. Department of Computer Science and Software

This  source is not right here. Don’t copy it. What’s important is setting correct project properties 

here☺

Page 17: Dan Lo Department of Computer Science and Software ...ksuweb.kennesaw.edu/.../ProgramDevelopmentonWinpcapUsingMSVisualStudi… · Dan Lo. Department of Computer Science and Software
Page 18: Dan Lo Department of Computer Science and Software ...ksuweb.kennesaw.edu/.../ProgramDevelopmentonWinpcapUsingMSVisualStudi… · Dan Lo. Department of Computer Science and Software
Page 19: Dan Lo Department of Computer Science and Software ...ksuweb.kennesaw.edu/.../ProgramDevelopmentonWinpcapUsingMSVisualStudi… · Dan Lo. Department of Computer Science and Software
Page 20: Dan Lo Department of Computer Science and Software ...ksuweb.kennesaw.edu/.../ProgramDevelopmentonWinpcapUsingMSVisualStudi… · Dan Lo. Department of Computer Science and Software
Page 21: Dan Lo Department of Computer Science and Software ...ksuweb.kennesaw.edu/.../ProgramDevelopmentonWinpcapUsingMSVisualStudi… · Dan Lo. Department of Computer Science and Software

This program will retrieve all network 

devices in the system!

Page 22: Dan Lo Department of Computer Science and Software ...ksuweb.kennesaw.edu/.../ProgramDevelopmentonWinpcapUsingMSVisualStudi… · Dan Lo. Department of Computer Science and Software
Page 23: Dan Lo Department of Computer Science and Software ...ksuweb.kennesaw.edu/.../ProgramDevelopmentonWinpcapUsingMSVisualStudi… · Dan Lo. Department of Computer Science and Software
Page 24: Dan Lo Department of Computer Science and Software ...ksuweb.kennesaw.edu/.../ProgramDevelopmentonWinpcapUsingMSVisualStudi… · Dan Lo. Department of Computer Science and Software

There are 3 network devices found!