Ever since I took the lead in using Weibo’s cloud storage as the image repository for the Secondary Random API, there have been many similar Secondary Random APIs extended on the internet, and after picking a few of these I know of to visit and look at, I realized that a lot of the images look quite familiar. And the links to the images can also be found in my database, isn’t this what I uploaded?
Are they all captured from me?
Of course, I don’t know what I’m talking about, but I need to know what I’m talking about.
Then selected my known ten API interface, are stored in the Sina graph bed of the secondary API. hanging on the server to collect a morning, the collection of almost 100,000, after screening the duplication of invalid after only about 10,000 left. This is surprising, which means that the data of the ten interfaces are basically the same.
Then through the program to analyze the link uploader, in the 10,000, 75% of the pictures are from the fantasy field of the bed!
Although it’s no secret that Sina users can be identified by their Sina image addresses, it’s a good idea to analyze the program to find out who uploaded the links.
Online demo This is the js version, the code can be accessed by right clicking directly.
Through the identification can be found, a large number of images in the API are from the fantasy field of microblogging uploads, that is, I uploaded, those so-called API is not a pirated version of my own heart have a b number
Principle Revealed:
As the registered microblogging account uid is very big, the uploaded picture is basically 007, so the following picture is I casually picked an old number on the microblogging to copy it over
The link is https://wxt.sinaimg.cn/thumb300/9d0d09ably1fsn7m0jyzzj20m80cidgm.jpg's picture
Extract the filename 9d0d09ably1fsn7m0jyzzj20m80cidgm, the first 8 bits of 9d0d09ab converted to hexadecimal into 2634877355, which is the user uid.
Then splice in the address of the microblogging user’s homepage: https://weibo.com/u/+uid

If there is this kind of http://wx1.sinaimg.cn/mw690/0072Vf1pgy1foxkfv4t7bj31hc0u018w.jpg, 005, 006, 007 and so on, you can use 62 to convert it.
As for the reason why it appears this way, it should be found that the 8-bit hexadecimal system can’t be stored anymore.
https://weibo.com/u/6456124939
