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

@ -3,7 +3,6 @@
package ble
import (
"os"
"sort"
"time"
@ -146,7 +145,7 @@ func (mod *BLERecon) Show() error {
}
if len(rows) > 0 {
tui.Table(os.Stdout, mod.colNames(hasName), rows)
tui.Table(mod.Session.Events.Stdout, mod.colNames(hasName), rows)
mod.Session.Refresh()
}

View file

@ -5,7 +5,6 @@ package ble
import (
"encoding/binary"
"fmt"
"os"
"strconv"
"strings"
@ -406,7 +405,7 @@ func (mod *BLERecon) showServices(p gatt.Peripheral, services []*gatt.Service) {
if wantsToWrite && !foundToWrite {
mod.Error("writable characteristics %s not found.", mod.writeUUID)
} else {
tui.Table(os.Stdout, columns, rows)
tui.Table(mod.Session.Events.Stdout, columns, rows)
mod.Session.Refresh()
}
}