Advertisement
xtekky_

Untitled

Jul 31st, 2022
144
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Go 3.06 KB | None | 0 0
  1. package main
  2.  
  3. import (
  4.     "fmt"
  5.     "io/ioutil"
  6.     "log"
  7.     "net/http"
  8.     "strings"
  9.  
  10.     "github.com/zenthangplus/goccm"
  11. )
  12.  
  13. func view() {
  14.     client := &http.Client{}
  15.     var data = strings.NewReader(`item_id=7115876560393030913&sync_origin=false&order=&first_install_time=1656770243&pre_item_playtime=5805&request_id=&follower_status=0&pre_hot_sentence=&pre_item_id=7117529588711836929&play_delta=1&action_time=1659295844&aweme_type=0&follow_status=0`)
  16.     req, err := http.NewRequest("POST", "https://api-va.tiktokv.com/aweme/v1/aweme/stats/?os_api=24&device_type=SM-G925F&ssmix=a&manifest_version_code=220202&dpi=640&uoo=0&region=US&app_name=musically_go&version_name=22.2.2&timezone_offset=10800&ts=1659294068&ab_version=22.2.2&residence=TR&cpu_support64=true&current_region=TR&ac2=wifi&ac=wifi&app_type=normal&host_abi=armeabi-v7a&channel=googleplay&update_version_code=220202&_rticket=1659295844600&device_platform=android&iid=7126483246137526017&build_number=22.2.2&locale=en&op_region=TR&version_code=220202&timezone_name=Europe%2FIstanbul&cdid=d34c0cde-5c9d-490e-a537-375f3bdc4420&openudid=7373de1aae9670c2&sys_region=US&device_id=6982468005205345798&app_language=en&resolution=1440*2560&device_brand=samsung&language=en&os_version=7.0&aid=1340", data)
  17.     if err != nil {
  18.         log.Fatal(err)
  19.     }
  20.     req.Header.Set("Accept", "*/*")
  21.     req.Header.Set("Accept-Encoding", "gzip, deflate")
  22.     req.Header.Set("Connection", "keep-alive")
  23.     req.Header.Set("Content-Length", "250")
  24.     req.Header.Set("Content-Type", "application/x-www-form-urlencoded; charset=UTF-8")
  25.     req.Header.Set("Cookie", "store-idc=alisg; store-country-code=tr; install_id=7126483246137526017; ttreq=1$f4004ac40e53afeeffa8f4a65e1f748fb152b5aa; odin_tt=8b3fd6f27f471c6854ce1879656e38678d5a733f4ccb243d696fd0e116c2db2b884c3b451bc9eecf19bdae2c38a3079c66202c4741b6199dce36b4a0ad34090e1261eaff30f8c4b26267e76512a16bf8")
  26.     req.Header.Set("Host", "api-va.tiktokv.com")
  27.     req.Header.Set("User-Agent", "okhttp/3.10.0.1")
  28.     req.Header.Set("X-Argus", "oDRCwW1TJJHa4BXRfKZnfmp1XwC/9tqplChzLkxQD5mT+J/8nQ/x6G4S57BuzPQdN8mgACKB2CbUo7TNilMN0B49Ek4KW8RVui7IrZy8SLek585Fo+gbXXsOFTFmR+rrLP8uTKHXjV0KBbT38x0xcpWrwk1aZPQHY1ormOnXb64zRP+ca/Dqa2XDLyH72xOWThgF3N1psE4tB6RCS7+9lf/+aPId6RR3oPQKDawyaAfkA2c59/K1WVIeBnV7Mhi4r3Rl3i+wSn4j+HvahmqzJItN")
  29.     req.Header.Set("X-Gorgon", "0404c00b0405f78c0f72957ee83f764555c0e375c2c04b1d570f")
  30.     req.Header.Set("X-Khronos", "1659296339")
  31.     req.Header.Set("X-Ladon", "i2d9Oe5L2IkLZ7LxO+3LhII4pZZo1clF+ME4k6n+zBpCy4ES")
  32.     req.Header.Set("X-SS-REQ-TICKET", "1659295844634")
  33.     req.Header.Set("X-SS-STUB", "01F7D02E1441BAC4DA2860125736CA93")
  34.     req.Header.Set("passport-sdk-version", "19")
  35.     req.Header.Set("sdk-version", "2")
  36.     req.Header.Set("x-vc-bdturing-sdk-version", "2.1.0.cn")
  37.     resp, err := client.Do(req)
  38.     if err != nil {
  39.         log.Fatal(err)
  40.     }
  41.     defer resp.Body.Close()
  42.     bodyText, err := ioutil.ReadAll(resp.Body)
  43.     if err != nil {
  44.         log.Fatal(err)
  45.     }
  46.     fmt.Printf("%s", bodyText)
  47. }
  48.  
  49. func main() {
  50.     threads := 1000
  51.     amount := 20
  52.  
  53.     c := goccm.New(threads)
  54.  
  55.     for i := 1; i < (amount); i++ {
  56.         c.Wait()
  57.  
  58.         go view()
  59.     }
  60.  
  61.     c.WaitAllDone()
  62. }
  63.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement