api:http://.................UserServlet?method=loginMd5&loginname=xxx&loginpass=xxx&verifyCode=md5(用户名+密码+code)
code =0710
返回:{"msg":"登录成功","uid":"9CC972DFA2D4481F89841A46FD1B3E7B","code":"1"}
Action() { char dest[80]; char str[80]; strcat(str,"abc"); strcat(str,"abc"); strcat(str,"0710"); lr_log_message("str is %s", str); GetMd5FromString(str,dest); lr_save_string(dest,"code");
lr_log_message("dest is %s", dest); //web_set_proxy("127.0.0.1:8888"); web_submit_data("md5", "Action=http://............/UserServlet", "Method=POST", "TargetFrame=body", "RecContentType=text/html", "Referer=", "Snapshot=t2.inf", "Mode=HTML", ITEMDATA, "Name=method", "Value=xxxxx", ENDITEM, "Name=loginname", "Value=xxxx", ENDITEM, "Name=loginpass", "Value=xxxx", ENDITEM, "Name=verifyCode", "Value={code}", ENDITEM, LAST); return 0; }
md5.h:https://files.cnblogs.com/files/Alexr/md5.zip
原文:https://www.cnblogs.com/Alexr/p/13681799.html