mirror of
https://github.com/bettercap/bettercap
synced 2025-08-21 05:53:20 -07:00
new: new c2 module, first draft
This commit is contained in:
parent
35dbb8a368
commit
583a54c194
23 changed files with 579 additions and 163 deletions
|
@ -1,8 +1,6 @@
|
|||
package hid
|
||||
|
||||
import (
|
||||
"fmt"
|
||||
"os"
|
||||
"sort"
|
||||
"time"
|
||||
|
||||
|
@ -109,12 +107,12 @@ func (mod *HIDRecon) Show() (err error) {
|
|||
rows = append(rows, mod.getRow(dev))
|
||||
}
|
||||
|
||||
tui.Table(os.Stdout, mod.colNames(), rows)
|
||||
tui.Table(mod.Session.Events.Stdout, mod.colNames(), rows)
|
||||
|
||||
if mod.sniffAddrRaw == nil {
|
||||
fmt.Printf("\nchannel:%d\n\n", mod.channel)
|
||||
mod.Printf("\nchannel:%d\n\n", mod.channel)
|
||||
} else {
|
||||
fmt.Printf("\nchannel:%d sniffing:%s\n\n", mod.channel, tui.Red(mod.sniffAddr))
|
||||
mod.Printf("\nchannel:%d sniffing:%s\n\n", mod.channel, tui.Red(mod.sniffAddr))
|
||||
}
|
||||
|
||||
if len(rows) > 0 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue