mirror of
https://github.com/bettercap/bettercap
synced 2025-07-10 15:23:30 -07:00
new: implemented tcp.proxy (closes #33)
This commit is contained in:
parent
0f8be49beb
commit
129f87f8f9
7 changed files with 410 additions and 78 deletions
|
@ -8,11 +8,11 @@ import (
|
|||
"github.com/bettercap/bettercap/session"
|
||||
)
|
||||
|
||||
func getScript(src string) *ProxyScript {
|
||||
func getScript(src string) *HttpProxyScript {
|
||||
sess := session.Session{}
|
||||
sess.Env = session.NewEnvironment(&sess)
|
||||
|
||||
err, script := LoadProxyScriptSource("", src, &sess)
|
||||
err, script := LoadHttpProxyScriptSource("", src, &sess)
|
||||
if err != nil {
|
||||
log.Fatal("%s", err)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue