fix cycletls imports

This commit is contained in:
Kevin Pham
2023-11-27 22:40:34 -06:00
parent 0fe02c397d
commit 9a8d4ac261
8 changed files with 12 additions and 21 deletions

View File

@@ -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"

View File

@@ -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),
)
}

View File

@@ -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"
)

View File

@@ -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"

View File

@@ -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
}
}
*/

View File

@@ -2,7 +2,8 @@ package responsemodifers
import (
"fmt"
"net/http"
//"net/http"
http "github.com/Danny-Dasilva/fhttp"
"ladder/proxychain"
)