Skip to content

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

说明

本包自动识别是否可以使用tcp syn进行探测,如果使用管理员权限,则使用tcp syn进行探测,否则使用三次握手的方式

使用方法

	    import "github.com/firstmeet/scan"
	    
	    func Example(){
	    ipList := []string{"127.0.0.1", "192.168.1.1"}
            portList := []int{22, 23, 3306}
            rev := make(chan scan.Result, 100)
            s := scan.NewScan(ipList, portList, 100, 10*time.Second, rev)
            go func() {
            for result := range rev {
            fmt.Printf("[*] %s/%d is open\n", result.Ip, result.Port)
            }
            }()
            s.Start()
            s.Wait()
	    }
	    

About

port scan

Resources

Stars

1 star

Watchers

1 watching

Forks

Releases

Packages

Used by

Contributors

Languages