stackoverflowのすべてのメンバーにハロー。
Android開発の初心者ですが、ウェブサイトにデータを投稿する方法やサンプラーを教えてくれる人はいますか?
オンラインクラッカーにハッシュを投稿し、結果を文字列として戻したいです。
edit_box = enter the hash
sendbutton=ハッシュを送信text_view=resuld
http://xdecrypt.com/# ありがとう
編集:@ライブヘッダーを見て、この結果を見つけました http://xdecrypt.com/ajax/liste.php?hash=759fdfa1a99563aa6309bb6ae27537c564547f62
ここで、ハッシュをURLに追加でき、結果はです。
document.getElementById('hashresult').value="";document.getElementById('hashresult').value+="759fdfa1a99563aa6309bb6ae27537c564547f62(MySQL)=amande1975 ";
今、私はこれを誰もが助けることができる文字列として読みたいですか?
ハッシュタイプMySQLとパスワードamande1975を表示したい。そして、UIにtext_viewとして表示します。
再度、感謝します。
編集:2その作品ですが、今文字列を分割する方法は?誰でも助けることができますか?
try {
String webPage = "http://xdecrypt.com/ajax/liste.php?hash="+hashedit.getText().toString();
URL url = new URL(webPage);
URLConnection urlConnection = url.openConnection();
InputStream is = urlConnection.getInputStream();
InputStreamReader isr = new InputStreamReader(is);
int numCharsRead;
char[] charArray = new char[1024];
StringBuffer sb = new StringBuffer();
while ((numCharsRead = isr.read(charArray)) > 0) {
sb.append(charArray, 0, numCharsRead);
}
String result = sb.toString();
System.out.println("*** BEGIN ***");
System.out.println(result);
System.out.println("*** END ***");
TextView tv2 = (TextView) findViewById(R.id.textView2);
tv2.setText("HashResuld="+sb.toString());
EDIT3:その作品;)
助けてくれてありがとう;)