51
Разработка / Re: Протокол VKontakte
« Last post by MIR on 26 06 2025, 15:36:51 »Поэтому именно лог ДО получения бана важен, там проблема. После - просто следствие.
Вот лог до момента получения 9ки, однотипные запросы в логе сократил и пометил #, а то длинноват получяется.
Code: [Select]
[2025-06-26 19:54:53 0BD0] [VKs] CVkProto::SetStatus iNewStatus = 40078, m_iStatus = 40071, m_iDesiredStatus = 40071 m_hWorkerThread = 0
[2025-06-26 19:54:53 0BD0] [VKs] CVkProto::SetStatus (2) iNewStatus = 40078, m_iStatus = 1, m_iDesiredStatus = 40078 oldStatus = 40071
[2025-06-26 19:54:53 0DE8] [VKs] CVkProto::WorkerThread: entering
[2025-06-26 19:54:53 0DE8] [VKs] CVkProto::RetrieveMyInfo
[2025-06-26 19:54:53 0DE8] [VKs] CVkProto::Push
[2025-06-26 19:54:53 0DE8] [VKs] CVkProto::ApplyCookies
[2025-06-26 19:54:53 0DE8] [VKs] CVkProto::ExecuteRequest
====
https://api.vk.com/method/users.get
access_token=*secret*&v=5.199&lang=ru
====
[2025-06-26 19:54:53 0DE8] [VKs] Connection request to api.vk.com:443 (Flags 11)....
[2025-06-26 19:54:53 0DE8] [VKs] (046A5498) Connecting to server api.vk.com:443....
[2025-06-26 19:54:53 0DE8] [VKs] (046A5498) Connecting to ip 87.240.137.207:443 ....
[2025-06-26 19:54:53 0BD0] [VKs] CVkProto::SetStatus (ret) iNewStatus = 40078, m_iStatus = 1, m_iDesiredStatus = 40078 oldStatus = 40071
[2025-06-26 19:54:53 0BD0] KeepStatus: assigning status 40078 (40071, 0) to VKs
[2025-06-26 19:54:53 0DE8] [VKs] (1364) Connected to api.vk.com:443
[2025-06-26 19:54:53 0DE8] [VKs] (1364 api.vk.com) Starting SSL/TLS negotiation
[2025-06-26 19:54:53 0DE8] [VKs] (1364 api.vk.com) SSL/TLS negotiation successful
{"response":[{"id":***,"first_name":"***","last_name":"***","can_access_closed":true,"is_closed":false}]}
[2025-06-26 19:54:53 0DE8] [VKs] CVkProto::GrabCookies: httoken=
[2025-06-26 19:54:53 0DE8] [VKs] CVkProto::GrabCookies: remixir=DELETED; expires=Thu, 01 Jan 1970 00:00:01 GMT; path=/; domain=.vk.com; secure; HttpOnly
[2025-06-26 19:54:53 0DE8] [VKs] CVkProto::SaveCookies: httoken=
[2025-06-26 19:54:53 0DE8] [VKs] CVkProto::OnReceiveMyInfo 200
[2025-06-26 19:54:53 0DE8] [VKs] CVkProto::CheckJsonResponse
[2025-06-26 19:54:53 0DE8] [VKs] CVkProto::CheckJsonResult
[2025-06-26 19:54:53 0DE8] [VKs] CVkProto::OnLoggedIn
[2025-06-26 19:54:53 0DE8] [VKs] CVkProto::SetServerStatus 40078 1
[2025-06-26 19:54:53 0DE8] [VKs] CVkProto::Push
[2025-06-26 19:54:53 0DE8] [VKs] CVkProto::RetrieveUserInfo (***)
[2025-06-26 19:54:53 0DE8] [VKs] CVkProto::Push
[2025-06-26 19:54:53 0DE8] [VKs] CVkProto::TrackVisitor
[2025-06-26 19:54:53 0DE8] [VKs] CVkProto::Push
[2025-06-26 19:54:53 0DE8] [VKs] CVkProto::RetrieveUnreadMessages
[2025-06-26 19:54:53 0DE8] [VKs] CVkProto::Push
[2025-06-26 19:54:53 0DE8] [VKs] CVkProto::RetrieveFriends
[2025-06-26 19:54:53 0DE8] [VKs] CVkProto::Push
[2025-06-26 19:54:53 0DE8] [VKs] CVkProto::RetrievePollingInfo
[2025-06-26 19:54:53 0DE8] [VKs] CVkProto::Push
[2025-06-26 19:54:53 0DE8] [VKs] CVkProto::ApplyCookies
[2025-06-26 19:54:53 0DE8] [VKs] CVkProto::ExecuteRequest
====
https://api.vk.com/method/execute.RetrieveUnreadConversations
access_token=*secret*&v=5.199&lang=ru
====
{"response":{"dialogs":{"count":536,"unread_count":90,"items":
#########Кучя данных#########
}}}
[2025-06-26 19:54:58 0DE8] [VKs] CVkProto::GrabCookies: remixir=DELETED; expires=Thu, 01 Jan 1970 00:00:01 GMT; path=/; domain=.vk.com; secure; HttpOnly
[2025-06-26 19:54:58 0DE8] [VKs] CVkProto::SaveCookies: httoken=
[2025-06-26 19:54:58 0DE8] [VKs] CVkProto::OnReceiveDlgs 200
[2025-06-26 19:54:58 0DE8] [VKs] CVkProto::CheckJsonResponse
[2025-06-26 19:54:58 0DE8] [VKs] CVkProto::CheckJsonResult
[2025-06-26 19:54:58 0DE8] [VKs] CVkProto::OnReceiveDlgs chatid = 297
[2025-06-26 19:54:58 0DE8] [VKs] CVkProto::AppendConversationChat 297
[2025-06-26 19:54:58 0DE8] [VKs] CVkProto::RetrieveChatInfo
[2025-06-26 19:54:58 0DE8] [VKs] CVkProto::Push
[2025-06-26 19:54:58 0DE8] [VKs] CVkProto::GetHistoryDlg 18218228
[2025-06-26 19:54:58 0DE8] [VKs] CVkProto::GetServerHistory
[2025-06-26 19:54:58 0DE8] [VKs] CVkProto::GetServerHistory 2000000297 0 100 0 0 18207841
[2025-06-26 19:54:58 0DE8] [VKs] CVkProto::Push
[2025-06-26 19:54:58 0DE8] [VKs] CVkProto::OnReceiveDlgs chatid = 348
[2025-06-26 19:54:58 0DE8] [VKs] CVkProto::AppendConversationChat 348
[2025-06-26 19:54:59 0DE8] [VKs] CVkProto::RetrieveChatInfo
[2025-06-26 19:54:59 0DE8] [VKs] CVkProto::Push
[2025-06-26 19:54:59 0DE8] [VKs] CVkProto::GetHistoryDlg 18218227
[2025-06-26 19:54:59 0DE8] [VKs] CVkProto::GetServerHistory
[2025-06-26 19:54:59 0DE8] [VKs] CVkProto::GetServerHistory 2000000348 0 100 0 0 18207842
#######Многократное повторение с другими значениями##########
[2025-06-26 19:55:00 0DE8] [VKs] CVkProto::Push
[2025-06-26 19:55:00 0DE8] [VKs] CVkProto::GetHistoryDlg 14732915
[2025-06-26 19:55:00 0DE8] [VKs] CVkProto::GetServerHistory
[2025-06-26 19:55:00 0DE8] [VKs] CVkProto::GetServerHistory 2000000006 0 100 0 0 14732915
[2025-06-26 19:55:00 0DE8] [VKs] CVkProto::Push
[2025-06-26 19:55:00 0DE8] [VKs] CVkProto::OnReceiveDlgs chatid = 70
[2025-06-26 19:55:00 0DE8] [VKs] CVkProto::AppendConversationChat 70
[2025-06-26 19:55:00 0DE8] [VKs] CVkProto::RetrieveChatInfo
[2025-06-26 19:55:00 0DE8] [VKs] CVkProto::Push
[2025-06-26 19:55:00 0DE8] [VKs] CVkProto::GetHistoryDlg 18194283
[2025-06-26 19:55:00 0DE8] [VKs] CVkProto::GetServerHistory
[2025-06-26 19:55:00 0DE8] [VKs] CVkProto::GetServerHistory 2000000070 0 100 0 0 18194283
[2025-06-26 19:55:00 0DE8] [VKs] CVkProto::Push
[2025-06-26 19:55:00 0DE8] [VKs] CVkProto::OnReceiveDlgs UserId = ***, iIndex = 00000000, numUnread = 0
[2025-06-26 19:55:00 0DE8] [VKs] CVkProto::OnReceiveDlgs add UserId = ***,
[2025-06-26 19:55:00 0DE8] [VKs] CVkProto::GetHistoryDlg 14628857
[2025-06-26 19:55:00 0DE8] [VKs] CVkProto::GetServerHistory
[2025-06-26 19:55:00 0DE8] [VKs] CVkProto::GetServerHistory ***, 0 100 0 0 14628857
[2025-06-26 19:55:00 0DE8] [VKs] CVkProto::Push
[2025-06-26 19:55:00 0DE8] [VKs] CVkProto::RetrieveUsersInformation
#######Многократное повторение с другими значениями##########
[2025-06-26 19:55:00 0DE8] [VKs] CVkProto::RetrieveUsersFrameInfo ####Кучя ID####
[2025-06-26 19:55:00 0DE8] [VKs] CVkProto::Push
#######Многократное повторение с другими значениями##########
[2025-06-26 19:55:00 0DE8] [VKs] CVkProto::RetrieveGroupInfo (#ID#)
[2025-06-26 19:55:00 0DE8] [VKs] CVkProto::Push
[2025-06-26 19:55:00 0DE8] [VKs] CVkProto::ApplyCookies
[2025-06-26 19:55:00 0DE8] [VKs] CVkProto::ExecuteRequest
====
https://api.vk.com/method/messages.getLongPollServer
access_token=*secret*&use_ssl=1&lp_version=3&v=5.199&lang=ru
====
{"response":{"server":"im.vk.com\/nim***","key":"***","ts":1755784529}}
[2025-06-26 19:55:00 0DE8] [VKs] CVkProto::GrabCookies: remixir=DELETED; expires=Thu, 01 Jan 1970 00:00:01 GMT; path=/; domain=.vk.com; secure; HttpOnly
[2025-06-26 19:55:00 0DE8] [VKs] CVkProto::SaveCookies: httoken=
[2025-06-26 19:55:00 0DE8] [VKs] CVkProto::OnReceivePollingInfo 200
[2025-06-26 19:55:00 0DE8] [VKs] CVkProto::CheckJsonResponse
[2025-06-26 19:55:00 0DE8] [VKs] CVkProto::CheckJsonResult
[2025-06-26 19:55:00 0DE8] [VKs] CVkProto::OnReceivePollingInfo m_hPollingThread is nullptr
[2025-06-26 19:55:00 0DE8] [VKs] CVkProto::OnReceivePollingInfo m_pollingTs = '1755784529' m_pollingKey = '***' m_pollingServer = 'im.vk.com/nim***'
[2025-06-26 19:55:00 0DE8] [VKs] CVkProto::OnReceivePollingInfo PollingThread starting...
[2025-06-26 19:55:00 0DE8] [VKs] CVkProto::ApplyCookies
[2025-06-26 19:55:00 0DE8] [VKs] CVkProto::ExecuteRequest
====
https://api.vk.com/method/account.setOffline
access_token=*secret*&v=5.199&lang=ru
====
[2025-06-26 19:55:00 0B7C] [VKs] CVkProto::PollingThread: entering
[2025-06-26 19:55:00 0B7C] [VKs] CVkProto::PollServer
[2025-06-26 19:55:00 0B7C] [VKs] CVkProto::PollServer (online)
[2025-06-26 19:55:00 0B7C] [VKs] Connection request to im.vk.com:443 (Flags 11)....
[2025-06-26 19:55:00 0B7C] [VKs] (049DA158) Connecting to server im.vk.com:443....
[2025-06-26 19:55:00 0B7C] [VKs] (049DA158) Connecting to ip 93.186.237.6:443 ....
{"response":1}
[2025-06-26 19:55:00 0DE8] [VKs] CVkProto::GrabCookies: remixir=DELETED; expires=Thu, 01 Jan 1970 00:00:01 GMT; path=/; domain=.vk.com; secure; HttpOnly
[2025-06-26 19:55:00 0DE8] [VKs] CVkProto::SaveCookies: httoken=
[2025-06-26 19:55:00 0DE8] [VKs] CVkProto::CheckJsonResponse
[2025-06-26 19:55:00 0DE8] [VKs] CVkProto::CheckJsonResult
[2025-06-26 19:55:00 0DE8] [VKs] CVkProto::OnReceiveSmth 1
[2025-06-26 19:55:00 0DE8] [VKs] CVkProto::ApplyCookies
[2025-06-26 19:55:00 0DE8] [VKs] CVkProto::ExecuteRequest
====
https://api.vk.com/method/execute.RetrieveUserInfo
access_token=*secret*&userid=***&fields=id%2C%20first_name%2C%20last_name%2C%20photo_100%2C%20bdate%2C%20sex%2C%20timezone%2C%20contacts%2C%20last_seen%2C%20online%2C%20status%2C%20country%2C%20city%2C%20relation%2C%20interests%2C%20activities%2C%20music%2C%20movies%2C%20tv%2C%20books%2C%20games%2C%20quotes%2C%20about%2C%20%20domain%2C%20can_write_private_message&v=5.199&lang=ru
====
access_token=vk1.a.***--***&userid=***&fields=id%2C%20first_name%2C%20last_name%2C%20photo_100%2C%20bdate%2C%20sex%2C%20timezone%2C%20contacts%2C%20last_seen%2C%20online%2C%20status%2C%20country%2C%20city%2C%20relation%2C%20interests%2C%20activities%2C%20music%2C%20movies%2C%20tv%2C%20books%2C%20games%2C%20quotes%2C%20about%2C%20%20domain%2C%20can_write_private_message&v=5.199&lang=ru
[2025-06-26 19:55:00 0B7C] [VKs] (1576) Connected to im.vk.com:443
[2025-06-26 19:55:00 0B7C] [VKs] (1576 im.vk.com) Starting SSL/TLS negotiation
[2025-06-26 19:55:00 0B7C] [VKs] (1576 im.vk.com) SSL/TLS negotiation successful
{"response":{"freeoffline":0,"norepeat":1,"usercount":null,"users":false},"execute_errors":[{"method":"users.get","error_code":9,"error_msg":"Flood control","view":null,"i18n_title":null}]}
[2025-06-26 19:55:00 0DE8] [VKs] CVkProto::GrabCookies: remixir=DELETED; expires=Thu, 01 Jan 1970 00:00:01 GMT; path=/; domain=.vk.com; secure; HttpOnly
[2025-06-26 19:55:00 0DE8] [VKs] CVkProto::SaveCookies: httoken=
[2025-06-26 19:55:00 0DE8] [VKs] CVkProto::OnReceiveUserFrameInfo 200
[2025-06-26 19:55:00 0DE8] [VKs] CVkProto::CheckJsonResponse
[2025-06-26 19:55:00 0DE8] [VKs] CVkProto::CheckJsonResult
[2025-06-26 19:55:00 0DE8] [VKs] CVkProto::WorkerThread: need sleep 1157 msec
[2025-06-26 19:55:02 0DE8] [VKs] CVkProto::ApplyCookies
[2025-06-26 19:55:02 0DE8] [VKs] CVkProto::ExecuteRequest