分享

代理ip切换问题

 阿钢avckkrh3m1 2015-12-14
01import config;
02import web.form;
03import inet;
04import process;
05import inet.http;
06import winex.mouse;
07import mouse;
08import win.subclass;
09import sys;
10import inet.whttp;
11/*DSG{{*/
12mainForm = ..win.form( bottom=400;parent=...;text="aardio Form";right=600;scroll=1 )
13mainForm.add(
14static2={ dr=1;dl=1;bottom=381;ah=1;text="static2";left=58;dt=1;top=63;right=579;aw=1;db=1;z=2;transparent=1;cls="static" };
15static={ bottom=43;right=352;left=53;text="static";top=18;transparent=1;z=1;cls="static" }
16)
17/*}}*/
18 
19//不断更换IP
20 
21io.open();
22g_ip = "180.247.19.96";
23getIp = function(){    
24    var whttp = inet.whttp()   
25    var str = whttp.get("http://iframe.ip138.com/ic.asp? r="+tonumber(time.now()))
26    whttp.close()
27    return string.match(str,"\[(.*?)\]");
28 
29}
30 
31pdip=function(){
32        var ipstr=getIp()
33        io.print(ipstr)
34        if(ipstr==null){
35                win.msgbox("获取Ip失败!!!","aardio")
36                return false ;
37        }
38         
39        if(ipstr == g_ip){
40        return  true;
41             
42        }
43  
44}
45 
46    inet.clearCache();
47    inet.clearCookie();
48    inet.clearVisited();
49    inet.clearSesseion();
50    sleep(10000);
51var http = inet.http(,"80.247.19.96:8080");
52http.flags = 0x80000000/*_INTERNET_FLAG_RELOAD*/
53               | 0x4000000/*_INTERNET_FLAG_DONT_CACHE*/
54win.delay(5000);
55 
56if(pdip() != true){
57io.print("xxxx")
58return ;
59     
60}
61win.loopMessage();

    本站是提供个人知识管理的网络存储空间,所有内容均由用户发布,不代表本站观点。请注意甄别内容中的联系方式、诱导购买等信息,谨防诈骗。如发现有害或侵权内容,请点击一键举报。
    转藏 分享 献花(0

    0条评论

    发表

    请遵守用户 评论公约

    类似文章 更多