new: modules enabled by default can now be controlled with the -autostart argument

This commit is contained in:
evilsocket 2018-03-13 14:59:27 +01:00
commit 5727fa3c56
No known key found for this signature in database
GPG key ID: 1564D7F30393A456
3 changed files with 17 additions and 5 deletions

View file

@ -41,6 +41,17 @@ func UniqueInts(a []int, sorted bool) []int {
return uniq
}
func CommaSplit(csv string) []string {
filtered := make([]string, 0)
for _, part := range strings.Split(csv, ",") {
part = Trim(part)
if part != "" {
filtered = append(filtered, part)
}
}
return filtered
}
func ExecSilent(executable string, args []string) (string, error) {
path, err := exec.LookPath(executable)
if err != nil {