代码奉上
s zt = false
java(nis,null,"java.net.NetworkInterface.getNetworkInterfaces")
f(nis != null){
java(list,null,"java.util.Collections.list","java.util.Enumeration",nis)
for(ni;list){
java(up,ni,"java.net.NetworkInterface.isUp")
java(ia,ni,"java.net.NetworkInterface.getInterfaceAddresses")
java(size,ia,"java.util.List.size")
f(up && size != 0){
java(name,ni,"java.net.NetworkInterface.getName")
f(name == "tun0" || name == "ppp0"){
s zt = true
break
}
}
}
}
f(zt==true)
{
syso("有抓包")
tw("请关闭本软件")
end()
}
else
{
syso("没有抓包")
}文章源自灵鲨社区-https://www.0s52.com/bcjc/iappjc/17.html
//可写入模块进行循环检测提高安全度文章源自灵鲨社区-https://www.0s52.com/bcjc/iappjc/17.html
放载入事件或模块里文章源自灵鲨社区-https://www.0s52.com/bcjc/iappjc/17.html 文章源自灵鲨社区-https://www.0s52.com/bcjc/iappjc/17.html
评论