直播源IP地址更新

说明

当您填入扫描后的IP并提交后,将会生成一个新的连接,格式为 https://817817.xyz/994442e7-0cbb-9918-6a9c-4131421e9dc1/hls/17/index.m3u8,其中994442e7-0cbb-9918-6a9c-4131421e9dc1是唯一的标识符。当您在此链接后面加上原始连接(例如:http://1.1.1.1:808/hls/17/index.m3u8),将会跳转到您上传的IP地址(例如:http://1.1.1.1:808/hls/17/index.m3u8),以提供直播流源IP地址的更新服务。如果您在使用我们的服务时遇到任何问题或需要帮助,请在恩山论坛回复我们,我们将尽快给您回复解决方案。感谢您对我们的支持!

代码示例

可以通过接口直接上传


#!/bin/bash
send_request() {
local sipr="$1"
local port="$2"
local path="$3"
local uuid="$4"
local template="$5"

nmap -n -p "$port" "$sipr" -Pn --script http-title --script-args http-title.url-path="$path" --open --min-hostgroup 1 -oG - | awk '/Up$/{print $2}' | \
jq -nR "{ips: [inputs], port: $port, path: \"$path\",template: \"$template\"}" | \
curl -H "Content-Type: application/json" -X POST -d @- "http://817817.xyz/$uuid/\"
echo
}
send_request "1.1.1.1-254" "9901" "/tsfile/live/1067_1.m3u8" "0000" "https://php.ilpl.me/iptv/template/0000.txt"