new: exposing session environment to proxy scripts

This commit is contained in:
evilsocket 2018-01-08 01:50:15 +01:00
commit 5b969ffa9e
4 changed files with 20 additions and 5 deletions

View file

@ -23,6 +23,10 @@ func NewEnvironment() *Environment {
return env
}
func (env *Environment) Storage() *map[string]string {
return &env.storage
}
func (env *Environment) Has(name string) bool {
env.lock.Lock()
defer env.lock.Unlock()