Как сохранить куки в Инстаграм?



  • Сохраняю в файл txt вместе с логином и паролем.
    Я новичок и еще не очень разбираюсь в этом.
    В файл записывается данные с куки, но что-то мне кажеться что это неверный формат.
    Это верный формат куки? Если нет, то как его изменить?
    {"cookies":[{"creation":{"day_of_month":"20","day_of_week":"5","hour":"13","millisecond":"668","minute":"0","month":"3","second":"56","year":"2020"},"domain":".instagram.com","expires":{"day_of_month":"18","day_of_week":"1","hour":"13","millisecond":"668","minute":"0","month":"3","second":"56","year":"2030"},"has_expires":"1","httponly":"1","last_access":{"day_of_month":"20","day_of_week":"5","hour":"13","millisecond":"909","minute":"1","month":"3","second":"56","year":"2020"},"name":"ig_did","path":"/","secure":"1","value":"4EEFC41B-D0FD-485C-BCE0-AC7CC69C8D31"},{"creation":{"day_of_month":"20","day_of_week":"5","hour":"13","millisecond":"668","minute":"0","month":"3","second":"56","year":"2020"},"domain":".instagram.com","expires":{"day_of_month":"18","day_of_week":"1","hour":"13","millisecond":"668","minute":"0","month":"3","second":"56","year":"2030"},"has_expires":"1","httponly":"0","last_access":{"day_of_month":"20","day_of_week":"5","hour":"13","millisecond":"873","minute":"1","month":"3","second":"56","year":"2020"},"name":"mid","path":"/","secure":"1","value":"XnS-igAEAAGo3Lf3Mgl-GBNlZRYg"},{"creation":{"day_of_month":"20","day_of_week":"5","hour":"13","millisecond":"785","minute":"1","month":"3","second":"54","year":"2020"},"domain":".instagram.com","expires":{"day_of_month":"19","day_of_week":"5","hour":"13","millisecond":"527","minute":"2","month":"3","second":"0","year":"2021"},"has_expires":"1","httponly":"0","last_access":{"day_of_month":"20","day_of_week":"5","hour":"13","millisecond":"527","minute":"2","month":"3","second":"0","year":"2020"},"name":"csrftoken","path":"/","secure":"1","value":"GbNXuWzFfy0grK9tiQEnhetaoIJtQF9x"},{"creation":{"day_of_month":"20","day_of_week":"5","hour":"13","millisecond":"785","minute":"1","month":"3","second":"54","year":"2020"},"domain":".instagram.com","expires":{"day_of_month":"18","day_of_week":"4","hour":"13","millisecond":"527","minute":"2","month":"6","second":"0","year":"2020"},"has_expires":"1","httponly":"0","last_access":{"day_of_month":"20","day_of_week":"5","hour":"13","millisecond":"527","minute":"2","month":"3","second":"0","year":"2020"},"name":"ds_user_id","path":"/","secure":"1","value":"32207050074"},{"creation":{"day_of_month":"20","day_of_week":"5","hour":"13","millisecond":"785","minute":"1","month":"3","second":"54","year":"2020"},"domain":".instagram.com","expires":{"day_of_month":"20","day_of_week":"6","hour":"13","millisecond":"785","minute":"1","month":"3","second":"54","year":"2021"},"has_expires":"1","httponly":"1","last_access":{"day_of_month":"20","day_of_week":"5","hour":"13","millisecond":"785","minute":"1","month":"3","second":"54","year":"2020"},"name":"sessionid","path":"/","secure":"1","value":"32207050074%3AgrhryH7twu4OSX%3A20"},{"creation":{"day_of_month":"20","day_of_week":"5","hour":"13","millisecond":"97","minute":"1","month":"3","second":"55","year":"2020"},"domain":".instagram.com","expires":{"day_of_month":"0","day_of_week":"0","hour":"0","millisecond":"0","minute":"0","month":"0","second":"0","year":"0"},"has_expires":"0","httponly":"1","last_access":{"day_of_month":"20","day_of_week":"5","hour":"13","millisecond":"527","minute":"2","month":"3","second":"0","year":"2020"},"name":"rur","path":"/","secure":"1","value":"VLL"},{"creation":{"day_of_month":"20","day_of_week":"5","hour":"13","millisecond":"527","minute":"2","month":"3","second":"0","year":"2020"},"domain":".instagram.com","expires":{"day_of_month":"0","day_of_week":"0","hour":"0","millisecond":"0","minute":"0","month":"0","second":"0","year":"0"},"has_expires":"0","httponly":"1","last_access":{"day_of_month":"20","day_of_week":"5","hour":"13","millisecond":"527","minute":"2","month":"3","second":"0","year":"2020"},"name":"urlgen","path":"/","secure":"1","value":""{\"192.99.37.222\": 16276}:1jFHHm:nWuqezwvViUQ_9IHbtISkaFYm6A""}]}

    Нужен такой формат куки:
    rur=FRC;mid=XmjNwQABAAHIiFSnH_h8qZ3iRNFT;csrftoken=dyCWbhyRpn9IrWkcGTbFNDifSz8esw1c;ds_user_id=31517463454;sessionid=31517463454%3AhEin3uCL4HS2Wz%3A10;

    Как сделать такой формат?
    Надеюсь на вашу помощь)



  • @Nazar said in Как сохранить куки в Инстаграм?:

    Сохраняю в файл txt вместе с логином и паролем.
    Я новичок и еще не очень разбираюсь в этом.
    В файл записывается данные с куки, но что-то мне кажеться что это неверный формат.
    Это верный формат куки? Если нет, то как его изменить?

    Нужен такой формат куки:
    rur=FRC;mid=XmjNwQABAAHIiFSnH_h8qZ3iRNFT;csrftoken=dyCWbhyRpn9IrWkcGTbFNDifSz8esw1c;ds_user_id=31517463454;sessionid=31517463454%3AhEin3uCL4HS2Wz%3A10;

    Как сделать такой формат?
    Надеюсь на вашу помощь)

    Куки сохранённые в BAS работают только в BAS. Функции конвертации в какой либо другой вид нет.



  • @Fox Как добавить эту функцию?



  • @Nazar said in Как сохранить куки в Инстаграм?:

    @Fox Как добавить эту функцию?

    Если задаёте такой вопрос, то ответ "Ни как"



  • @Nazar есть конвертер из браузера в bas https://community.bablosoft.com/post/51004
    Можете попробовать сделать обратное преобразование.



  • @Nazar то есть, по аналогии сделать скрипт для Вашей схемы куски, но придётся разбираться.



  • @romanbiz В какой формат нужно сделать преобразование?



  • @Nazar у Вас в куки токен межсайтового запроса.
    https://community.bablosoft.com/search?term=Csrf&in=titlesposts

    https://hackerone.com/reports/174228
    изучайте



  • This post is deleted!


  • @romanbiz ок, спасибо


Log in to reply