new: new c2 module, first draft

This commit is contained in:
Simone Margaritelli 2021-01-27 00:17:25 +01:00
commit 583a54c194
23 changed files with 579 additions and 163 deletions

View file

@ -2,7 +2,6 @@ package net_recon
import (
"fmt"
"os"
"sort"
"strings"
"time"
@ -223,7 +222,7 @@ func (mod *Discovery) showStatusBar() {
parts = append(parts, fmt.Sprintf("%d errs", nErrors))
}
fmt.Printf("\n%s\n\n", strings.Join(parts, " / "))
mod.Printf("\n%s\n\n", strings.Join(parts, " / "))
}
func (mod *Discovery) Show(arg string) (err error) {
@ -263,7 +262,7 @@ func (mod *Discovery) Show(arg string) (err error) {
}
}
tui.Table(os.Stdout, colNames, rows)
tui.Table(mod.Session.Events.Stdout, colNames, rows)
mod.showStatusBar()
@ -305,7 +304,7 @@ func (mod *Discovery) showMeta(arg string) (err error) {
}
any = true
tui.Table(os.Stdout, colNames, rows)
tui.Table(mod.Session.Events.Stdout, colNames, rows)
}
}