mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 21:13:18 -07:00
balls
This commit is contained in:
parent
3ab433bbdb
commit
7a62807e9d
1 changed files with 5 additions and 1 deletions
6
main.go
6
main.go
|
@ -2,6 +2,7 @@ package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
"io"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/evilsocket/bettercap-ng/core"
|
"github.com/evilsocket/bettercap-ng/core"
|
||||||
|
@ -63,7 +64,10 @@ func main() {
|
||||||
for sess.Active {
|
for sess.Active {
|
||||||
line, err := sess.ReadLine()
|
line, err := sess.ReadLine()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Fatal("WOOT %s", err)
|
if err == io.EOF {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
log.Fatal("%s", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, cmd := range session.ParseCommands(line) {
|
for _, cmd := range session.ParseCommands(line) {
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue