当前位置: 首页 > news >正文

怎么查网站备案信息查询北欧风格装修效果图

怎么查网站备案信息查询,北欧风格装修效果图,网站 建设 公司,win7优化大师前面的几篇文章我已经对Netfilter的大概的机制作了比较详细的介绍#xff0c;这篇文章我就说一下如何分析网络数据包。我刚刚写了一个程序#xff0c;程序的功能很简单#xff0c;就是提取出网络数据包的源地址和改包所使用的网络协议#xff0c;大家可以看看源代码#x…前面的几篇文章我已经对Netfilter的大概的机制作了比较详细的介绍这篇文章我就说一下如何分析网络数据包。我刚刚写了一个程序程序的功能很简单就是提取出网络数据包的源地址和改包所使用的网络协议大家可以看看源代码#define __KERNEL__#define MODULE#include #include #include #include #include #include #include #include #include #includestatic struct nf_hook_ops nfho;unsigned int hook_func(unsigned int hooknum,struct sk_buff **skb,const struct net_device *in,const struct net_device *out,int (*okfn)(struct sk_buff *)){struct sk_buff *sb *skb;unsigned char src_ip[4];*(unsigned int *)src_ip sb-nh.iph-saddr;printk(A packet from:%d.%d.%d.%d Detected!,src_ip[0],src_ip[1],src_ip[2],src_ip[3]);switch(sb-nh.iph-protocol){case IPPROTO_TCP:printk(Its a TCP PACKET\n);break;case IPPROTO_ICMP:printk(Its a ICMP PACKET\n);break;case IPPROTO_UDP:printk(Its a UDP PACKET\n);break;}return NF_ACCEPT;}int init_module(){nfho.hook hook_func;nfho.hooknum  NF_IP_PRE_ROUTING;nfho.pf       PF_INET;nfho.priority NF_IP_PRI_FIRST;nf_register_hook(nfho);return 0;}void cleanup_module(){nf_unregister_hook(nfho);}这实际上是对前面几篇文章的几个小程序的组合实际上就是对sk_buff 结构体的的两个元素进行了检测就得到了源地址和协议的信息。上面的这条语句对于那些C不是很熟悉的人可能吃力了一点*(unsigned int *)src_ip sb-nh.iph-saddr;我稍微的解释一下网络的源地址是4个子节的int因此我定义了一个4个子节的数组src_ip从而每一个子节里面就存储的点分十进制的一个数为了一次完成赋值我把src_ip 转成unsigned int指针就可以一次4个字节一起访问了。下面是这个程序的测试结果A packet from:210.43.107.130 Detected!Its a TCP PACKETA packet from:210.43.107.130 Detected!Its a TCP PACKETA packet from:210.43.107.130 Detected!Its a TCP PACKETA packet from:210.43.107.130 Detected!Its a TCP PACKETA packet from:210.43.107.130 Detected!Its a TCP PACKETA packet from:210.43.107.130 Detected!Its a TCP PACKETA packet from:210.43.107.130 Detected!Its a TCP PACKETA packet from:210.43.106.210 Detected!Its a UDP PACKETA packet from:210.43.107.130 Detected!Its a TCP PACKETA packet from:210.43.107.8 Detected!Its a UDP PACKETA packet from:210.43.106.214 Detected!Its a UDP PACKETA packet from:210.43.106.246 Detected!Its a UDP PACKETA packet from:210.43.106.210 Detected!Its a UDP PACKETA packet from:210.43.106.112 Detected!Its a UDP PACKETA packet from:210.43.107.8 Detected!Its a UDP PACKETA packet from:210.43.106.214 Detected!Its a UDP PACKETA packet from:210.43.106.246 Detected!Its a UDP PACKETA packet from:210.43.106.210 Detected!Its a UDP PACKETA packet from:210.43.106.112 Detected!Its a UDP PACKETA packet from:210.43.106.214 Detected!Its a UDP PACKETA packet from:210.43.106.246 Detected!Its a UDP PACKETA packet from:210.43.106.210 Detected!Its a UDP PACKETA packet from:210.43.106.112 Detected!Its a UDP PACKETA packet from:210.43.106.210 Detected!Its a UDP PACKETA packet from:210.43.106.254 Detected!Its a UDP PACKETA packet from:210.43.107.130 Detected!Its a TCP PACKETA packet from:210.43.107.130 Detected!Its a TCP PACKETA packet from:210.43.107.130 Detected!Its a TCP PACKETA packet from:210.43.107.130 Detected!Its a TCP PACKETA packet from:210.43.107.130 Detected!Its a TCP PACKETA packet from:210.43.107.130 Detected!Its a TCP PACKETA packet from:210.43.107.130 Detected!Its a TCP PACKETA packet from:210.43.107.130 Detected!Its a TCP PACKETA packet from:210.43.107.130 Detected!Its a TCP PACKETA packet from:210.43.106.210 Detected!Its a UDP PACKETA packet from:210.43.107.230 Detected!Its a UDP PACKETA packet from:210.43.106.210 Detected!Its a UDP PACKETA packet from:210.43.107.136 Detected!Its a UDP PACKETA packet from:210.43.106.214 Detected!Its a UDP PACKETA packet from:210.43.107.230 Detected!Its a UDP PACKETA packet from:210.43.106.210 Detected!Its a UDP PACKETA packet from:210.43.107.136 Detected!Its a UDP PACKETA packet from:210.43.106.214 Detected!Its a UDP PACKETA packet from:210.43.107.230 Detected!Its a UDP PACKETA packet from:210.43.106.96 Detected!Its a UDP PACKETA packet from:210.43.106.210 Detected!Its a UDP PACKETA packet from:210.43.107.136 Detected!Its a UDP PACKETA packet from:210.43.106.112 Detected!Its a UDP PACKETA packet from:210.43.106.214 Detected!Its a UDP PACKETA packet from:210.43.107.230 Detected!Its a UDP PACKETA packet from:210.43.106.96 Detected!Its a UDP PACKETA packet from:210.43.106.210 Detected!Its a UDP PACKETA packet from:210.43.107.136 Detected!Its a UDP PACKETA packet from:210.43.106.112 Detected!Its a UDP PACKETA packet from:210.43.107.230 Detected!Its a UDP PACKETA packet from:210.43.106.96 Detected!Its a UDP PACKETA packet from:210.43.106.210 Detected!Its a UDP PACKETA packet from:210.43.107.136 Detected!Its a UDP PACKETA packet from:210.43.106.112 Detected!Its a UDP PACKETA packet from:210.43.107.230 Detected!Its a UDP PACKETA packet from:210.43.106.210 Detected!Its a UDP PACKETA packet from:210.43.107.136 Detected!Its a UDP PACKETA packet from:210.43.106.214 Detected!Its a UDP PACKETA packet from:210.43.106.96 Detected!Its a UDP PACKETA packet from:210.43.106.210 Detected!Its a UDP PACKETA packet from:210.43.107.136 Detected!Its a UDP PACKETA packet from:210.43.107.136 Detected!Its a UDP PACKETA packet from:210.43.107.136 Detected!Its a UDP PACKETA packet from:210.43.107.136 Detected!Its a UDP PACKETA packet from:210.43.107.136 Detected!Its a UDP PACKETA packet from:210.43.107.136 Detected!Its a UDP PACKETA packet from:210.43.107.136 Detected!Its a UDP PACKETA packet from:192.168.1.1 Detected!Its a UDP PACKETA packet from:192.168.1.1 Detected!Its a UDP PACKETA packet from:192.168.1.1 Detected!Its a UDP PACKETA packet from:192.168.1.1 Detected!Its a UDP PACKETA packet from:192.168.1.1 Detected!Its a UDP PACKETA packet from:192.168.1.1 Detected!Its a UDP PACKETA packet from:192.168.1.1 Detected!Its a UDP PACKETA packet from:192.168.1.1 Detected!Its a UDP PACKETA packet from:192.168.1.1 Detected!Its a UDP PACKETA packet from:192.168.1.1 Detected!Its a UDP PACKETA packet from:210.43.106.214 Detected!Its a UDP PACKETA packet from:210.43.106.96 Detected!Its a UDP PACKETA packet from:210.43.106.210 Detected!Its a UDP PACKETA packet from:210.43.106.210 Detected!Its a UDP PACKETA packet from:210.43.107.130 Detected!Its a ICMP PACKETA packet from:210.43.107.136 Detected!Its a UDP PACKETA packet from:210.43.107.136 Detected!Its a UDP PACKETA packet from:210.43.107.136 Detected!Its a UDP PACKETA packet from:210.43.106.214 Detected!Its a UDP PACKETA packet from:210.43.106.96 Detected!Its a UDP PACKETA packet from:210.43.106.210 Detected!Its a UDP PACKETA packet from:210.43.106.210 Detected!Its a UDP PACKETA packet from:210.43.107.130 Detected!Its a ICMP PACKETA packet from:210.43.107.136 Detected!Its a UDP PACKETA packet from:210.43.107.136 Detected!Its a UDP PACKETA packet from:210.43.106.210 Detected!Its a UDP PACKETA packet from:210.43.106.210 Detected!Its a UDP PACKETA packet from:210.43.106.112 Detected!Its a UDP PACKETA packet from:210.43.107.136 Detected!Its a UDP PACKETA packet from:210.43.107.130 Detected!Its a ICMP PACKETA packet from:210.43.106.96 Detected!Its a UDP PACKETA packet from:210.43.106.210 Detected!Its a UDP PACKETA packet from:210.43.107.130 Detected!Its a TCP PACKETA packet from:210.43.106.112 Detected!Its a UDP PACKETA packet from:210.43.107.130 Detected!Its a TCP PACKETA packet from:210.43.107.136 Detected!Its a UDP PACKETA packet from:210.43.107.130 Detected!Its a TCP PACKET如果需要对包的端口进行分析的话就要对IP报文的数据段(sb-data)进行分析了(TCP和UDP等包都是作为IP的数据而存在的)大家可以参考一下相应的资料。
http://www.zqtcl.cn/news/70903/

相关文章:

  • 公众号里的网站怎么做的深圳影视广告在哪里好
  • 做网站建设有哪些公司校园网站模板下载
  • 泉州网站建设解决方案wordpress修改网站icon
  • 如何给网站文字做超链接上海家装博览会2023年时间
  • chn域名网站免费建站软件排行榜
  • 成品门户网站源码免费怎样创作一个网站
  • 手表常用网站交互设计网站案例
  • 网站设配色嘉兴建站服务
  • 恐龙网站建设阳江兼职招聘网最新招聘
  • 从零开始做网站内容运营手机网站怎么写
  • 天河网站建设方案html 网站模板下载
  • 变性人做网站上海建设银行网站转账记录查询
  • 违法网站开发者在线广告设计制作
  • 做网站需要哪些审核学网站建设的工资高吗
  • 湛江公司做网站网站营销软件
  • 网站快速优化排名方法ui交互设计是什么
  • 深圳营销网站建设模板wordpress 多说 社交登陆
  • 网站做ppt模板python开发一个wordpress
  • 崇文门网站建设邢台微信群
  • 网站建设原则应考虑哪些方面vue快速建站
  • 网站开发哪些专业什么网站可以帮人做ppt赚钱
  • 做网站播放未上映的电影淘宝官网网页版淘宝网
  • 网站锚点怎么做网站前台设计
  • 舞钢市城市建设局网站中关村在线小程序
  • 山西免费网站关键词优化排名网页设计页面布局模板
  • 没有网站怎么做链接视频教程创建企业网站
  • 眼科医院网站设计怎么做6asp个人网站模板
  • 园林网站模板下载机关单位网站建设合同
  • 餐饮团购网站建设电脑网站上的电影怎么下载
  • 上海做网站比较好的公司有哪些建e网手机版