github.com/chainreactors/fingers@v1.2.1/fingers/types.go (about)

     1  package fingers
     2  
     3  import "github.com/chainreactors/fingers/common"
     4  
     5  const (
     6  	None = iota
     7  	ACTIVE
     8  	ICO
     9  	NOTFOUND
    10  	GUESS
    11  )
    12  
    13  const (
    14  	INFO int = iota + 1
    15  	MEDIUM
    16  	HIGH
    17  	CRITICAL
    18  )
    19  
    20  type Sender func([]byte) ([]byte, bool)
    21  type Callback func(*common.Framework, *common.Vuln)
    22  type senddata []byte
    23  
    24  func (d senddata) IsNull() bool {
    25  	if len(d) == 0 {
    26  		return true
    27  	}
    28  	return false
    29  }