真诚求救

Hauking 2003-07-15 02:02:26
有关HTML的,在客户端获得隐私信息。
怎样在客户端上编程通过不断尝试方法查询服务端的保密数据?
如有下面代码:
<form method=post action=/RecoverPasswd.jsp name=form onsubmit="return checkdata();">
<center><input type=submit class=hand value=下一步 name=submit>
其中的数据通过表单获得。checkdata()只是一段检查数据合法性的脚本。
现在我想在客户端编程不断发送数据比较查询服务端,从而获得保密数据。
请问该怎样编程?能不能帮帮我给出代码?

小弟一点不懂html,jsp等,只懂数据库和c++java,
我这里是为了测试一下本和我毫不相干的东西的安全,但又不想去花时间学。
麻烦帮忙谢谢!
...全文
33 2 打赏 收藏 转发到动态 举报
写回复
用AI写文章
2 条回复
切换为时间正序
请发表友善的回复…
发表回复
Hauking 2003-07-18
  • 打赏
  • 举报
回复
谢谢。
太谢谢了。
pantech_36 2003-07-15
  • 打赏
  • 举报
回复
会java的话下面这段应该明白吧,你用java写一个线程做模拟HTTP的post的方法,不停的访问server直到返回为真。

ResourceBundle r=ResourceBundle.getBundle("smsengine");
String sIP = r.getString("ServerIP");
String sPort = r.getString("ServerPort");
URL url = new URL("http://"+sIP+":"+sPort+"/corp/HttpMtServlet");
HttpURLConnection connection = (HttpURLConnection) url.openConnection();
connection.setRequestMethod("POST");
connection.setRequestProperty("Content-Type", "application/x-www-form-urlencoded");
connection.setDoOutput(true);
PrintWriter out = new PrintWriter(connection.getOutputStream());
out.println(strusername+"&"+strpasswd+"&"+strtonum+"&"+strtext+"&"+strpresendtime+"&"+strmoid+"&"+strfromnum+"&"+strpaynum+"&"+strserviceid+"&"+strfeetype+"&"+strfeeusertype+"&"+strfee+"&"+strformat);
out.close();
BufferedReader in
= new BufferedReader(new InputStreamReader(connection.getInputStream()));

while ((line = in.readLine()) != null) {
returnStr = returnStr + line;
System.out.println(line);
}

in.close();

61,112

社区成员

发帖
与我相关
我的任务
社区描述
层叠样式表(英文全称:Cascading Style Sheets)是一种用来表现HTML(标准通用标记语言的一个应用)或XML(标准通用标记语言的一个子集)等文件样式的计算机语言。
社区管理员
  • HTML(CSS)社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧