Quantcast
Viewing all articles
Browse latest Browse all 12134

winsock protocol correlation

Hi,
I am using winsock protocol to script a legacy application. once the script is recorded, i can see the cookie data in buffer 0 as below:

"GET / HTTP/1.1\r\n"
"Accept: image/jpeg, application/x-ms-application, image/gif, application/x"
"aml+xml, image/pjpeg, application/x-ms-xbap, application/vnd.ms-excel, app"
"lication/vnd.ms-powerpoint, application/msword, */*\r\n"
"Accept-Language: en-US\r\n"
"Accept-Encoding: gzip, deflate\r\n"
"User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.2; WOW64; Trid"
"ent/7.0; .NET4.0E; .NET4.0C; .NET CLR 3.5.30729; .NET CLR 2.0.50727; .NET "
"CLR 3.0.30729; InfoPath.3)\r\n"
"Host: www.symitar.com\r\n"
"Connection: Keep-Alive\r\n"
"Cookie: __utma=154175930.1038726546.1415662720.1415997824. 1416001296.11; _"
"_utmz=154175930.1415662720.1.1.utmcsr=(direct)|ut mccn=(direct)|utmcmd=(non"
"e)\r\n"
"\r\n"
"GET /Pages/default.aspx HTTP/1.1\r\n"
"Accept: image/jpeg, application/x-ms-application, image/gif, application/x"
"aml+xml, image/pjpeg, application/x-ms-xbap, application/vnd.ms-excel, app"
"lication/vnd.ms-powerpoint, application/msword, */*\r\n"
"Accept-Language: en-US\r\n"
"Accept-Encoding: gzip, deflate\r\n"
"User-Agent: Mozilla/4.0 (compatible; MSIE 7.0; Windows NT 6.2; WOW64; Trid"
"ent/7.0; .NET4.0E; .NET4.0C; .NET CLR 3.5.30729; .NET CLR 2.0.50727; .NET "
"CLR 3.0.30729; InfoPath.3)\r\n"
"Host: www.symitar.com\r\n"
"Connection: Keep-Alive\r\n"
"Cookie: __utma=154175930.1038726546.1415662720.1415997824. 1416001296.11; _"
"_utmz=154175930.1415662720.1.1.utmcsr=(direct)|ut mccn=(direct)|utmcmd=(non"
"e)\r\n"
"If-Modified-Since: Fri, 14 Nov 2014 22:00:05 GMT\r\n"
"\r\n"
The initial part of the script will be:

lrs_create_socket("socket0", "TCP", "LocalHost=0", LrsLastArg);

lrs_send("socket0", "buf0", LrsLastArg);

lrs_receive("socket0", "buf1", "Flags=0x20", LrsLastArg);

If i try to run this, 0 bytes received in buf1 and because of this the data is not updated in application. I tried correlating it using lr_save_param but not much luck.

I have also attached the screenshot of the cookie value highlighted in textview mode.

Any help would be much appreciated


Viewing all articles
Browse latest Browse all 12134

Trending Articles