Code Monkey home page Code Monkey logo

go-sni-detector's Introduction

go-sni-detector

Build Status GPLv3 License

说明

用于扫描SNI服务器,sniip_ok.txt中的延迟值为配置中指定的各server_name的延迟的平均值。

由于在初始化时读取了所有ip以便执行去重操作,所以会消耗大量的内存,对于需要扫描大量ip且机器性能不够强大的用户,请将soft_mode置为true

请将待测试的ip段放到sniip.txt文件,支持以下ip格式:

  1. 127.0.0.1
  2. 127.0.0.0/24
  3. 127.0.0.0-127.0.0.255
  4. 127.0.0.0-127.0.0.
  5. 127.0.0.-127.0.1.

下载地址

Latest release

高级用法

支持命令,优先级高于配置文件,通过指定-r命令可以直接将指定的参数写入到配置文件。

Usage: go-sni-detector [COMMAND] [VARS]

SUPPORT COMMANDS:
	-h, --help                   help message
	-a, --allhostname            lookup all hostname of ip, or lookup the first one by default
	-r, --override               override settings
	-m, --softmode               reduce memory usage

SUPPORT VARS:
	-i, --snifile<=path>                put your ip ranges into this file
	-o, --outputfile<=path>             output sni ip to this file
	-j, --jsonfile<=path>               output sni ip as json format to this file
	-c, --concurrency<=number>          concurrency
	-t, --timeout<=number>              timeout
	-ht, --handshaketimeout<=number>    handshake timeout
	-d, --delay<=number>                delay
	-s, --servername<=string>           comma-separated server names

配置说明

"concurrency":1000 并发线程数,可根据自己的硬件配置调整

"delay":1200 扫描完成后,提取所有小于等于该延迟的ip

"server_name" 用于测试SNI服务器的域名,以逗号分隔

"soft_mode" 边读取ip边扫描,适合需要扫描大量ip且内存较小的用户

Wiki

Wiki

其它工具

扫描google ip工具:go-checkiptools

go-sni-detector's People

Contributors

johnsonz avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.