![](https://img-blog.csdnimg.cn/20201014180756928.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
Java
文章平均质量分 72
lihoumin
这个作者很懒,什么都没留下…
展开
-
如何通过一个IP和子网掩码得到网络地址和广播地址
/* * To change this template, choose Tools | Templates * and open the template in the editor. */package javatest;import java.io.IOException;import java.io.*;/** * * @author Administrator */public cl原创 2009-03-12 14:07:00 · 1302 阅读 · 0 评论 -
Jpcap development for ARP
Jpcap URL: http://netresearch.ics.uci.edu/kfujii/jpcap/doc/index.htmlJpcap API: http://netresearch.ics.uci.edu/kfujii/jpcap/doc/javadoc/index.html ARPAttacker: method: Attack the computers原创 2009-03-12 09:15:00 · 754 阅读 · 0 评论 -
ip字符串与byte[]互转 和 mac字符串与byte[]互转
//ip字符串转byte[]String targetIPStr="192.168.1.1";byte[] targetIP=new byte[4];int i=0;for(String str:targetIPStr.split("[.]")){targetIP[i++]=(byte)(Integer.parseInt(str));}//mac字符串转byte[]String tar原创 2009-03-16 22:07:00 · 2230 阅读 · 0 评论