When I try to execute this piece of code with go v1.13 in my m2 mac.
package main
import (
"io/ioutil"
"net/http"
"strings"
"github.com/CUCyber/ja3transport"
)
func CreateTransport() {
// Create an http.Transport object which can be used as a parameter for http.Client
tr, _ := ja3transport.NewTransport("771,4866-4865-4867-49195-49199-49196-49200-52393-52392-49171-49172-156-157-47-53,23-65281-10-11-35-16-5-13-18-51-45-43-27-17513,29-23-24,0")
// Set the .Transport member of any http.Client
client := &http.Client{Transport: tr}
// Make request to website using the new client
resp, _ := client.Post("https://localhost:8787/index.php", "application/json", strings.NewReader("{\"username\":\"admin\"}"))
// Print the response
body, _ := ioutil.ReadAll(resp.Body)
println(string(body))
}
func main() {
CreateTransport()
}
I receive the following error:
../../../../go/src/github.com/CUCyber/ja3transport/ja3client.go:9:2: found packages tls (alert.go) and main (generate_cert.go) in /Users/aymanboulaichdahhou/go/src/github.com/refraction-networking/utls
I use v1.13 because is the one which the creator of ja3transport recommends for the library.
I tried to execute it with multiple go versions I downloaded the file and used relative paths and absolute ones but nothing worked.
When I try to execute this piece of code with go v1.13 in my m2 mac.
I receive the following error:
I use v1.13 because is the one which the creator of ja3transport recommends for the library.
I tried to execute it with multiple go versions I downloaded the file and used relative paths and absolute ones but nothing worked.