search
Homephp教程PHP源码获取电台的动态ip

获取电台的动态ip

May 25, 2016 pm 05:11 PM
php

1. [代码]  

//filename: dns.php
//GET dns.php?mm=helong
<?php
$content = file_get_contents(&#39;ip.txt&#39;);
if($_GET["mm"]==&#39;helong&#39;)//简单认证
{
$ip = $_SERVER["REMOTE_ADDR"];
if($content!=$ip)
{
$xieru= fopen(&#39;ip.txt&#39;,&#39;w&#39;);
$result=fwrite($xieru,$ip); 
fclose($xieru); 
if($fwrite === false)
{
echo "update error!<br/>";
//飞信通知等代码....
}
else
echo "Change to ".$ip;
}
else
echo "No change ".$ip;
}
else
{
echo "Sorry,you don&#39;t have permission<br/>";
echo "Server ip: ".$content;
}

//dns.php文件上传到外部空间
//建立windows计划任务,执行下面的 bat

2. [代码]计划任务 批处理  

@echo off
rem 关闭回显命令

cd C:\Program Files\Internet Explorer\
rem 跳入IE所在目录

start iexplore.exe "http://yourdomain.org/dns.php?mm=helong"
rem 启动IE GET提交到外部空间

ping 127.1 -n 4 >nul 
rem 延时4秒
taskkill /im iexplore.exe /f
rem 关闭IE
rem 将以上代码保存到 postip.bat

                   

                   

Statement
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn

Hot AI Tools

Undresser.AI Undress

Undresser.AI Undress

AI-powered app for creating realistic nude photos

AI Clothes Remover

AI Clothes Remover

Online AI tool for removing clothes from photos.

Undress AI Tool

Undress AI Tool

Undress images for free

Clothoff.io

Clothoff.io

AI clothes remover

AI Hentai Generator

AI Hentai Generator

Generate AI Hentai for free.

Hot Article

R.E.P.O. Energy Crystals Explained and What They Do (Yellow Crystal)
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. Best Graphic Settings
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
R.E.P.O. How to Fix Audio if You Can't Hear Anyone
3 weeks agoBy尊渡假赌尊渡假赌尊渡假赌
WWE 2K25: How To Unlock Everything In MyRise
4 weeks agoBy尊渡假赌尊渡假赌尊渡假赌

Hot Tools

ZendStudio 13.5.1 Mac

ZendStudio 13.5.1 Mac

Powerful PHP integrated development environment

Dreamweaver Mac version

Dreamweaver Mac version

Visual web development tools

SecLists

SecLists

SecLists is the ultimate security tester's companion. It is a collection of various types of lists that are frequently used during security assessments, all in one place. SecLists helps make security testing more efficient and productive by conveniently providing all the lists a security tester might need. List types include usernames, passwords, URLs, fuzzing payloads, sensitive data patterns, web shells, and more. The tester can simply pull this repository onto a new test machine and he will have access to every type of list he needs.

VSCode Windows 64-bit Download

VSCode Windows 64-bit Download

A free and powerful IDE editor launched by Microsoft

Dreamweaver CS6

Dreamweaver CS6

Visual web development tools