mirror of
https://github.com/bettercap/bettercap
synced 2025-07-07 21:42:06 -07:00
new: added -eval command
This commit is contained in:
parent
a849692468
commit
59c0e1eb76
3 changed files with 12 additions and 1 deletions
6
main.go
6
main.go
|
@ -34,6 +34,12 @@ func main() {
|
|||
|
||||
defer sess.Close()
|
||||
|
||||
if *sess.Options.Commands != "" {
|
||||
if err = sess.Run(*sess.Options.Commands); err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
}
|
||||
|
||||
if *sess.Options.Caplet != "" {
|
||||
if err = sess.RunCaplet(*sess.Options.Caplet); err != nil {
|
||||
log.Fatal(err)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue