/fast-scanner

fast-scanner can make it easy for you to develop scanners

Primary LanguageGoMIT LicenseMIT

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