mirror of
https://github.com/bettercap/bettercap
synced 2025-08-19 04:59:25 -07:00
Renamed evilsocket/bettercap to bettercap/bettercap
This commit is contained in:
parent
73b3c9e340
commit
69fa3127b6
14 changed files with 27 additions and 27 deletions
|
@ -6,7 +6,7 @@ import (
|
||||||
"os"
|
"os"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/evilsocket/bettercap/core"
|
"github.com/bettercap/bettercap/core"
|
||||||
"github.com/op/go-logging"
|
"github.com/op/go-logging"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
6
main.go
6
main.go
|
@ -5,9 +5,9 @@ import (
|
||||||
|
|
||||||
"github.com/op/go-logging"
|
"github.com/op/go-logging"
|
||||||
|
|
||||||
"github.com/evilsocket/bettercap/core"
|
"github.com/bettercap/bettercap/core"
|
||||||
"github.com/evilsocket/bettercap/session"
|
"github.com/bettercap/bettercap/session"
|
||||||
"github.com/evilsocket/bettercap/session/modules"
|
"github.com/bettercap/bettercap/session/modules"
|
||||||
)
|
)
|
||||||
|
|
||||||
var sess *session.Session
|
var sess *session.Session
|
||||||
|
|
|
@ -8,7 +8,7 @@ import (
|
||||||
|
|
||||||
"github.com/op/go-logging"
|
"github.com/op/go-logging"
|
||||||
|
|
||||||
"github.com/evilsocket/bettercap/core"
|
"github.com/bettercap/bettercap/core"
|
||||||
)
|
)
|
||||||
|
|
||||||
type ArpTable map[string]string
|
type ArpTable map[string]string
|
||||||
|
|
|
@ -5,7 +5,7 @@ import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"net"
|
"net"
|
||||||
|
|
||||||
"github.com/evilsocket/bettercap/core"
|
"github.com/bettercap/bettercap/core"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Endpoint struct {
|
type Endpoint struct {
|
||||||
|
|
|
@ -7,7 +7,7 @@ import (
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/evilsocket/bettercap/core"
|
"github.com/bettercap/bettercap/core"
|
||||||
)
|
)
|
||||||
|
|
||||||
var IPv4RouteParser = regexp.MustCompile("^([\\d\\.]+)\\s+([\\d\\.]+)\\s+([\\d\\.]+)\\s+([A-Z]+)\\s+\\d+\\s+\\d+\\s+\\d+\\s+(.+)$")
|
var IPv4RouteParser = regexp.MustCompile("^([\\d\\.]+)\\s+([\\d\\.]+)\\s+([\\d\\.]+)\\s+([A-Z]+)\\s+\\d+\\s+\\d+\\s+\\d+\\s+(.+)$")
|
||||||
|
|
|
@ -2,7 +2,7 @@ package session
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/evilsocket/bettercap/core"
|
"github.com/bettercap/bettercap/core"
|
||||||
"regexp"
|
"regexp"
|
||||||
"strconv"
|
"strconv"
|
||||||
)
|
)
|
||||||
|
|
|
@ -2,7 +2,7 @@ package session
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/evilsocket/bettercap/core"
|
"github.com/bettercap/bettercap/core"
|
||||||
"regexp"
|
"regexp"
|
||||||
"strconv"
|
"strconv"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
|
@ -2,9 +2,9 @@ package session_modules
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
network "github.com/evilsocket/bettercap/net"
|
network "github.com/bettercap/bettercap/net"
|
||||||
"github.com/evilsocket/bettercap/packets"
|
"github.com/bettercap/bettercap/packets"
|
||||||
"github.com/evilsocket/bettercap/session"
|
"github.com/bettercap/bettercap/session"
|
||||||
"github.com/malfunkt/iprange"
|
"github.com/malfunkt/iprange"
|
||||||
"net"
|
"net"
|
||||||
"time"
|
"time"
|
||||||
|
|
|
@ -10,8 +10,8 @@ import (
|
||||||
"github.com/elazarl/goproxy"
|
"github.com/elazarl/goproxy"
|
||||||
"github.com/elazarl/goproxy/ext/html"
|
"github.com/elazarl/goproxy/ext/html"
|
||||||
|
|
||||||
"github.com/evilsocket/bettercap/firewall"
|
"github.com/bettercap/bettercap/firewall"
|
||||||
"github.com/evilsocket/bettercap/session"
|
"github.com/bettercap/bettercap/session"
|
||||||
)
|
)
|
||||||
|
|
||||||
var log = logging.MustGetLogger("mitm")
|
var log = logging.MustGetLogger("mitm")
|
||||||
|
@ -116,7 +116,7 @@ func NewHttpProxy(s *session.Session) *HttpProxy {
|
||||||
req.URL.Scheme = "http"
|
req.URL.Scheme = "http"
|
||||||
req.URL.Host = req.Host
|
req.URL.Host = req.Host
|
||||||
|
|
||||||
// TODO: p.pre_filter.Process
|
// TODO: p.pre_filter.Process?
|
||||||
|
|
||||||
p.proxy.ServeHTTP(w, req)
|
p.proxy.ServeHTTP(w, req)
|
||||||
} else {
|
} else {
|
||||||
|
|
|
@ -2,8 +2,8 @@ package session_modules
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
// "github.com/evilsocket/bettercap/packets"
|
// "github.com/bettercap/bettercap/packets"
|
||||||
"github.com/evilsocket/bettercap/session"
|
"github.com/bettercap/bettercap/session"
|
||||||
"github.com/malfunkt/iprange"
|
"github.com/malfunkt/iprange"
|
||||||
"net"
|
"net"
|
||||||
"time"
|
"time"
|
||||||
|
|
|
@ -2,8 +2,8 @@ package session_modules
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/evilsocket/bettercap/net"
|
"github.com/bettercap/bettercap/net"
|
||||||
"github.com/evilsocket/bettercap/session"
|
"github.com/bettercap/bettercap/session"
|
||||||
"time"
|
"time"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
|
|
@ -2,8 +2,8 @@ package session_modules
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
"github.com/evilsocket/bettercap/core"
|
"github.com/bettercap/bettercap/core"
|
||||||
"github.com/evilsocket/bettercap/session"
|
"github.com/bettercap/bettercap/session"
|
||||||
"github.com/google/gopacket"
|
"github.com/google/gopacket"
|
||||||
"github.com/google/gopacket/layers"
|
"github.com/google/gopacket/layers"
|
||||||
"github.com/google/gopacket/pcap"
|
"github.com/google/gopacket/pcap"
|
||||||
|
|
|
@ -15,10 +15,10 @@ import (
|
||||||
"github.com/chzyer/readline"
|
"github.com/chzyer/readline"
|
||||||
"github.com/op/go-logging"
|
"github.com/op/go-logging"
|
||||||
|
|
||||||
"github.com/evilsocket/bettercap/core"
|
"github.com/bettercap/bettercap/core"
|
||||||
"github.com/evilsocket/bettercap/firewall"
|
"github.com/bettercap/bettercap/firewall"
|
||||||
"github.com/evilsocket/bettercap/net"
|
"github.com/bettercap/bettercap/net"
|
||||||
"github.com/evilsocket/bettercap/packets"
|
"github.com/bettercap/bettercap/packets"
|
||||||
)
|
)
|
||||||
|
|
||||||
type Session struct {
|
type Session struct {
|
||||||
|
|
|
@ -7,8 +7,8 @@ import (
|
||||||
|
|
||||||
"github.com/op/go-logging"
|
"github.com/op/go-logging"
|
||||||
|
|
||||||
"github.com/evilsocket/bettercap/core"
|
"github.com/bettercap/bettercap/core"
|
||||||
"github.com/evilsocket/bettercap/net"
|
"github.com/bettercap/bettercap/net"
|
||||||
)
|
)
|
||||||
|
|
||||||
var log = logging.MustGetLogger("mitm")
|
var log = logging.MustGetLogger("mitm")
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue