|
4#
楼主 |
发表于 2008-12-17 10:33:51
|
只看该作者
唉……改用windows底层协议 可以录制脚本了
不过 完全不晓得要从哪里进行参数化
发送的数据包里面 那个才是登录名和密码啊 求高人帮我看看了 这样的脚本 可以用参数化吗?
Action()
{
lrs_create_socket("socket0", "TCP", "RemoteHost=O-SVR:80", LrsLastArg);
lrs_send("socket0", "buf0", LrsLastArg);
lrs_receive("socket0", "buf1", LrsLastArg);
lrs_disable_socket("socket0", DISABLE_SEND);
lrs_close_socket("socket0");
lrs_create_socket("socket1", "TCP", "LocalHost=0", "RemoteHost=204.2.166.91:80", LrsLastArg);
lrs_send("socket1", "buf2", LrsLastArg);
lrs_receive("socket1", "buf3", LrsLastArg);
lrs_create_socket("socket2", "TCP", "RemoteHost=SERVER1:9002", LrsLastArg);
lrs_send("socket2", "buf4", LrsLastArg);
lrs_receive("socket2", "buf5", LrsLastArg);
lrs_create_socket("socket3", "TCP", "RemoteHost=O-SVR:80", LrsLastArg);
lrs_send("socket3", "buf6", LrsLastArg);
lrs_receive("socket3", "buf7", LrsLastArg);
lrs_disable_socket("socket3", DISABLE_SEND);
lrs_close_socket("socket3");
return 0;
}
[ 本帖最后由 Giff 于 2008-12-17 10:36 编辑 ] |
|