Using the tool Network Mapping: ZoomEye (https://www.zoomeye.org/)
- Hotel Source Acquisition
First, you need to find valid hotel source IP addresses, and then download the playlist on the server of that IP address.
To find valid hotel source IP addresses, you can search for keywords like "iptv/live/zh_cn.js" in the mapping space, along with regional keywords, to find some hotel source IP addresses. Then, by using IP+/iptv/live/1000.json?key=txiptv, you can obtain the JSON content of the program list. Finally, you can use a programming language to extract the program names and links from this JSON to create a program list.
For example, by searching "iptv/live/zh_cn.js" on ZoomEye:
The first result is 219.137.29.213:4433 in Guangzhou. Then, by accessing http://219.137.29.213:4433/iptv/live/1000.json?key=txiptv, you can get the JSON content of the program:
This program list has 29 items, and both the program names and URLs are in this JSON data. We can open the URL of the first item to test if it can be played normally:
The program can be played normally. Finally, by using regular expressions or relevant code, we can extract the required name and URL values to obtain the program list we need.
For example, we can also search "zhgxtv" on ZoomEye:
The first result is 117.44.0.79:20000 in Ganzhou. Then, by accessing http://117.44.0.79:20000/ZHGXTV/Public/json/live_interface.txt, you can get the program list:
The webpage displays garbled characters, so we can right-click and choose "Save Page As" (I am using Firefox browser, other browsers are similar)
Let's take a look at the downloaded txt file:
The program names are displayed correctly. It is worth noting that the IP at the front of this program list, 10.8.8.200, is an internal IP. If we want to play it normally, we need to replace 10.8.8.200 with the IP we found earlier, which is 117.44.0.79:20000. We can replace 10.8.8.200 with 117.44.0.79:20000 in bulk, and the replaced result is the program list we need:
Let's test if the program can be played normally:
-
Additional Information
-
We can add conditions to obtain the programs we need, such as adding regional restrictions:
ZHGXTV + subdivisions:"Guangxi" only searches for hotel source IPs in Guangxi.
-
Not every IP obtained from the mapping space has program sources. Usually, the ones with the most recent dates can find related program lists. In addition, logged-in users or advanced accounts may obtain more data, increasing the chances of obtaining valid IPs.
-
The special keywords for hotel sources are not only "iptv/live/zh_cn.js" and "ZHGXTV". To find hotel sources, you need to find the corresponding keywords and the corresponding program list positions. There are also some other keywords to explore.
-
Based on the above principles, you can design Python code (such as the Python code shared in the previous article on automatically obtaining hotel source programs through FOFA) to automatically obtain IPs and match program lists.
-
Obtaining valid hotel source IPs is not limited to obtaining them from mapping spaces. You can also scan IP ranges and test whether the corresponding program list web pages can be accessed normally. If they can be accessed normally, they are considered valid IPs, and then you can obtain and save the program lists.