Danny-Dasilva / CycleTLS

Spoof TLS/JA3 fingerprints in GO and Javascript
GNU General Public License v3.0
926 stars 173 forks source link

The request body is not empty. All requests will return code 408. What is the reason #144

Open javasjl opened 2 years ago

javasjl commented 2 years ago

Description

`func CycleTLS33() cycletls.Response {

client := cycletls.Init()
response, err := client.Do("https://wwws.airfrance.fr/upBAX/3RoXC/zMosRD/vNwE/9DuhttmfG9/MngDAQ/VEVoY/iNGRVI", cycletls.Options{
    Headers: map[string]string{
        "host":         "www.turkishairlines.com",
        "accept":       "*/*",
        "content-type": "application/json; charset=UTF-8",
    },
    Body:      "{\"sensor_data\":\"7a74G7m23Vrp0o5c9367681.75-1,2,-94,-100,Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36,uaend,12147,20030107,en-US,Gecko,5,0,0,0,408830,1180451,2056,1191,2056,1329,2056,1077,2056,,cpen:0,i1:0,dm:0,cwen:0,non:1,opc:0,fc:0,sc:0,wrc:1,isc:0,vib:1,bat:1,x11:0,x12:1,9023,0.819852986409,830795590225.5,0,loc:-1,2,-94,-131,Mozilla/5.0 (macOS;12.3.0;arm;64;) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36-1,2,-94,-101,do_en,dm_en,t_en-1,2,-94,-105,0,0,0,1,1167,-1,0;0,0,0,1,1168,-1,0;0,-1,0,0,2158,-1,0;0,-1,0,0,-1,-1,0;-1,-1,0,0,1175,-1,1;-1,2,-94,-102,0,0,0,1,1167,-1,0;0,0,0,1,1168,-1,0;0,-1,0,0,2158,-1,0;0,-1,0,0,-1,-1,0;-1,-1,0,0,1175,-1,1;-1,2,-94,-108,-1,2,-94,-110,0,1,161,1021,332;1,1,169,1030,328;2,1,182,1044,319;3,1,200,1048,315;4,1,210,1050,312;5,1,219,1050,311;6,1,226,1050,310;7,1,237,1050,310;8,1,249,1050,310;9,1,282,1051,309;10,1,301,1051,309;11,1,309,1051,309;12,1,417,1051,309;13,1,429,1051,309;14,1,439,1050,309;15,1,458,1045,309;16,1,467,1038,309;17,1,476,1026,310;18,1,485,1012,312;19,1,495,1001,313;-1,2,-94,-117,-1,2,-94,-111,-1,2,-94,-109,-1,2,-94,-114,-1,2,-94,-103,-1,2,-94,-112,https://wwws.airfrance.fr/en-1,2,-94,-115,1,33727,32,0,0,0,33695,547,0,1661591180451,40,17775,0,20,2962,0,0,547,6411,0,6A6E777C4F2516133D0C4776A19063CC~-1~YAAQLnpAF3XN592CAQAAalSN3ghrgKfh3h+oYhpYWMVhwUPw8IW3xEP9fKjMi9xEMR4dvCWhO7f8E3RjwLc/0TIRuuiOmElRi29S+CgipHQEAdnlkOcdfyvuvjahL4OCrE2PP5l3/i0u7IL6r4h9H+1bcUERUorU7iD/xR6ZhFG4iDT2OEAKK9KQ6ma5Y9vp0RKbdTiDxBJgeDA8EsVn15lkNvcBzFNm/xnuNQmLRCqk97G6G/HggT5eOPsqytqY67ZhBvxTNETgONjSYxP/RsNFFBvjGpYJPQyXJJuREMmVOnzVg34Rc0+TIdmE8DM9cEOvNHMnHOnhtwoyVQj5FUk69+C8c0ctnUACikbnI20j3YuldDV82hyf8E4CG6RmcwaOEb8zWR/4fDHm/tfMvy8ld6K2uKS0ikBs~-1~-1~-1,38150,522,-325861646,30261693,PiZtE,68541,103,0,-1-1,2,-94,-106,9,1-1,2,-94,-119,-1-1,2,-94,-122,0,0,0,0,1,0,0-1,2,-94,-123,-1,2,-94,-124,-1,2,-94,-126,-1,2,-94,-127,01321144241322243122-1,2,-94,-70,1838552554;-59864811;dis;,7;true;true;true;-480;true;30;30;true;false;-1-1,2,-94,-80,5439-1,2,-94,-116,159361965-1,2,-94,-118,121707-1,2,-94,-129,,,0,,,,0-1,2,-94,-121,;1;5;0\"}",
    Ja3:       "771,4865-4867-4866-49195-49199-52393-52392-49196-49200-49162-49161-49171-49172-51-57-47-53-10,0-23-65281-10-11-35-16-5-51-43-13-45-28-21,29-23-24-25-256-257,0",
    UserAgent: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36",
}, "POST")
if err != nil {
    log.Print("Request Failed: " + err.Error())
}
log.Println(response)
return response

}`

Issue Type

Bug

Operating System

Windows 10, Mac OS

Node Version

No response

Golang Version

Other

Relevant Log Output

GOROOT=/usr/local/go #gosetup
GOPATH=/Users/skl/Documents/projects_go #gosetup
/usr/local/go/bin/go build -o /private/var/folders/tq/b6p75sqx6xv4cxjfyycdyn740000gn/T/GoLand/___go_build_CycleTLS_FingerPrinter -gcflags all=-N -l CycleTLS-FingerPrinter #gosetup
/Applications/GoLand.app/Contents/plugins/go/lib/dlv/macarm/dlv --listen=127.0.0.1:54761 --headless=true --api-version=2 --check-go-version=false --only-same-user=false exec /private/var/folders/tq/b6p75sqx6xv4cxjfyycdyn740000gn/T/GoLand/___go_build_CycleTLS_FingerPrinter --
API server listening at: 127.0.0.1:54761
debugserver-@(#)PROGRAM:LLDB  PROJECT:lldb-1316.0.9.46
 for arm64.
Got a connection, launched process /private/var/folders/tq/b6p75sqx6xv4cxjfyycdyn740000gn/T/GoLand/___go_build_CycleTLS_FingerPrinter (pid = 9358).
Iris Version: 12.2.0-beta4

Now listening on: http://localhost:81
Application started. Press CTRL+C to shut down.
reset err CANCEL StreamID: 15
2022/08/27 17:34:23 {cycleTLSRequest 408 Request returned a Syscall Error: Post "https://www.turkishairlines.com/com.thy.web.online.cms/cms/content/query": context deadline exceeded (Client.Timeout exceeded while awaiting headers)-> 
Post "https://www.turkishairlines.com/com.thy.web.online.cms/cms/content/query": context deadline exceeded (Client.Timeout exceeded while awaiting headers) map[]}
reset err CANCEL StreamID: 15
2022/08/27 17:34:51 {cycleTLSRequest 408 Request returned a Syscall Error: Post "https://www.turkishairlines.com/com.thy.web.online.cms/cms/content/query": context deadline exceeded (Client.Timeout exceeded while awaiting headers)-> 
Post "https://www.turkishairlines.com/com.thy.web.online.cms/cms/content/query": context deadline exceeded (Client.Timeout exceeded while awaiting headers) map[]}
qizhoumeng commented 1 year ago

Hello, have you solved the problem

mciem commented 1 year ago

I need answer for that im getting much this when running high amount of "threads"

pyzzd commented 1 year ago

解决了吗,我也是这个问题

Danny-Dasilva commented 11 months ago

This error seems to be caused by a client timeout. Basically the server is not returning a response.

It seems this server doesn't support http2 requests

this request goes through and works so the issue lies with http2

client := cycletls.Init()
response, err := client.Do("https://wwws.airfrance.fr/upBAX/3RoXC/zMosRD/vNwE/9DuhttmfG9/MngDAQ/VEVoY/iNGRVI", cycletls.Options{
  Headers: map[string]string{
      "host":         "www.turkishairlines.com",
      "accept":       "*/*",
      "content-type": "application/json; charset=UTF-8",
  },
  Body:      "{\"sensor_data\":\"7a74G7m23Vrp0o5c9367681.75-1,2,-94,-100,Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36,uaend,12147,20030107,en-US,Gecko,5,0,0,0,408830,1180451,2056,1191,2056,1329,2056,1077,2056,,cpen:0,i1:0,dm:0,cwen:0,non:1,opc:0,fc:0,sc:0,wrc:1,isc:0,vib:1,bat:1,x11:0,x12:1,9023,0.819852986409,830795590225.5,0,loc:-1,2,-94,-131,Mozilla/5.0 (macOS;12.3.0;arm;64;) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36-1,2,-94,-101,do_en,dm_en,t_en-1,2,-94,-105,0,0,0,1,1167,-1,0;0,0,0,1,1168,-1,0;0,-1,0,0,2158,-1,0;0,-1,0,0,-1,-1,0;-1,-1,0,0,1175,-1,1;-1,2,-94,-102,0,0,0,1,1167,-1,0;0,0,0,1,1168,-1,0;0,-1,0,0,2158,-1,0;0,-1,0,0,-1,-1,0;-1,-1,0,0,1175,-1,1;-1,2,-94,-108,-1,2,-94,-110,0,1,161,1021,332;1,1,169,1030,328;2,1,182,1044,319;3,1,200,1048,315;4,1,210,1050,312;5,1,219,1050,311;6,1,226,1050,310;7,1,237,1050,310;8,1,249,1050,310;9,1,282,1051,309;10,1,301,1051,309;11,1,309,1051,309;12,1,417,1051,309;13,1,429,1051,309;14,1,439,1050,309;15,1,458,1045,309;16,1,467,1038,309;17,1,476,1026,310;18,1,485,1012,312;19,1,495,1001,313;-1,2,-94,-117,-1,2,-94,-111,-1,2,-94,-109,-1,2,-94,-114,-1,2,-94,-103,-1,2,-94,-112,https://wwws.airfrance.fr/en-1,2,-94,-115,1,33727,32,0,0,0,33695,547,0,1661591180451,40,17775,0,20,2962,0,0,547,6411,0,6A6E777C4F2516133D0C4776A19063CC~-1~YAAQLnpAF3XN592CAQAAalSN3ghrgKfh3h+oYhpYWMVhwUPw8IW3xEP9fKjMi9xEMR4dvCWhO7f8E3RjwLc/0TIRuuiOmElRi29S+CgipHQEAdnlkOcdfyvuvjahL4OCrE2PP5l3/i0u7IL6r4h9H+1bcUERUorU7iD/xR6ZhFG4iDT2OEAKK9KQ6ma5Y9vp0RKbdTiDxBJgeDA8EsVn15lkNvcBzFNm/xnuNQmLRCqk97G6G/HggT5eOPsqytqY67ZhBvxTNETgONjSYxP/RsNFFBvjGpYJPQyXJJuREMmVOnzVg34Rc0+TIdmE8DM9cEOvNHMnHOnhtwoyVQj5FUk69+C8c0ctnUACikbnI20j3YuldDV82hyf8E4CG6RmcwaOEb8zWR/4fDHm/tfMvy8ld6K2uKS0ikBs~-1~-1~-1,38150,522,-325861646,30261693,PiZtE,68541,103,0,-1-1,2,-94,-106,9,1-1,2,-94,-119,-1-1,2,-94,-122,0,0,0,0,1,0,0-1,2,-94,-123,-1,2,-94,-124,-1,2,-94,-126,-1,2,-94,-127,01321144241322243122-1,2,-94,-70,1838552554;-59864811;dis;,7;true;true;true;-480;true;30;30;true;false;-1-1,2,-94,-80,5439-1,2,-94,-116,159361965-1,2,-94,-118,121707-1,2,-94,-129,,,0,,,,0-1,2,-94,-121,;1;5;0\"}",
  Ja3:       "771,4865-4867-4866-49195-49199-52393-52392-49196-49200-49162-49161-49171-49172-51-57-47-53-10,0-23-65281-10-11-35-16-5-51-43-13-45-28-21,29-23-24-25-256-257,0",
  UserAgent: "Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/100.0.4896.127 Safari/537.36",
  Timeout: 300,
  ForceHTTP1: true,
}, "POST")
if err != nil {
log.Print("Request Failed: " + err.Error())
}
log.Println(response.Body)