Code Monkey home page Code Monkey logo

fast-scanner's Introduction

fast-scanner

Build Status Go Report Card GoDoc license
fast-scanner can make it easy for you to develop scanners

Features

  • Support CONNECT & SYN method
  • SYN scanning method is similar to masscan stateless scanning
  • Support IPv4 & IPv6
  • Support Windows & Linux
  • Scan result is a string channal

Dependence

windows: 
  Winpcap or Npcap
linux:
  apt-get libpcap-dev
  yum install libpcap-devel

Install

wget https://github.com/For-ACGN/fast-scanner/install.sh
chmod +x install.sh && ./install.sh

Parameter

targets:
  "1.1.1.1, 1.1.1.2-1.1.1.3, 1.1.1.1/24"
  "2606:4700:4700::1001, 2606:4700:4700::1002-2606:4700:4700::1003"
ports:
  "80, 81-82"
Options:
  see options.go

Example

s, err := scanner.New("1.1.1.1-1.1.1.2, 2606:4700:4700::1001", "53-54", nil)
if err != nil {
    log.Fatalln(err)
}
err = s.Start()
if err != nil {
    log.Fatalln(err)
}
for address := range s.Result {
    log.Print(address + "\r\n")
}
1.1.1.1:53
[2606:4700:4700::1001]:53

TODO

1. target support IPv6 CIDR
2. BPFFilter for IPv6
     _ = handle.SetBPFFilter("tcp[13] = 0x12")
     is not support IPv6
3. PF_RING

fast-scanner's People

Contributors

for-acgn avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

fast-scanner's Issues

wrong port match

I found the match bug in sync.go line 150-151 and 180-181 :

if uint16(tcp.DstPort) == binary.BigEndian.Uint16(hash[:2]) && tcp.Ack-1 == binary.BigEndian.Uint32(hash[2:6]) && tcp.SYN && tcp.ACK {

the open port must recvice tcp.SYN and tcp.ACK

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.