安全测试 : 学府考研(xuefu.com)网站短信接口安全测试,怎么做短信验证码防刷?
发布时间:2021-04-28 点击数:3859
安全问题不容忽视,不要亡羊补牢!
//配置请求头
inheads.put("Host", "www.xuefu.com");
inheads.put("User-Agent", "Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/75.0.3770.142 Safari/537.36");
inheads.put("Accept", "*/*");
inheads.put("X-Requested-With", "XMLHttpRequest");
//配置请求参数
List<BasicNameValuePair> paramsList = new ArrayList<BasicNameValuePair>();
paramsList.add(new BasicNameValuePair("mobile", phone));
//配置请求
retEntity = this.userClick(httpclient, cookieStore, "post", smsUrl, inheads, outheads, input, phone);