fix: using proper v2 package suffix (fixes #727)

This commit is contained in:
Simone Margaritelli 2024-08-09 18:19:21 +02:00
commit 2659a559c9
131 changed files with 318 additions and 297 deletions

View file

@ -7,8 +7,8 @@ import (
"regexp"
"strings"
"github.com/bettercap/bettercap/caplets"
_ "github.com/bettercap/bettercap/js"
"github.com/bettercap/bettercap/v2/caplets"
_ "github.com/bettercap/bettercap/v2/js"
"github.com/evilsocket/islazy/fs"
"github.com/evilsocket/islazy/plugin"

View file

@ -1,7 +1,7 @@
package session
import (
"github.com/bettercap/bettercap/js"
"github.com/bettercap/bettercap/v2/js"
"github.com/robertkrimen/otto"
)
@ -30,4 +30,3 @@ func jsEnvFunc(call otto.FunctionCall) otto.Value {
}
return js.NullValue
}

View file

@ -5,7 +5,7 @@ import (
"io/ioutil"
"os"
"github.com/bettercap/bettercap/js"
"github.com/bettercap/bettercap/v2/js"
"github.com/evilsocket/islazy/fs"
"github.com/evilsocket/islazy/log"
"github.com/robertkrimen/otto"

View file

@ -14,11 +14,11 @@ import (
"github.com/bettercap/readline"
"github.com/bettercap/bettercap/caplets"
"github.com/bettercap/bettercap/core"
"github.com/bettercap/bettercap/firewall"
"github.com/bettercap/bettercap/network"
"github.com/bettercap/bettercap/packets"
"github.com/bettercap/bettercap/v2/caplets"
"github.com/bettercap/bettercap/v2/core"
"github.com/bettercap/bettercap/v2/firewall"
"github.com/bettercap/bettercap/v2/network"
"github.com/bettercap/bettercap/v2/packets"
"github.com/evilsocket/islazy/data"
"github.com/evilsocket/islazy/fs"

View file

@ -3,7 +3,7 @@ package session
import (
"strings"
"github.com/bettercap/bettercap/network"
"github.com/bettercap/bettercap/v2/network"
)
func prefixMatches(prefix, what string) bool {

View file

@ -12,8 +12,8 @@ import (
"strings"
"time"
"github.com/bettercap/bettercap/core"
"github.com/bettercap/bettercap/network"
"github.com/bettercap/bettercap/v2/core"
"github.com/bettercap/bettercap/v2/network"
"github.com/bettercap/readline"
"github.com/evilsocket/islazy/str"

View file

@ -6,10 +6,10 @@ import (
"runtime"
"time"
"github.com/bettercap/bettercap/caplets"
"github.com/bettercap/bettercap/core"
"github.com/bettercap/bettercap/network"
"github.com/bettercap/bettercap/packets"
"github.com/bettercap/bettercap/v2/caplets"
"github.com/bettercap/bettercap/v2/core"
"github.com/bettercap/bettercap/v2/network"
"github.com/bettercap/bettercap/v2/packets"
)
var flagNames = []string{

View file

@ -1,10 +1,11 @@
package session
import (
"github.com/bettercap/bettercap/network"
"github.com/bettercap/bettercap/routing"
"github.com/evilsocket/islazy/log"
"time"
"github.com/bettercap/bettercap/v2/network"
"github.com/bettercap/bettercap/v2/routing"
"github.com/evilsocket/islazy/log"
)
type gateway struct {

View file

@ -8,7 +8,7 @@ import (
"syscall"
"time"
"github.com/bettercap/bettercap/caplets"
"github.com/bettercap/bettercap/v2/caplets"
"github.com/bettercap/readline"