DNS.COM轮播IP脚本参考

for(;;){
sleep(5);
//domain随机IP - clouder dns解決
//$domain = '104.'.rand(16,27).'.'.rand(0,255).'.'.rand(1,254);
$ip_list = array(
'104.16.64.',
'104.16.32.',
'104.16.224.',
'104.17.192.',
'104.25.160.',
'104.16.192.',
'104.16.224.',
);
$domain = $ip_list[rand(0,count($ip_list))].rand(1,254);
echo $domain." 设置开始"."\n\r";
//dns.com 自动化轮询解析
$cookie = 'UM_distinctid=179e987bbd11d2-05c512e256b9f3-2363163-1aeaa0-179e987bbd21eb; Hm_lvt_5fa906003743680637f43659e6884b0b=1626165302,1626526872,1626706499,1627106194; CNZZDATA1258233423=265078791-1608188911-%7C1627369393; gfip=1; source_uri=eyJpdiI6Ik9mdDVNcXFMZWpZMFFBVzZOTkhwYWc9PSIsInZhbHVlIjoiQ1hzU1hCSHY5aEE4OWpaTVdpZ01CSEJBSDBVZTZ3RUdNelVRdDBKd2FDS2ZtZFR3NFQzSG4wQ00rQ1l4TVhKTiIsIm1hYyI6IjczOGYwN2I0NmVkNjZhYmY1YjQwODk3ZDkxMDRlNzEwMDBhZTI0YTc1NGJmNTM3NGFiMzU2ZTk5ZWY3MjJjYTMifQ%3D%3D; Hm_lvt_03fcdd8038a49ec514366b798fc9ccbe=1626526864,1626706493,1627106187,1627372275; Hm_lpvt_03fcdd8038a49ec514366b798fc9ccbe=1627372832; Hm_lpvt_5fa906003743680637f43659e6884b0b=1627373991; XSRF-TOKEN=eyJpdiI6Ik9rWFAycU5sak5Pb3plUG1FUUR0Rmc9PSIsInZhbHVlIjoiUElXXC94Q0EwT1RDTWt5M1FyeDMzUXdjZ0RvZFFFdzlHdUROdGNyK1E3ZGlTdXZBUDVMN1BmQjhEd1BiK3l2XC9NQWRXRXpsQXNSNzdlUU55THlzTHhjdz09IiwibWFjIjoiMzkyMzc0YWU2NGU0ODM4MjkzYTk5YzM4MDc0YWE4NjA3ZjExOGE0NTBjZTllMmZkYzIzOTY2OTNhZTE1ZDJlYSJ9; dns_session=eyJpdiI6IlIzQW5zSzQzdmwrXC9TV1BEZktERzJBPT0iLCJ2YWx1ZSI6Ikl4WEVGSG42cXVKTm0xUmtqVmt3VzVpQ0lEbXF1RVwvNTMyTlc0akwzTlN2RGZRR2FheUNIbE5UYTJkSHd3Z3Nramw5Kzc0anZFaE8zamowUWJ1R3EyZz09IiwibWFjIjoiN2I5NTk4MTMxOGQwMmVmMWJjMzZmNDdjODg5NGIwZDc4MGU3MzA1MDgxNjEzNmJjYzdlNzY2OWQ4ZmE5NTAxNSJ9';
$domain_id = '060003950';
$domain_ip = $domain;
$domain_jiexi_id = '003736850';
$record = 'm';
$ch = curl_init();
$date = '_token=C9RbkfkloSHAd5v0avJNRGJdQThQgtNdqTUM2FLd&domain_id='.$domain_id.'&record='.$record.'&type=A&value='.$domain_ip.'&mx=1&ttl=300&view_id=0&id='.$domain_jiexi_id;
$header = array(
'authority: www.dns.com',
'sec-ch-ua: " Not;A Brand";v="99", "Google Chrome";v="91", "Chromium";v="91"',
'accept: */*',
'x-requested-with: XMLHttpRequest',
'sec-ch-ua-mobile: ?0',
'user-agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.164 Safari/537.36',
'content-type: application/x-www-form-urlencoded; charset=UTF-8',
'origin: https://www.dns.com',
'sec-fetch-site: same-origin',
'sec-fetch-mode: cors',
'sec-fetch-dest: empty',
'referer: https://www.dns.com/domain/record/'.$domain_id,
'accept-language: zh-CN,zh;q=0.9',
"cookie: $cookie",
);
curl_setopt($ch,CURLOPT_URL,'https://www.dns.com/domain/updateRecord');
curl_setopt($ch,CURLOPT_RETURNTRANSFER,1);
curl_setopt($ch,CURLOPT_POST,1);
curl_setopt($ch,CURLOPT_POSTFIELDS,$date);
curl_setopt($ch,CURLOPT_HTTPHEADER,$header);
curl_setopt($ch,CURLOPT_FOLLOWLOCATION,1);
$res1 = curl_exec($ch);
var_dump($res1);
}

发表评论

邮箱地址不会被公开。 必填项已用*标注