In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-03 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
I. purpose of the experiment
1. Learn and master the basic methods of programming based on WinPcap.
2. By monitoring IP packet flow, we can understand the working principle of IP protocol and the basic structure of IP packet.
2. The content of the experiment is to write a console program using WinPcap to monitor IP packet traffic, which requires:
① runs as a command line: MonitorTraffic time, where MonitorTraffic is the program name
Third, the experimental steps and results
1) use the reference code to write a console program in the VS2010 development tool program.
2) add...\ WpdPack\ Include
Project-- > * * attribute (alt+F7)
Configure properties-- > inventory tool-- > input and output-- > embed list-- > No
Project-- > * * attribute (alt+F7)
Configuration Properties-- > Cramp Cure colors-- > General-- > additional inclusion directories-- >
Project-- > * * attribute (alt+F7)
Configuration Properties-- > Linker-- > General-- > additional Library Directory-- >
Project-- > * * attribute (alt+F7)
Configure properties-- > linker-- > input-- > attach dependencies-- > supplement "; Packet.lib;wpcap.lib"
Project-- > * * attribute (alt+F7)
Configuration properties-- > Candlestick colors-- > preprocessor-- > preprocessor definition-- > supplement "; HAVE_REMOTE"
IV. Code writing
5. Testing
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.