|
众所周知,cc.ua因为只能改NS,不能改SOA,导致需要双向解析CF,以下提供了一个强改SOA的方法,来自于隔壁论坛 F12控制台,运行: - const url = 'https://www.1gb.ua/registered.php?user=你自己的&sid=你自己的&advanced=0&w_domain=&w_plan=&xp1=&xp2=&promo=&tab_dnsedit=1&zone=你自己的';
- const generateNewSOASerial = () => {
- const now = new Date();
- return `${now.getUTCFullYear()}${String(now.getUTCMonth() + 1).padStart(2, '0')}${String(now.getUTCDate()).padStart(2, '0')}${String(now.getUTCHours()).padStart(2, '0')}${String(now.getUTCMinutes()).padStart(2, '0')}`;
- };
- const newSOASerial = generateNewSOASerial();
- const data = new URLSearchParams();
- data.append('user', '你自己的');
- data.append('sid', '你自己的');
- data.append('advanced', '0');
- data.append('w_domain', '');
- data.append('w_plan', '');
- data.append('xp1', '');
- data.append('xp2', '');
- data.append('promo', '');
- data.append('tab_dnsedit', '1');
- data.append('zone', '你自己的');
- data.append('postisunique', '你自己的');
- data.append('dns_name', '@');
- data.append('dns_type', 'SOA');
- data.append('dns_value', `你自己的.ns.cloudflare.com. 你自己的.ns.cloudflare.com. ${newSOASerial} 1200 600 1209600 3600`);
- data.append('s_add', '%E4%EE%E4%E0%F2%E8');
- data.append('dns_ver', '你自己的');
- fetch(url, {
- method: 'POST',
- headers: {
- 'Content-Type': 'application/x-www-form-urlencoded',
- 'Accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7',
- 'Accept-Encoding': 'gzip, deflate, br, zstd',
- 'Accept-Language': 'en-US,en;q=0.9',
- 'Cache-Control': 'max-age=0',
- 'Connection': 'keep-alive',
- 'Cookie': 'marker=你自己的; PHPSESSID=你自己的; chat=ua-livechat-你自己的; ASPSESSIONIDQCQDRQTQ=你自己的',
- 'Host': 'www.1gb.ua',
- 'Origin': 'https://www.1gb.ua',
- 'Referer': 'https://www.1gb.ua/registered.php?user=你自己的&sid=你自己的&advanced=0&w_domain=&w_plan=&xp1=&xp2=&promo=&tab_dnsedit=1&zone=你自己的',
- 'Sec-Ch-Ua': '"Not/A)Brand";v="8", "Chromium";v="126", "Google Chrome";v="126"',
- 'Sec-Ch-Ua-Mobile': '?0',
- 'Sec-Ch-Ua-Platform': '"Windows"',
- 'Sec-Fetch-Dest': 'document',
- 'Sec-Fetch-Mode': 'navigate',
- 'Sec-Fetch-Site': 'same-origin',
- 'Sec-Fetch-User': '?1',
- 'Upgrade-Insecure-Requests': '1',
- 'User-Agent': 'Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/128.0.0.0 Safari/537.36'
- },
- body: data
- })
- .then(response => response.text())
- .then(text => console.log(text))
- .catch(error => console.error('Error:', error))
复制代码
|
|