Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- package main
- import (
- "fmt"
- )
- const (
- // BaseURLString represents host for all calls.
- BaseURLString = "https://i.instagram.com/api/v1"
- // Login path to login to instagram.
- Login = "/accounts/login/"
- // Setup path to get setup cookie.
- Setup = "/fb/show_continue_as/"
- // UserAgent represent
- UserAgent = "Instagram 26.0.0.18.87 (iPhone7,1; iOS 10_2; en_RS; en-RS; scale=2.61; gamut=normal; 1080x1920) AppleWebKit/420+"
- // SigKey represent
- SigKey = "607d66fdb62e59094257ed48a3e15b4860db7b87c7174dd8320f668d463f1621"
- // PostRequest represent
- PostRequest = "POST"
- // GetRequest represent
- GetRequest = "GET"
- )
- var heders = [...]string{"X-IG-Capabilities: 36r/Bw==",
- "X-IG-Connection-Type: WiFi",
- "X-IG-Connection-Speed: 33kbps",
- "X-IG-App-ID: 124024574287414",
- "X-IG-ABR-Connection-Speed-KBPS: 0"}
- var uuid = generateUUID()
- var adid = generateUUID()
- var deviceID = generateUUID()
- var phoneID = generateUUID()
- var csrftoken = ""
- // main function to boot up everything
- func main() {
- fmt.Println(modelEncode(Payload{
- Csrftoken: "Xra9WJ2fp7LsSpQ0VxoJVtHXVxbSd9ag",
- DeviceID: "a5f15b03-84de-d372-fdf7-71e57bfe60c9",
- GUID: nil,
- LoginAttemptAccount: 0,
- Password: "koksanidja",
- PhoneID: "8413a154-8445-547c-bfac-947d6e35af2f",
- Username: "miljan_rakita"}))
- var url = BaseURLString
- //var url = "http://192.168.1.106:8888/hello.php"
- fmt.Println("URL:>", url)
- var req, err = http.NewRequest(PostRequest, url, nil)
- var client = &http.Client{}
- resp, err := client.Do(req)
- if err != nil {
- panic(err)
- }
- defer resp.Body.Close()
- fmt.Println("response Status:", resp.Status)
- fmt.Println("response Headers:", resp.Header)
- body, _ := ioutil.ReadAll(resp.Body)
- fmt.Println("response Body:", string(body))
- }
- /*
- var data = Payload{
- Csrftoken: "Xra9WJ2fp7LsSpQ0VxoJVtHXVxbSd9ag",
- DeviceID: "a5f15b03-84de-d372-fdf7-71e57bfe60c9",
- GUID: nil,
- LoginAttemptAccount: 0,
- Password: "koksanidja",
- PhoneID: "8413a154-8445-547c-bfac-947d6e35af2f",
- Username: "miljan_rakita"}
- */
Add Comment
Please, Sign In to add comment