How to know the hash of pictures vk.com?

I was able to log in vk.com using cURL, but then a new question arose, which is already an hour can't find a solution. I want to put like on the photo. For this you wish to send a POST request to the server vk.com with some parameters (ID, pictures, etc.). One of these parameters is a hash. How and what was the form of hashed of course, I don't know. But in another case. In the HTML source code I can't find this hash. Clicking on like is triggered the function "Photoview.like()". The function takes no parameters. Inside funtion hash is taken from a global variable ph. I originally planned to parse the page and send the request with hash, but I can't understand where this hash. Maybe someone has already seen this, where do I find this hash?

Thank you very much.
September 26th 19 at 06:22
4 answers
September 26th 19 at 06:24
Why not to use API? Still need a lot of akkov and proxy, if bots what to do, so at least parse the page and Kurla fooling don't have to.
The fact that I and IPA is not used. The problem was solved, but couldn't parse it :) - jovanny_Rath40 commented on September 26th 19 at 06:27
Much easier - and the data normally, and the extra movements do not... - Justyn.Hagenes commented on September 26th 19 at 06:30
so through the API seems to be impossible like put....you can add to your bookmarks "like" but it's kinda not like........or am I wrong ? - elody2 commented on September 26th 19 at 06:33
Yes, even salicina. https://vk.com/dev/likes.add - Justyn.Hagenes commented on September 26th 19 at 06:36
September 26th 19 at 06:26
You have to go deeper =)

prntscr.com/47ry82
and how do you know what file creates the global variable cur ? - jovanny_Rath40 commented on September 26th 19 at 06:29
cur - the global object in fact. But the hash is obtained from the query al_photos.php via POST with parameters example:

act:show
al:1
list:wall3205011_4265
module:feed
photo:209734_335721180

In response to this, I had some mess with json:

........likes":2,"actions":{"spam":1,"save":1},"desc":"this is the third year in a row, offer to purchase from us natural honey from the home apiary)

1900 RUB - 3l. honey meadow. herbs.

we accept orders until 8 August.

KST option in honeycomb is also possible!)","hash":"bd72852b750fa56e2d",....

There are a few hashes, I cut the one that falls under the index of the current pictures in cur.pvData - Justyn.Hagenes commented on September 26th 19 at 06:32
Yes, thank you. I have already figured out. Wrote to the above in your answer. - elody2 commented on September 26th 19 at 06:35
it has taken me a little early to see), But nothing was fun to dig in the bowels of the child "the Russian Olympiad winners" :) - Justyn.Hagenes commented on September 26th 19 at 06:38
September 26th 19 at 06:28
6a591b2e195b4b1699cdbe4840b34d0e.PNG
he Granitsa in onlike.
And to put, for example if you go to the page or post (if you like the post) or on the page itself the pictures ( if you like the picture)
write autolike - throw on github , and page me in a PM =) want to see - jovanny_Rath40 commented on September 26th 19 at 06:31
anyways hash pictures can be obtained as follows.
When you know id and album id photos - send a POST here
vk.com/al_photos.php
this crap
act=show&al=1&list=album-33885726_00/rev?z=photo-33885726_333312304/album-33885726_00/rev&module=public&photo=-33885726_333312304

where you have to substitute your values
the report will get strange text (almost JSON only at the beginning and at the end of x-nya some sort)
there for ID photos can be found hash - Justyn.Hagenes commented on September 26th 19 at 06:34
Thank you very much, I will try Your method. - elody2 commented on September 26th 19 at 06:37
September 26th 19 at 06:30
Thank you! From wall posts is really a hash is, but from the photos, unfortunately, no.
screencast.com/t/SxLW358wWB

Find more questions by tags HashingJavaScriptPHPVKontakteWeb Development