chendaming007 发表于 2009-9-26 17:45:47

如何参数化Windows Sockets录制的脚本!

下面是data.ws里面的内容,为什么他是一个一个字节发送和接收的啊?
我应该怎样参数化登录用户呢?
请教各位大牛了,帮小弟一把!
sendbuf7 12
        "\xff\xfd\x03\xff\xfb\x01\xff\xfe\x05\xff\xfc"
        "!"

recvbuf8 68
        "\xff\xfe\x01\xff\xfb\x01"
        "CentOS release 5.3 (Final)\r\n"
        "Kernel 2.6.18-164.el5 on an i686\r\n"

sendbuf9 6
        "\xff\xfc\x01\xff\xfd\x01"

recvbuf10 7
        "login: "

sendbuf11 1
        "r"

recvbuf12 1
        "r"

sendbuf13 1
        "o"

recvbuf14 1
        "o"

sendbuf15 1
        "o"

recvbuf16 1
        "o"

sendbuf17 1
        "t"

recvbuf18 1
        "t"

sendbuf19 2
        "\r\n"

recvbuf20 12
        "\r\n"
        "Password: "

sendbuf21 12
        "chendaming\r\n"

recvbuf22 76
        "\r\n"
        "Last login: Sat Sep 26 14:14:52 from xxx.xxx.xxx.xxx\r\n"
        "# "

iori 发表于 2009-9-27 11:12:07

页: [1]
查看完整版本: 如何参数化Windows Sockets录制的脚本!