diff --git a/go.mod b/go.mod index 3bce094..2108594 100644 --- a/go.mod +++ b/go.mod @@ -3,7 +3,7 @@ module ladder go 1.21.1 require ( - github.com/Danny-Dasilva/CycleTLS/cycletls v0.0.0-20231128002513-4df48e6bd744 + github.com/Danny-Dasilva/CycleTLS/cycletls v1.0.23 github.com/Danny-Dasilva/fhttp v0.0.0-20231127034941-9494939f30fa github.com/akamensky/argparse v1.4.0 github.com/gofiber/fiber/v2 v2.50.0 diff --git a/go.sum b/go.sum index b9cde01..6b7f3a1 100644 --- a/go.sum +++ b/go.sum @@ -10,6 +10,8 @@ git.apache.org/thrift.git v0.0.0-20180902110319-2566ecd5d999/go.mod h1:fPE2ZNJGy github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= github.com/Danny-Dasilva/CycleTLS/cycletls v0.0.0-20231128002513-4df48e6bd744 h1:k3rvW2jPAY5HWey6IuK7rMJhOqN7xOArYl8MjXaqjxA= github.com/Danny-Dasilva/CycleTLS/cycletls v0.0.0-20231128002513-4df48e6bd744/go.mod h1:rbto+nJHyL8g0cEO03d+BGlkFnrTQVQmnZboV9wFZKE= +github.com/Danny-Dasilva/CycleTLS/cycletls v1.0.23 h1:Vi9GW6VwXsJz3TMPD366eH51x6+1LSlAyIBu3mmOASA= +github.com/Danny-Dasilva/CycleTLS/cycletls v1.0.23/go.mod h1:8k2vgurMNmte+ce8U5VFPaqoTQfYnykQfFqVX4bNxnU= github.com/Danny-Dasilva/fhttp v0.0.0-20220418170016-5ea1c560e6a8/go.mod h1:t534vrahRNn9ax1tRiYSUvwJSa9jWaYYgETlfodBPm4= github.com/Danny-Dasilva/fhttp v0.0.0-20220524230104-f801520157d6/go.mod h1:2IT2IFG+d+zzFuj3+ksGtVytcCBsF402zMNWHsWhD2U= github.com/Danny-Dasilva/fhttp v0.0.0-20231127034941-9494939f30fa h1:NTiEQqte2l3BrrE0WznNwxO2urBhkw2vztdhJq1XVg0= diff --git a/proxychain/proxychain.go b/proxychain/proxychain.go index 40778e8..748b84f 100644 --- a/proxychain/proxychain.go +++ b/proxychain/proxychain.go @@ -5,8 +5,8 @@ import ( "fmt" "io" "log" - "net/http" - //http "github.com/Danny-Dasilva/fhttp" + //"net/http" + http "github.com/Danny-Dasilva/fhttp" "net/url" "strings" diff --git a/proxychain/requestmodifers/masquerade_as_trusted_bot.go b/proxychain/requestmodifers/masquerade_as_trusted_bot.go index 7a4f687..c17238d 100644 --- a/proxychain/requestmodifers/masquerade_as_trusted_bot.go +++ b/proxychain/requestmodifers/masquerade_as_trusted_bot.go @@ -90,8 +90,7 @@ func masqueradeAsTrustedBot(botUA string, botIP string, ja3 string) proxychain.R if ja3 != "" { chain.AddOnceRequestModifications( - //SpoofJA3fingerprint(ja3, botUA), - SpoofJA3fingerprint(ja3, ""), + SpoofJA3fingerprint(ja3, botUA), ) } diff --git a/proxychain/requestmodifers/modify_outgoing_cookies.go b/proxychain/requestmodifers/modify_outgoing_cookies.go index 49101a3..b34d1ce 100644 --- a/proxychain/requestmodifers/modify_outgoing_cookies.go +++ b/proxychain/requestmodifers/modify_outgoing_cookies.go @@ -1,8 +1,8 @@ package requestmodifers import ( - "net/http" - //http "github.com/Danny-Dasilva/fhttp" + //"net/http" + http "github.com/Danny-Dasilva/fhttp" "ladder/proxychain" ) diff --git a/proxychain/requestmodifers/resolve_with_google_doh.go b/proxychain/requestmodifers/resolve_with_google_doh.go index 5f9f305..6c4194c 100644 --- a/proxychain/requestmodifers/resolve_with_google_doh.go +++ b/proxychain/requestmodifers/resolve_with_google_doh.go @@ -5,8 +5,8 @@ import ( "encoding/json" "fmt" "net" - "net/http" - //http "github.com/Danny-Dasilva/fhttp" + //"net/http" + http "github.com/Danny-Dasilva/fhttp" "time" "ladder/proxychain" diff --git a/proxychain/requestmodifers/spoof_ja3_fingerprint.go b/proxychain/requestmodifers/spoof_ja3_fingerprint.go index bbf893f..075dab9 100644 --- a/proxychain/requestmodifers/spoof_ja3_fingerprint.go +++ b/proxychain/requestmodifers/spoof_ja3_fingerprint.go @@ -1,15 +1,5 @@ package requestmodifers -import "ladder/proxychain" - -// TODO: fix -func SpoofJA3fingerprint(ja3 string, userAgent string) proxychain.RequestModification { - return func(chain *proxychain.ProxyChain) error { - return nil - } -} - -/* import ( "github.com/Danny-Dasilva/CycleTLS/cycletls" http "github.com/Danny-Dasilva/fhttp" @@ -54,4 +44,3 @@ func SpoofJA3fingerprintWithProxy(ja3 string, userAgent string, proxy proxy.Cont return nil } } -*/ diff --git a/proxychain/responsemodifers/modify_incoming_cookies.go b/proxychain/responsemodifers/modify_incoming_cookies.go index 494f9a7..ab8fcb6 100644 --- a/proxychain/responsemodifers/modify_incoming_cookies.go +++ b/proxychain/responsemodifers/modify_incoming_cookies.go @@ -2,7 +2,8 @@ package responsemodifers import ( "fmt" - "net/http" + //"net/http" + http "github.com/Danny-Dasilva/fhttp" "ladder/proxychain" )