mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 21:13:18 -07:00
new: multiple commands separated by ; can now be executed during an interactive session.
This commit is contained in:
parent
857c0c7261
commit
7476886b69
1 changed files with 5 additions and 2 deletions
7
main.go
7
main.go
|
@ -69,8 +69,11 @@ func main() {
|
|||
continue
|
||||
}
|
||||
|
||||
if err = sess.Run(line); err != nil {
|
||||
log.Error("%s", err)
|
||||
for _, cmd := range strings.Split(line, ";") {
|
||||
cmd = strings.Trim(cmd, "\r\n\t ")
|
||||
if err = sess.Run(cmd); err != nil {
|
||||
log.Error("%s", err)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue