※左右にスクロールできます(スマホの方)
use LWP::Simple;
$c = 0;
$t = 0;
LS:
$t = $t + 1;
$c = $c + 1;
if($c == 9){$c = 1;}
if($c == 1){
$a = get('https://www.ugtop.com/spill.shtml');
$p = index($a,"blue");
$p = $p + 5;
$a = substr($a,$p);
$p = index($a,"<");
$a = substr($a,0,$p);
}
if($c == 2){
$a = get('https://rakko.tools/tools/2/');
$p = index($a,"/tr>");
$a = substr($a,$p);
$p = index($a,"<span>");
$p = $p + 6;
$a = substr($a,$p);
$p = index($a,"<");
$a = substr($a,0,$p);
}
if($c == 3){
$a = get('http://www.axisnetworks.biz/tools/gip/');
$p = rindex($a,"name=");
$p = $p + 10;
$a = substr($a,$p);
$p = index($a,"<a");
$p = $p - 2;
$a = substr($a,0,$p);
}
if($c == 4){
$a = get('https://www.luft.co.jp/cgi/ipcheck.php');
$p = index($a,"value");
$p = $p + 7;
$a = substr($a,$p);
$p = index($a,"size");
$p = $p - 2;
$a = substr($a,0,$p);
}
if($c == 5){
$a = get('http://globalip.me/');
$p = index($a,"<b>");
$p = $p + 3;
$a = substr($a,$p);
$p = index($a,"<");
$a = substr($a,0,$p);
}
if($c == 6){
$a = get('http://httpbin.org/ip');
$p = index($a,"origin");
$p = $p + 10;
$a = substr($a,$p);
$p = index($a,chr(34));
$a = substr($a,0,$p);
}
if($c == 7){
$a = get('https://amksystem.com/tool/ip-info.php');
$p = index($a,"crimson");
$p = $p + 9;
$a = substr($a,$p);
$p = index($a,"<");
$a = substr($a,0,$p);
}
if($c == 8){
$a = get('https://on-ze.com/tools/global-ip/');
$p = index($a,"value");
$p = $p + 7;
$a = substr($a,$p);
$p = index($a,chr(34));
$a = substr($a,0,$p);
}
print $c;
print ":$a\r\n";
if($a !~ /^([0-9]{1,3}\.){3}[0-9]{1,3}/){goto LS;}
if(($oldip ne $a)or($t>1920)){
$oldip = $a;
$t = 0;
get('https://mydnsのID:mydnsのパスワード@ipv4.mydns.jp/login.html');
}
sleep 45;
goto LS;