Posts Tagged ‘IP’

IP记录程序,PHP And ASP。。。

星期一, 一月 11th, 2010

先来个PHP的吧:

下载: ip.php
  1. <?php
  2. $str = $_SERVER["REMOTE_ADDR"]." ".date("Y-m-d H:i:s").chr(13).chr(10) ."<br />\n";
  3. $getip = $_SERVER["REMOTE_ADDR"];
  4. echo "Your IP is:\n" .$getip ."<hr>My E-Mail:LenovoUnion#Gmail.Com,Welcome contact me!";
  5. $fp = fopen("ip.htm","a");
  6. fwrite($fp,$str);
  7. fclose($fp);
  8. ?>

以下是ASP的:

下载: ip.asp
  1. <%
  2. Dim strIP
  3. strIP = Request.ServerVariables("HTTP_X_FORWARDED_FOR")
  4. If strIP = "" Then
  5. strIP = Request.ServerVariables("REMOTE_ADDR")
  6. ipFileAddr=Server.mapPath("ip.txt")
  7. getIP=Request.ServerVariables("remote_addr")
  8. set ipFS=Server.createObject("Scripting.FileSystemObject")
  9. set ipFile=ipFS.openTextFile(ipFileAddr,8)
  10. ipFile.write(getIP&" ")
  11. ipFile.writeLine(now())
  12. ipFile.close
  13. Response.Cookies("visited")="True"
  14. End If
  15. %>
  16. 当前时间:<%=Now%><br /><hr />
  17. <h1>请勿做坏事,谢谢合作!</h1><br /><br />
  18. 您的IP地址:<%=strIP%>
  19. <!-- By lsmr 2010.01.11-->

bginfo,在桌面上面显示IP,DNS等信息

星期二, 七月 28th, 2009

常常在桌面想看到员工的IP、DNS等等信息,或者说让员工自己找,他们也找不到,还不如来个这种显示软件来得快~~~

微软的东西:http://www.microsoft.com/technet/sysinternals/utilities/BgInfo.mspx

bginfo

下载: bgip.bat
  1. @echo off
  2. @bginfo ip.bgi /timer:0
  3. exit

有以下选项:

/TIMER:nn -Timeout period before applying configuration.
/POPUP -Display the information in a popup window.
/TASKBAR -Place an icon in the taskbar status area.
/ALL -Update wallpaper for all logged in users.
/LOG: -Write warnings and errors to a log file.
/SILENT -Don’t report errors.
/RTF: -Write the wallpaper text to an RTF file.
/NOLICPROMPT-Skips EULA(implies EULA consent).
For example:
bginfo C:\temp\config.bgi /timer:

中文大概意思对照:

/定时器:超时时间,然后再应用配置。
/POPUP 显示的信息可在弹出式窗口。
/TASKBAR 就地一个图标在任务栏状态区。
/所有 更新墙纸为所有登录用户。
/LOG: : <路径> ,写警告和错误日志文件。
/SILENT 静音模式,不要报告错误。
/ RTF格式: <路径> ,写的壁纸文字的RTF文件。
/ NOLICPROMPT , -跳过EULA(意味着EULA的同意) 。
例如:
bginfo C:\temp\config.bgi /timer:

/silent
/nolicprompt
/taskbar
/timer:

ip.bgi文件哪来?从Bginfo.exe配置完成后可以SAVE AS…出来一个就行了

COME ON BABY……youtube.com

星期四, 七月 2nd, 2009

YOUTUBE被封了不只一两天了,实在是受不了GFW了……

C:\windows\system32\drivers\etc\HOSTS

203.208.39.104 www.youtube.com
203.208.39.104 youtube.com
203.208.33.100 gdata.youtube.com
203.208.39.99 upload.youtube.com
203.208.39.99 insight.youtube.com
203.208.39.160 help.youtube.com
203.208.39.104 s.ytimg.com
203.208.39.104 i1.ytimg.com
203.208.39.104 i2.ytimg.com
203.208.39.104 i3.ytimg.com
203.208.39.104 i4.ytimg.com