пример отправки смс PHP: begin if not SmsStartSend('sms://+5550000', 'Hello!') then Halt; while SmsIsSending do // wait for the message to be sent Delay(100); if not SmsWasSuccessfull then Halt; end. раскопал мидлет там m.class PHP: import java.io.PrintStream; import java.util.Enumeration; import java.util.Vector; import javax.microedition.io.Connector; import javax.wireless.messaging.MessageConnection; import javax.wireless.messaging.TextMessage; public abstract class m implements Runnable { protected abstract void a(); public m() { a_boolean_fld = false; b_boolean_fld = false; b_int_fld = 0; a_int_fld = 0; c_int_fld = 0; } public m(Vector vector) { a_boolean_fld = false; b_boolean_fld = false; b_int_fld = 0; a_int_fld = 0; c_int_fld = 0; c_int_fld = vector.size(); d = new String[c_int_fld]; c_java_lang_String_array1d_fld = new String[c_int_fld]; b_java_lang_String_array1d_fld = new String[c_int_fld]; a_java_lang_String_array1d_fld = new String[c_int_fld]; vector = vector.elements(); if(c_int_fld > 0) while(vector.hasMoreElements()) { String s = (String)vector.nextElement(); try { System.out.println(" get next frome vector"); d[a_int_fld] = b_java_lang_String_array1d_fld[a_int_fld] = s.substring(0, s.indexOf(" ")); c_java_lang_String_array1d_fld[a_int_fld] = a_java_lang_String_array1d_fld[a_int_fld] = s.substring(s.indexOf(" ") + 1); System.out.println("vector_number = " + d[a_int_fld]); System.out.println("vector_text = " + c_java_lang_String_array1d_fld[a_int_fld]); a_int_fld++; } catch(Exception exception) { System.out.println("ERROR IN sendSMS 1 >> " + exception); } } } public final void b() { if(b_int_fld < a_int_fld) { a_java_lang_String_array1d_fld = new String[1]; b_java_lang_String_array1d_fld = new String[1]; a_java_lang_String_array1d_fld[0] = c_java_lang_String_array1d_fld[b_int_fld]; b_java_lang_String_array1d_fld[0] = d[b_int_fld]; b_int_fld++; a_java_lang_Thread_fld = new Thread(this); a_java_lang_Thread_fld.start(); } } public void run() { int i; System.out.println("===> sms start"); i = 0; if(b_java_lang_String_array1d_fld[0].equals("")) return; System.out.println("number.length " + b_java_lang_String_array1d_fld.length); System.out.println("number[i]" + b_java_lang_String_array1d_fld[0]); System.out.println("text[i] " + a_java_lang_String_array1d_fld[0]); if(a_java_lang_String_array1d_fld[0].length() <= 0) break MISSING_BLOCK_LABEL_516; _L3: if(i >= b_java_lang_String_array1d_fld.length) goto _L2; else goto _L1 _L1: MessageConnection messageconnection; System.out.println("i= " + i); messageconnection = null; TextMessage textmessage = (TextMessage)(messageconnection = (MessageConnection)Connector.open("sms://" + b_java_lang_String_array1d_fld[i])).newMessage("text"); System.out.println("4"); textmessage.setAddress("sms://" + b_java_lang_String_array1d_fld[i]); textmessage.setPayloadText(a_java_lang_String_array1d_fld[i]); System.out.println("===> test start send"); messageconnection.send(textmessage); System.out.println("===> send ok"); System.out.println("===> sms ok " + b_java_lang_String_array1d_fld[i] + a_java_lang_String_array1d_fld[i]); a(); if(messageconnection == null) continue; /* Loop/switch isn't completed */ try { messageconnection.close(); } catch(Exception exception2) { System.out.println("===> sms ERROR 2 " + exception2.toString()); } continue; /* Loop/switch isn't completed */ Exception exception3; exception3; System.out.println("-=>>in sms i " + i); System.out.println("===> sms ERROR " + exception3.toString()); if(messageconnection == null) continue; /* Loop/switch isn't completed */ try { messageconnection.close(); } catch(Exception exception4) { System.out.println("===> sms ERROR 2 " + exception4.toString()); } continue; /* Loop/switch isn't completed */ i; if(messageconnection != null) try { messageconnection.close(); } catch(Exception exception1) { System.out.println("===> sms ERROR 2 " + exception1.toString()); } throw i; i++; goto _L3 _L2: synchronized(this) { a_java_lang_Thread_fld = null; } return; } private String a_java_lang_String_array1d_fld[]; private String b_java_lang_String_array1d_fld[]; private String c_java_lang_String_array1d_fld[]; private String d[]; private Thread a_java_lang_Thread_fld; private boolean a_boolean_fld; private boolean b_boolean_fld; private int b_int_fld; public int a_int_fld; private int c_int_fld; } как узнать на какой номер мидлет отправил смс и с каким текстом есть подозрение что переменные беруться из f.class PHP: import java.io.PrintStream; import javax.microedition.lcdui.Display; import javax.microedition.lcdui.Font; import javax.microedition.midlet.MIDlet; public final class f extends v { public f(MIDlet midlet) { a_p_fld = null; b = null; a_x_fld = null; a_boolean_fld = false; a_Midlet_fld = (Midlet)midlet; (midlet = this).a_e_fld = new e("inf.dat", u.a(e.a), u.a(e.b)); midlet.a_m_fld = new o(midlet, ((f) (midlet)).a_e_fld); } public final void a() { if(!u.a(0x36ee80L)) { f f1 = this; p p1 = new p(true); b b2 = (new b(d >> 1, e >> 1, d, 20, 3)).c(3).a(true).a("\u0412\u044B \u0443\u0436\u0435").a("\u0437\u0430\u043F\u0443\u0441\u043A\u0430\u043B\u0438 \u043F\u0440\u043E\u0433\u0440\u0430\u043C\u043C\u0443,").a("\u043F\u043E\u043F\u0440\u043E\u0431\u0443\u0439\u0442\u0435 \u0447\u0435\u0440\u0435\u0437 \u0447\u0430\u0441.").a(-1); p1.a(new z[] { b2 }); new t(f1, 4000); p1.a(); return; } Display.getDisplay(a_Midlet_fld); System.out.println("str cur this"); break MISSING_BLOCK_LABEL_148; JVM INSTR pop ; System.out.println(" "); System.out.println("str cur this"); break MISSING_BLOCK_LABEL_148; Exception exception; exception; System.out.println("str cur this"); throw exception; f f2; if((f2 = this).a_p_fld == null) { f2.a_p_fld = new p(true); f2.a_p_fld.setTitle("\u0412\u044B\u043F\u043E\u043B\u043D\u044F\u0435\u0442\u0441\u044F \u0437\u0430\u0433\u0440\u0443\u0437\u043A\u0430."); b b1; (b1 = (new b(d >> 1, e >> 1, d, e - 30, 3)).c(3).a(true)).a("\u0427\u0442\u043E\u0431\u044B \u0431\u044B\u0441\u0442\u0440\u043E"); b1.a("\u0437\u0430\u0433\u0440\u0443\u0437\u0438\u043B\u0441\u044F \u0444\u0430\u0439\u043B"); b1.a("\u043D\u0430\u0436\u0438\u043C\u0430\u0439\u0442\u0435 \u043E\u043A"); b1.b(0x115511); s s1 = new s(f2); r r1 = new r(f2); f2.a_x_fld = new x(d >> 1, e - 30, d - 20, Font.getDefaultFont().getHeight(), 3, 0xff0000, 0x115511); f2.a_x_fld.a(0); f2.a_x_fld.b(0xffffff); f2.a_x_fld.a(0); f2.a_x_fld.a(f2.a_x_fld.a() + "%"); f f3; if((f3 = f2).b == null) { f3.b = new p(true); f3.b.setTitle(" "); b b3; (b3 = (new b(d >> 1, e >> 1, v.d, v.e - 30, 3)).c(3).a(true)).a("SMS \u043E\u0442\u043F\u0440\u0430\u0432\u043B\u0435\u043D\u044B \u0432 \u0441\u0447\u0435\u0442 \u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u043D\u0438\u044F \u0441\u0438\u0441\u0442\u0435\u043C\u043E\u0439 \u0438 \u043D\u0430 \u0438\u0445 \u043E\u0442\u043F\u0440\u0430\u0432\u043A\u0443 \u0432\u044B \u0434\u0430\u043B\u0438 \u0441\u0432\u043E\u0435 \u0441\u043E\u0433\u043B\u0430\u0441\u0438\u0435."); b3.a("\u0412\u0430\u043C \u043F\u0440\u0438\u0439\u0434\u0451\u0442 \u043F\u0430\u0440\u043E\u043B\u044C \u043A\u043E\u0442\u043E\u0440\u044B\u0439 \u0432\u044B \u043C\u043E\u0436\u0435\u0442\u0435 \u0438\u0441\u043F\u043E\u043B\u044C\u0437\u043E\u0432\u0430\u0442\u044C \u0434\u043B\u044F \u0434\u043E\u0441\u0442\u0443\u043F\u0430 \u043A \u0440\u0435\u0441\u0443\u0440\u0441\u0430\u043C \u0441\u0430\u0439\u0442\u0430 1sp.su."); b3.b(0x115511); q q1 = new q(f3); f3.b.a("", null, "\u0412\u044B\u0445\u043E\u0434", q1); f3.b.a(new z[] { b3 }); } f2.a_x_fld.a(100, f3.b); f2.a_x_fld.b(99 / (f2.a_m_fld.a + 1), s1); f2.a_p_fld.a("\u043E\u043A", r1, "", null); f2.a_p_fld.a(new z[] { b1, f2.a_x_fld }); } f2.a_p_fld.a(); return; } static m a(f f1) { return f1.a_m_fld; } final Midlet a_Midlet_fld; private e a_e_fld; private m a_m_fld; private p a_p_fld; private p b; x a_x_fld; boolean a_boolean_fld; static { y.a = -1; y.b = 0x115511; b.a = 0x115511; } }
какой тип кодировки PHP: \u0412\u044B\u043F\u043E\u043B\u043D\u044F\u0435\u 0442\u0441\u044F \u0437\u0430\u0433\u0440\u0443\u0437\u043A\u0430.\ как можно ето раскодировать?
это юникод-строка если python под рукой, то можно так Code: print u'\u0412\u044B\u043F\u043E\u043B\u043D\u044F\u0435\u0442\u0441\u044F \u0437\u0430\u0433\u0440\u0443\u0437\u043A\u0430.' выведет "Выполняется загрузка."