首页 > 其他 > 详细

LR,mad

时间:2020-09-16 23:25:52      阅读:80      评论:0      收藏:0      [点我收藏+]

 

 

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

 

LR,mad

原文:https://www.cnblogs.com/Alexr/p/13681799.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!