Documentation
¶
Index ¶
- Variables
- func HasStdin() bool
- func LoadConfig(typ string) []byte
- func LoadTemplates() error
- func RandHost() string
- func RandPath() string
- func Simhash(raw []byte) string
- type Bar
- type Baseline
- func (bl *Baseline) Additional(key string) string
- func (bl *Baseline) Collect()
- func (bl *Baseline) Compare(other *Baseline) int
- func (bl *Baseline) Format(probes []string) string
- func (bl *Baseline) FuzzyCompare(other *Baseline) bool
- func (bl *Baseline) Get(key string) string
- func (bl *Baseline) IsDir() bool
- func (bl *Baseline) Jsonify() string
- func (bl *Baseline) String() string
- type Config
- type Extracteds
- type Frameworks
- type SprayMod
- type Statistor
- type Statistors
Constants ¶
This section is empty.
Variables ¶
View Source
var ( Md5Fingers map[string]string = make(map[string]string) Mmh3Fingers map[string]string = make(map[string]string) Fingers fingers.Fingers )
View Source
var Distance uint8 = 5
View Source
var Extractors = make(fingers.Extractors)
View Source
var ModMap = map[string]SprayMod{ "path": PathSpray, "host": HostSpray, }
Functions ¶
func LoadConfig ¶
func LoadTemplates ¶
func LoadTemplates() error
Types ¶
type Bar ¶
type Bar struct {
*uiprogress.Bar
// contains filtered or unexported fields
}
type Baseline ¶
type Baseline struct {
Url *url.URL `json:"-"`
UrlString string `json:"url"`
Path string `json:"path"`
Host string `json:"host"`
Body []byte `json:"-"`
BodyLength int `json:"body_length"`
Header []byte `json:"-"`
Raw []byte `json:"-"`
HeaderLength int `json:"header_length"`
RedirectURL string `json:"redirect_url,omitempty"`
FrontURL string `json:"front_url,omitempty"`
Status int `json:"status"`
Spended int64 `json:"spend"` // 耗时, 毫秒
Title string `json:"title"`
Frameworks Frameworks `json:"frameworks"`
Extracteds Extracteds `json:"extracts"`
ErrString string `json:"error"`
Reason string `json:"reason"`
IsValid bool `json:"valid"`
IsFuzzy bool `json:"fuzzy"`
RecuDepth int `json:"-"`
Recu bool `json:"-"`
*parsers.Hashes
}
func NewInvalidBaseline ¶
func (*Baseline) Additional ¶ added in v0.1.1
func (*Baseline) Compare ¶
Compare if totally equal return 1 if maybe equal return 0 not equal return -1
func (*Baseline) FuzzyCompare ¶
type Config ¶ added in v0.1.0
type Config struct {
BaseURL string
Thread int
Wordlist []string
Timeout int
CheckPeriod int
ErrPeriod int
BreakThreshold int
Method string
Mod SprayMod
Headers http.Header
ClientType int
MatchExpr *vm.Program
FilterExpr *vm.Program
RecuExpr *vm.Program
OutputCh chan *Baseline
FuzzyCh chan *Baseline
Fuzzy bool
}
type Extracteds ¶ added in v0.1.0
func (Extracteds) String ¶ added in v0.4.0
func (es Extracteds) String() string
type Frameworks ¶ added in v0.1.0
func FingerDetect ¶ added in v0.1.0
func FingerDetect(content string) Frameworks
func (Frameworks) String ¶ added in v0.4.0
func (fs Frameworks) String() string
type Statistor ¶
type Statistor struct {
BaseUrl string `json:"url"`
Counts map[int]int `json:"counts"`
FailedNumber int32 `json:"failed"`
ReqTotal int32 `json:"req_total"`
CheckNumber int `json:"check"`
FoundNumber int `json:"found"`
FilteredNumber int `json:"filtered"`
FuzzyNumber int `json:"fuzzy"`
WafedNumber int `json:"wafed"`
End int `json:"end"`
Offset int `json:"offset"`
Total int `json:"total"`
StartTime int64 `json:"start_time"`
EndTime int64 `json:"end_time"`
WordCount int `json:"word_count"`
Word string `json:"word"`
Dictionaries []string `json:"dictionaries"`
RuleFiles []string `json:"rule_files"`
RuleFilter string `json:"rule_filter"`
}
var DefaultStatistor Statistor
func NewStatistor ¶
func NewStatistorFromStat ¶
type Statistors ¶
type Statistors []*Statistor
func ReadStatistors ¶
func ReadStatistors(filename string) (Statistors, error)
Source Files
¶
Click to show internal directories.
Click to hide internal directories.