51Testing软件测试论坛

标题: 自动管理问题 [打印本页]

作者: fish_yy    时间: 2005-11-22 14:39
标题: 自动管理问题
在注册了http://www.ads4cn.com/newsbar/refferer.asp?tony_haha用户,如:abc以后为什么无法关联进入系统,我的脚本如下,不知道它采用的是什么技术

脚本如下

        web_add_cookie("cd545r6=b635865895; DOMAIN=www.ads4cn.com");

        web_add_cookie("nbref=tony%5Fhaha; DOMAIN=www.ads4cn.com");

        web_url("newsbar",
                "URL=http://www.ads4cn.com/newsbar",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=",
                "Snapshot=t6.inf",
                "Mode=HTML",
                EXTRARES,
                "URL=/newsbar/images/pixi_blue.gif", "Referer=http://www.ads4cn.com/newsbar/", ENDITEM,
                "URL=/newsbar/images/btn_contact_dn.gif", "Referer=http://www.ads4cn.com/newsbar/", ENDITEM,
                "URL=/newsbar/images/btn_news_dn.gif", "Referer=http://www.ads4cn.com/newsbar/", ENDITEM,
                "URL=/newsbar/images/btn_services_dn.gif", "Referer=http://www.ads4cn.com/newsbar/", ENDITEM,
                "URL=/newsbar/images/btn_home_dn.gif", "Referer=http://www.ads4cn.com/newsbar/", ENDITEM,
                "URL=/newsbar/images/btn_overview_dn.gif", "Referer=http://www.ads4cn.com/newsbar/", ENDITEM,
                LAST);

        web_url("tb160.htm",
                "URL=http://www.wangzhiku.com/mysurfbar/ppad/tb160.htm",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=",
                "Snapshot=t7.inf",
                "Mode=HTML",
                LAST);


        web_reg_save_param("jym",
                "LB=请输入:<font color=red>",
                "RB=</font>",
                LAST);



        web_reg_save_param("dth",
                "LB=name=\'dth\' value=\"",
                "RB=\">",
                LAST);

        web_url("s_login.htm",
                "URL=http://www.ads4cn.com/newsbar/s_login.htm",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=http://www.ads4cn.com/newsbar/",
                "Snapshot=t8.inf",
                "Mode=HTML",
                EXTRARES,
                "URL=images/nrnotice.gif", ENDITEM,
                "URL=images/pixi_blue.gif", ENDITEM,
                "URL=images/btn_contact_dn.gif", ENDITEM,
                "URL=images/btn_news_dn.gif", ENDITEM,
                "URL=images/btn_services_dn.gif", ENDITEM,
                "URL=images/btn_home_dn.gif", ENDITEM,
                "URL=images/btn_overview_dn.gif", ENDITEM,
                LAST);


        web_submit_data("s_chk.asp",
                "Action=http://www.ads4cn.com/newsbar/s_chk.asp",
                "Method=POST",
                "RecContentType=text/html",
                "Referer=http://www.ads4cn.com/newsbar/s_login.htm",
                "Snapshot=t9.inf",
                "Mode=HTML",
                ITEMDATA,
                "Name=user", "Value=abc", ENDITEM,
                "Name=pass", "Value=abcdefg", ENDITEM,
                "Name=confirm1", "Value={jym}", ENDITEM,
                "Name=dth", "Value={dth}", ENDITEM,
                "Name=B1", "Value=登陆系统", ENDITEM,
                EXTRARES,
                "URL=images/pixi_blue.gif", "Referer=http://www.ads4cn.com/newsbar/s_account.asp", ENDITEM,
                "URL=images/nrnotice2.gif", "Referer=http://www.ads4cn.com/newsbar/s_account.asp", ENDITEM,
                "URL=images/btn_contact_dn.gif", "Referer=http://www.ads4cn.com/newsbar/s_account.asp", ENDITEM,
                "URL=images/btn_news_dn.gif", "Referer=http://www.ads4cn.com/newsbar/s_account.asp", ENDITEM,
                "URL=images/btn_services_dn.gif", "Referer=http://www.ads4cn.com/newsbar/s_account.asp", ENDITEM,
                "URL=images/btn_home_dn.gif", "Referer=http://www.ads4cn.com/newsbar/s_account.asp", ENDITEM,
                "URL=images/btn_overview_dn.gif", "Referer=http://www.ads4cn.com/newsbar/s_account.asp", ENDITEM,
                LAST);

请指教
作者: fish_yy    时间: 2005-11-22 14:52
jym为检验码获取,dth为那个隐藏内容的获取




欢迎光临 51Testing软件测试论坛 (http://bbs.51testing.com/) Powered by Discuz! X3.2