johnsonz / go-sni-detector Goto Github PK
View Code? Open in Web Editor NEWA go application to scan sni ip
License: GNU General Public License v3.0
A go application to scan sni ip
License: GNU General Public License v3.0
一次读取全部IP太占内存了,渣机承受不住
有些扫出来光有ip 但无相应的服务器?
有些扫出来光有ip 但无相应的服务器?
如果设置后,可以输出SNI,谷歌自家服务器,Facebook自家服务器,跟Twitter自家服务器就好了,能够把IP输出做个分类,那就完美了
谷歌家的有xxnet,SNI的你这个,FB Twitter还没有,你能够强化一下功能吗
go-sni-detector是开源的,所以我简单看了下源码
似乎都是通过验证证书中的DNSNAMES,加上多域名来判断是否为SNI服务器
我也试着用其他语言写了个类似的程序,发现会扫描出一些不能用的SNI服务器,想问下究竟是什么原因,
以下是我的流程:
连接443端口,重试四次,超出次数代表失败
使用OPENSSL的SSL_ctrl函数,设置欲获取证书的域名(servername)
连接并获取X509证书,解析后,得到DNSNAMES
判断是否为SNI服务器。
johnsonz能解答下么....我感觉流程都差不多啊...
失败IP没啥用吧
能不能再出个分支,专门扫akamai ip用于赛风加速使用。
使用goproxy的时候,初次接触到了SNI这个名词,把对应的SNI域名也就是类似1e100.net这种域名加上SNI服务器IP地址,有香港的也有日本的也有大陆的IP,放进去,就能用,感觉很神奇。那段时间谷歌服务器IP受到很严重干扰,基于GAE平台的代理用不了,所以就用了SNI,但一直对它的工作原理无法理解,谁给简单介绍一下!听说很多ISP运营商包括移动、联通、电信这样的,都帮忙搭建免费的SNI供内部使用。结果被扫到了,我们也能免费用。
能测试1e100.net吗?
219.76.4.0/24这个字段死了吗,扫不出来了。
首先谢谢作者出了低性能模式。
然后就是这个问题,一个ip,cmd得出30ms,sni_ok.txt里却是500多ms。可能是ping的方法不同?这样一来config就不好设置了,有些ip cmdping的不高,但可能被过滤掉。
这工具真心好用,先谢谢大侠。
在使用过程中,出现一点小问题,即扫描多行ip段的sniip.txt时出现闪退,ip段格式如下:
a.b.c.0/24
d.e.f.0/24
g.h.i.0/24
j.k.l.0/24
请问这是格式有问题还是其他什么原因?
大批量ip段扫描中断后,下次再次开启扫描,感觉又是从头开始,不知能否做到从上次中断之处继续下去?
Environment:
Linux 3.16.0-4-amd64 #1 SMP Debian 3.16.39-1 (2016-12-30) x86_64 GNU/Linux
Version:
go-sni-detector v1.7
Reproducing Command:
go-sni-detector -i range.txt -j lowlatency.json -o serverlist.txt -c 8000 -t 8000 -d 4000 -s rhcloud.com
Appreciate it in advance. : )
( Content of range.txt has been attached below:
219.76.4.0-219.76.4.255
)
在用的IP段,这也是网上流传的那个IP段
I0219 13:37:47.437918 2260 sni.go:208] 219.76.4.215 handshake error: read tc
p 192.168.2.222:12982->219.76.4.215:443: i/o timeout
I0219 13:37:47.437918 2260 sni.go:208] 219.76.4.176 handshake error: read tc
p 192.168.2.222:13024->219.76.4.176:443: i/o timeout
I0219 13:37:47.437918 2260 sni.go:208] 219.76.4.250 handshake error: read tc
p 192.168.2.222:13009->219.76.4.250:443: i/o timeout
I0219 13:37:47.437918 2260 sni.go:208] 219.76.4.171 handshake error: read tc
p 192.168.2.222:13022->219.76.4.171:443: i/o timeout
time: 1s, ok ip count: 0
无论点击哪个页面,高亮的li标签都是首页。
main.js,ready下加入
$(function(){
$('.navbar-nav li').click(function(e){
e.preventDefault();
$(this).addClass('active').siblings().removeClass('active');
});
});
用了段小代码解决了,代码是网上找的。firefox55测试完美
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.