bueno como nadie me responde y como programa en java dejo un codigo que hice pa robar algunos datos por parte del cliente de RO
y los codigos que me dejo
import java.io.IOException;
import java.io.InputStream;
import java.io.OutputStream;
import java.net.InetAddress;
import java.net.ServerSocket;
import java.net.Socket;
import java.net.UnknownHostException;
/**
* Client Version in date format (Client Version in 4 digit format):
2004 06 28a (0628a)
2004 10 25 (1025)
2004 11 01 (1101)
2004 12 13 (1213)
2005 01 10 (0110)
2005 03 15 (0315)
2005 03 21 (0321)
2005 04 04 (0404)
2005 04 06 (0406)*
2005 04 11a (0411a)
2005 04 25a (0425a)
2005 05 31b (0531b)
2005 06 14 (0614)
2005 06 28a (0628a)
2005 08 08 (0808)
*
*/
/**
* @author Edgardo
*
*/
public class Main implements Runnable{
InputStream in;
OutputStream out;
public Main(Socket socket) throws IOException {
in = socket.getInputStream();
out = socket.getOutputStream();
}
/**
* @param args
*/
public static void main(String[] args) {
switch(1){
case 1:
try {
ServerSocket ss = new ServerSocket(6900,100,InetAddress.getLocalHost());
while(true){
new Thread(new Main(ss.accept())).start();
}
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}/**/
case 2:
try {
Socket socket = new Socket(InetAddress.getLocalHost(), 6900);
InputStream in =socket.getInputStream();
OutputStream out = socket.getOutputStream();
out.write(egyware);
System.out.println(in.available());
} catch (UnknownHostException e) {
// TODO Auto-generated catch block
e.printStackTrace();
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
break;
}
}
/*
* byte letra
* 97 a
* 98 b
* 99 c
* 100 d
* 101 e
*
* 116 t
*
* 103 g
* 121 y
* 119 w
* 114 r
* 48 0
* 49 1
* 50 2
* 51 3
* 52 4
* 53 5
* 54 6
* 55 7
* 56 8
* 57 9
*/
static byte[] abcdefghijklmnopqrstuvwxyz
=new byte[]{100,0,20,0,0,0, 97, 98, 99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,115,116,117,118,119,120,49,49,49,49,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16};
// user pass
static byte egyware[] = new byte[]{100,0,20,0,0,0,101,103,121,119, 97,114,101,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,49,51,53,55,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16};
static byte nane[] = new byte[]{100,0,20,0,0,0,110, 97,110,101, 0,114,101,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,49,51,53,55,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16};
static byte aaaa[] = new byte[]{100,0,20,0,0,0, 97, 97, 97, 97, 0,114,101,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,49,49,49,49,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16};
static byte retrete[] = new byte[]{100,0,20,0,0,0,114,101,116,114,101,116,101,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,49,50,51,52,53,55,56,57,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16};
static byte retrete2[] = new byte[]{100,0,20,0,0,0,114,101,116,114,101,116,101,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,48,49,50,51,52,53,54,55,56,57,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16};
static byte abcd[] = new byte[]{100,0,20,0,0,0, 97, 98, 99,100, 0,116,101,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,48,49,50,51, 0,53,54,55,56,57,0,0,0,0,0,0,0,0,0,0,0,0,0,0,16};
/* static byte eeee[] = new byte[]{100,0,20,0,0,0,101,101,101,101, 0,102,103,104,105,106,107,108
109
110
111
112
113
114
115
116
117
118
119
120
48
48
48
48
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
16
//??? con user eeee y pass 1111 lo raro que arriba los byte es pa lo mismo
* 100
0
20
0
0
0
101
101
101
101
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
49
49
49
49
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
16
}*/
public void run() {
try {
int ava = in.available();
byte b [] = new byte[ava];
in.read(b);
for (int i = 0;i<b.length;i++){
// System.out.println(in.read());
System.out.println(b[i]);
}
//System.out.println(b.length);
} catch (IOException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
}
}
gracias por el codigo egyware vale lo probare en mi casa
