new: implemented syn.scan module (closes #67)

This commit is contained in:
evilsocket 2018-02-22 21:20:36 +01:00
commit ce76c7258d
8 changed files with 338 additions and 3 deletions

View file

@ -43,6 +43,16 @@ func (m *Meta) Get(name string) interface{} {
return ""
}
func (m *Meta) GetOr(name string, dflt interface{}) interface{} {
m.Lock()
defer m.Unlock()
if v, found := m.m[name]; found == true {
return v
}
return dflt
}
func (m *Meta) Each(cb func(name string, value interface{})) {
m.Lock()
defer m.Unlock()