51Testing软件测试论坛

 找回密码
 (注-册)加入51Testing

QQ登录

只需一步,快速开始

微信登录,快人一步

手机号码,快捷登录

查看: 1647|回复: 2
打印 上一主题 下一主题

[求助] 安全测试

[复制链接]

该用户从未签到

跳转到指定楼层
1#
发表于 2009-4-27 16:15:03 | 只看该作者 回帖奖励 |倒序浏览 |阅读模式
有谁知道一些安全测试的方法,可以交流一下不?
分享到:  QQ好友和群QQ好友和群 QQ空间QQ空间 腾讯微博腾讯微博 腾讯朋友腾讯朋友
收藏收藏
回复

使用道具 举报

该用户从未签到

2#
 楼主| 发表于 2009-8-7 14:34:29 | 只看该作者

关于loadrunner 脚本的修改

脚本是用LR做B/S系统的性能测试
#include "web_api.h"


Action()
{
        web_add_cookie("DvForum=username=jU2PfwyohI8=; DOMAIN=mncg.788111.com");

        web_add_cookie("__utma=249827418.4045048687669949400.1249543856.1249622971.1249623614.16; DOMAIN=mncg.788111.com");

        web_add_cookie("__utmz=249827418.1249543856.1.1.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); DOMAIN=mncg.788111.com");

        web_add_cookie("__utmb=249827418.1.10.1249623614; DOMAIN=mncg.788111.com");

        web_url("index.html",
                "URL=http://mncg.788111.com/2009/index.html",
                "Resource=0",
                "RecContentType=text/html",
                "Referer=",
                "Snapshot=t1.inf",
                "Mode=HTML",
                EXTRARES,
                "Url=../images/main_bg.jpg", ENDITEM,
                "Url=../images/logo.jpg", ENDITEM,
                "Url=../images/icon_login.gif", ENDITEM,
                "Url=../images/icon_star.gif", ENDITEM,
                "Url=../images/nav_bg.jpg", ENDITEM,
                "Url=../images/nav_right.jpg", ENDITEM,
                "Url=../images/nav_left.jpg", ENDITEM,
                "Url=../images/frame_t_bg.jpg", ENDITEM,
                "Url=../images/frame_b_bg.jpg", ENDITEM,
                "Url=../images/dot_line.jpg", ENDITEM,
                "Url=../images/icon_king1.gif", ENDITEM,
                "Url=../images/icon_king2.gif", ENDITEM,
                "Url=http://www.google-analytics.com/ga.js", ENDITEM,
                "Url=images/main_bg.jpg", "Referer=http://mncg.788111.com/2009/login.aspx", ENDITEM,
                "Url=images/frame_t_bg.jpg", "Referer=http://mncg.788111.com/2009/login.aspx", ENDITEM,
                "Url=images/frame_b_bg.jpg", "Referer=http://mncg.788111.com/2009/login.aspx", ENDITEM,
                "Url=images/icon_lock.jpg", "Referer=http://mncg.788111.com/2009/login.aspx", ENDITEM,
                LAST);

        web_submit_data("login.aspx_2",
                "Action=http://mncg.788111.com/2009/login.aspx",
                "Method=POST",
                "RecContentType=text/html",
                "Referer=http://mncg.788111.com/2009/login.aspx",
                "Snapshot=t3.inf",
                "Mode=HTML",
                ITEMDATA,
                "Name=__EVENTTARGET", "Value=", ENDITEM,
                "Name=__EVENTARGUMENT", "Value=", ENDITEM,
                "Name=__VIEWSTATE", "Value=/wEPDwUJMTQ3MjU2MTIxD2QWAgIBD2QWBAIBDxYCHgdWaXNpYmxlZ2QCAw8WAh8AaGRkOSOZqAcstYgWw2qVQxcHboF03EI=", ENDITEM,
                "Name=txt_username", "Value=澶у", ENDITEM,
                "Name=txt_userpass", "Value=123456", ENDITEM,
                "Name=ddlBP", "Value=鏉窞甯?" ENDITEM                "Name=Button1", "Value= 鐧?褰?", ENDITEM,
                "Name=__EVENTVALIDATION", "Value=/wEWEAL9tPSKDAK3u5vhBALH/ISaCgK3hbWnBQLTvOWuBALbp92KBQL7l7WnBQKel7WnBQKX9t2KBQLjqfCbBQKy27OnBQKlz6eyBQKErLWnBQLH19ysBAKm7NmxBgKM54rGBnAZ5b4526yab7my5/s0ZTnmwcw0", ENDITEM,
                EXTRARES,
                "Url=images/main_bg.jpg", ENDITEM,
                "Url=images/frame_t_bg.jpg", ENDITEM,
                "Url=images/frame_b_bg.jpg", ENDITEM,
                "Url=images/icon_lock.jpg", ENDITEM,
                LAST);
        
        web_link("涓汉宸ヤ綔瀹?,
        "Text=涓汉宸ヤ綔瀹?,
                "Snapshot=t4.inf",

                EXTRARES ,
                "Url=images/main_bg.jpg", ENDITEM,
                "Url=images/left_menu_bg.jpg", ENDITEM,
                "Url=images/left_menu_top.jpg", ENDITEM,
                "Url=images/left_menu.jpg", ENDITEM,
                "Url=images/left_menu_hover_bg.gif", ENDITEM,
                "Url=images/dot_line.gif", ENDITEM,
                "Url=images/main_content_title.jpg", ENDITEM,
                "Url=images/icon_login.gif", ENDITEM,
                "Url=images/icon_star.gif", ENDITEM,
                "Url=images/logo.jpg", ENDITEM,
                "Url=images/icon_arrow.gif", ENDITEM,
                "Url=images/icon_arrow_hover.gif", ENDITEM,
                "Url=images/main_content_top.jpg", ENDITEM,
                "Url=images/main_content_bottom.jpg", ENDITEM,
                "Url=http://www.google-analytics.com/ga.js ", ENDITEM,
                "Url=http://www.google-analytics.com/__utm.gif?utmwv=4.3.1&utmn=58556331&utmhn=mncg.788111.com&utmcs=utf-8&utmsr=1280x960&utmsc=16-bit&utmul=zh-cn&utmje=1&utmfl=-&utmdt=%E6%A8%A1%E6%8B%9F%E7%82%92%E8%82%A1--%E4%B8%AA%E4%BA%BA%E4%BB%93%E5%BA%93&utmhid=2015050309&utmr=0&utmp=/2009/userstockInfo.aspx&utmac=UA-4828336-1&utmcc=__utma%3D249827418.4045048687669949400.1249543856.1249623614.1249624039.17%3B%2B__utmz%3D249827418.1249543856.1.1.utmcsr%3D(direct)%7Cutmccn%3D(direct)%7Cutmcmd%3D(none)%3B", ENDITEM,
                LAST);

        return 0;
}

出错提示是:
Action.c (63): missing "
Action.c (63): missing "
Action.c (67): undeclared identifier `EXTRARES'
Action.c (68): undeclared identifier `ENDITEM'
Action.c (82): missing "
c:\\documents and settings\\hufang\\local settings\\temp\\noname8\\\\combined_noname8.c (4): 5 errors, not writing pre_cci.ci
回复 支持 反对

使用道具 举报

该用户从未签到

3#
 楼主| 发表于 2009-8-7 14:34:57 | 只看该作者
应该怎么改呢
回复 支持 反对

使用道具 举报

本版积分规则

关闭

站长推荐上一条 /1 下一条

小黑屋|手机版|Archiver|51Testing软件测试网 ( 沪ICP备05003035号 关于我们

GMT+8, 2024-11-11 06:40 , Processed in 0.063752 second(s), 24 queries .

Powered by Discuz! X3.2

© 2001-2024 Comsenz Inc.

快速回复 返回顶部 返回列表